e5686b410c01caba000b163a2dbccc1f877379f5
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

1) <?xml version="1.0"?>
2) <!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
3) <package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
4) 	<id>SleePy:StopForumSpam</id>
5) 	<name>Stop Forum Spam</name>
6) 	<version>1.0</version>
7) 	<type>modification</type>
8) 
9) 	<install for="1.1.*">
10) 		<readme lang="english" parsebbc="true" type="inline">This mod is [b]not compatible[/b] with your version of SMF, it requires 2.0 or later.</readme>
11) 	</install>
12) 
13) 	<!-- 2.0 has no support for hooks -->
14) 	<install for="2.0.*">
15) 		<database>install_sfs.php</database>
16) 		<code type="file">sfs_hooks_install.php</code>
17) 		<modification>install_smf20.xml</modification>
18) 
19) 		<require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" />
20) 		<require-file name="StopForumSpam.php" destination="$sourcedir" />
21) 
22) 		<redirect url="?action=admin;area=modsettings;sa=sfs" />
23) 	</install>
24) 
25) 	<uninstall for="2.0.*">
26) 		<!-- database changes, undone -->
27) 		<database>install_sfs.php</database>
28) 		<code type="file">sfs_hooks_remove.php</code>
29) 
30) 		<modification reverse="true">install_smf20.xml</modification>
31) 
32) 		<!-- language files, removed -->
33) 		<remove-dir name="$themes_dir/default/languages/StopForumSpam.english.php" />
34) 
35) 		<!-- source files, removed -->
36) 		<remove-dir name="$sourcedir/StopForumSpam.php" />
37) 	</uninstall>
38) 
39) 	<install for="2.1 RC3, 2.1.*">
40) 		<database>install_sfs.php</database>
41) 
42) 		<require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" />
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

43) 		<require-file name="SFS.php" destination="$sourcedir" />
44) 		<require-file name="SFS-Subs-Admin.php" destination="$sourcedir" />
45) 		<require-file name="SFS-Subs-Logs.php" destination="$sourcedir" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

46) 
47) 		<!-- All the hooks -->
jdarwood007 Split the Admin stuff from...

jdarwood007 authored 4 years ago

48) 			<!-- Main Section -->
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

49) 			<hook hook="integrate_pre_include" function="$sourcedir/SFS.php" />
jdarwood007 Split the Admin stuff from...

jdarwood007 authored 4 years ago

50) 			<hook hook="integrate_pre_load" function="SFS::hook_pre_load" />
51) 			<hook hook="integrate_register" function="SFS::hook_register" />
52) 			<hook hook="integrate_create_control_verification_test" function="SFS::hook_create_control_verification_test" />
53) 
54) 			<!-- Admin Section -->
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

55) 			<hook hook="integrate_admin_include" function="$sourcedir/SFS-Subs-Admin.php" />
jdarwood007 Split the Admin stuff from...

jdarwood007 authored 4 years ago

56) 			<hook hook="integrate_admin_areas" function="SFSA::hook_admin_areas" />
57) 			<hook hook="integrate_modify_modifications" function="SFSA::hook_modify_modifications" />
58) 			<hook hook="integrate_manage_logs" function="SFSA::hook_manage_logs" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

59) 
60) 		<redirect url="?action=admin;area=securitysettings;sa=sfs" />
61) 	</install>
62) 
63) 	<uninstall for="2.1 RC3, 2.1.*">
64) 		<!-- database changes, undone -->
65) 		<database>install_sfs.php</database>
66) 
67) 		<!-- All the hooks, removed -->
jdarwood007 Split the Admin stuff from...

jdarwood007 authored 4 years ago

68) 			<!-- Main Section -->
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

69) 			<hook hook="integrate_pre_include" function="$sourcedir/SFS.php" reverse="true" />
jdarwood007 Split the Admin stuff from...

jdarwood007 authored 4 years ago

70) 			<hook hook="integrate_pre_load" function="SFS::hook_pre_load" reverse="true" />
71) 			<hook hook="integrate_register" function="SFS::hook_register" reverse="true" />
72) 			<hook hook="integrate_create_control_verification_test" function="SFSA::hook_create_control_verification_test" reverse="true" />
73) 
74) 			<!-- Admin Section -->
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

75) 			<hook hook="integrate_admin_include" function="$sourcedir/SFS-Subs-Admin.php" reverse="true" />
jdarwood007 Split the Admin stuff from...

jdarwood007 authored 4 years ago

76) 			<hook hook="integrate_admin_areas" function="SFSA::hook_admin_areas" reverse="true" />
77) 			<hook hook="integrate_modify_modifications" function="SFSA::hook_modify_modifications" reverse="true" />
78) 			<hook hook="integrate_manage_logs" function="SFSA::hook_manage_logs" reverse="true" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

79) 
80) 		<!-- language files, removed -->
jdarwood007 Unistall fix

jdarwood007 authored 4 years ago

81) 		<remove-file name="$themes_dir/default/languages/StopForumSpam.english.php" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

82) 
83) 		<!-- source files, removed -->
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

84) 		<remove-file name="$sourcedir/SFS.php" />
85) 		<remove-file name="$sourcedir/SFS-Subs-Admin.php" />
86) 		<remove-file name="$sourcedir/SFS-Subs-Logs.php" />