18ecacd2ede9d284c2076d58fe167492dbcc94be
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.*">
Jeremy D Fix a few issues: - Redirec...

Jeremy D authored 2 years ago

15) 		<readme type="file" parsebbc="true">README.bbc</readme>
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

16) 		<database>install_sfs.php</database>
17) 		<code type="file">sfs_hooks_install.php</code>
18) 		<modification>install_smf20.xml</modification>
19) 
20) 		<require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" />
21) 		<require-file name="StopForumSpam.php" destination="$sourcedir" />
22) 
23) 		<redirect url="?action=admin;area=modsettings;sa=sfs" />
24) 	</install>
25) 
26) 	<uninstall for="2.0.*">
27) 		<!-- database changes, undone -->
28) 		<database>install_sfs.php</database>
29) 		<code type="file">sfs_hooks_remove.php</code>
30) 
31) 		<modification reverse="true">install_smf20.xml</modification>
32) 
33) 		<!-- language files, removed -->
34) 		<remove-dir name="$themes_dir/default/languages/StopForumSpam.english.php" />
35) 
36) 		<!-- source files, removed -->
37) 		<remove-dir name="$sourcedir/StopForumSpam.php" />
38) 	</uninstall>
39) 
Jeremy D Fixed a bug

Jeremy D authored 2 years ago

40) 	<install for="2.1.*">
Jeremy D Fix a few issues: - Redirec...

Jeremy D authored 2 years ago

41) 		<readme type="file" parsebbc="true">README.bbc</readme>
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

42) 		<database>install_sfs.php</database>
43) 
44) 		<require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" />
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

48) 
49) 		<!-- All the hooks -->
jdarwood007 Split the Admin stuff from...

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

61) 
Jeremy D Fix a few issues: - Redirec...

Jeremy D authored 2 years ago

62) 		<redirect url="?action=admin;area=modsettings;sa=sfs" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

63) 	</install>
64) 
Jeremy D Fixed a bug

Jeremy D authored 2 years ago

65) 	<uninstall for="2.1.*">
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

66) 		<!-- database changes, undone -->
67) 		<database>install_sfs.php</database>
68) 
69) 		<!-- All the hooks, removed -->
jdarwood007 Split the Admin stuff from...

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

72) 			<hook hook="integrate_pre_load" function="SFS::hook_pre_load" reverse="true" />
73) 			<hook hook="integrate_register" function="SFS::hook_register" reverse="true" />
Jeremy D Fixed a bug

Jeremy D authored 2 years ago

74) 			<hook hook="integrate_create_control_verification_test" function="SFS::hook_create_control_verification_test" reverse="true" />
jdarwood007 Split the Admin stuff from...

jdarwood007 authored 4 years ago

75) 
76) 			<!-- Admin Section -->
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

81) 
82) 		<!-- language files, removed -->
jdarwood007 Unistall fix

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

84) 
85) 		<!-- source files, removed -->
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

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