d93bbb02e7d2bb3051cabf11c1b027e73f794a70
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>
jdarwood007 Bump to 1.5.4

jdarwood007 authored 2 months ago

6) 	<version>1.5.4</version>
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

7) 	<type>modification</type>
8) 
9) 	<!-- 2.0 has no support for hooks -->
10) 	<install for="2.0.*">
Jeremy D Fix a few issues: - Redirec...

Jeremy D authored 2 years ago

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

jdarwood007 authored 4 years ago

12) 		<database>install_sfs.php</database>
13) 		<code type="file">sfs_hooks_install.php</code>
14) 		<modification>install_smf20.xml</modification>
15) 
jdarwood007 Refactor code for more mana...

jdarwood007 authored 1 year ago

16) 		<require-file name="StopForumSpam.php" destination="$sourcedir" />
17) 		<require-dir name="StopForumSpam" destination="$sourcedir" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

18) 		<require-file name="StopForumSpam.template.php" destination="$themedir" />
19) 
20) 		<!-- this dir may not exist in SMF -->
21) 		<create-dir name="admin" destination="$themedir/images" />
22) 		<require-file name="sfs.webp" destination="$themedir/images/admin" />
23) 
24) 		<!-- language files -->
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

25) 		<require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" />
jdarwood007 Add logic to allow require...

jdarwood007 authored 1 year ago

26) 		<require-file name="language/StopForumSpam.finnish.php" destination="$themes_dir/default/languages" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

27) 
28) 		<redirect url="?action=admin;area=modsettings;sa=sfs" />
29) 	</install>
30) 
31) 	<uninstall for="2.0.*">
32) 		<!-- database changes, undone -->
33) 		<database>install_sfs.php</database>
34) 		<code type="file">sfs_hooks_remove.php</code>
35) 
36) 		<modification reverse="true">install_smf20.xml</modification>
37) 
38) 		<!-- language files, removed -->
39) 		<remove-dir name="$themes_dir/default/languages/StopForumSpam.english.php" />
jdarwood007 Add logic to allow require...

jdarwood007 authored 1 year ago

40) 		<remove-dir name="$themes_dir/default/languages/StopForumSpam.finnish.php" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

41) 
42) 		<!-- source files, removed -->
jdarwood007 Refactor code for more mana...

jdarwood007 authored 1 year ago

43) 		<remove-file name="$sourcedir/StopForumSpam.php" />
44) 		<remove-dir name="$sourcedir/StopForumSpam" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

45) 		<remove-file name="$themedir/StopForumSpam.template.php" />
46) 		<remove-file name="$themedir/images/admin/sfs.webp" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

47) 	</uninstall>
48) 
Jeremy D Fixed a bug

Jeremy D authored 2 years ago

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

Jeremy D authored 2 years ago

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

jdarwood007 authored 4 years ago

51) 		<database>install_sfs.php</database>
52) 
jdarwood007 Refactor code for more mana...

jdarwood007 authored 1 year ago

53) 		<require-file name="StopForumSpam.php" destination="$sourcedir" />
54) 		<require-dir name="StopForumSpam" destination="$sourcedir" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

55) 		<require-file name="StopForumSpam.template.php" destination="$themedir" />
jdarwood007 Add logic to allow require...

jdarwood007 authored 1 year ago

56) 
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

57) 		<require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" />
jdarwood007 Add logic to allow require...

jdarwood007 authored 1 year ago

58) 		<require-file name="language/StopForumSpam.finnish.php" destination="$themes_dir/default/languages" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

59) 
60) 		<!-- this dir may not exist in SMF -->
61) 		<create-dir name="admin" destination="$themedir/images" />
62) 		<require-file name="sfs.webp" destination="$themedir/images/admin" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

63) 
64) 		<!-- All the hooks -->
jdarwood007 Split the Admin stuff from...

jdarwood007 authored 4 years ago

65) 			<!-- Main Section -->
jdarwood007 Refactor code for more mana...

jdarwood007 authored 1 year ago

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

jdarwood007 authored 4 years ago

67) 			<hook hook="integrate_pre_load" function="SFS::hook_pre_load" />
68) 			<hook hook="integrate_register" function="SFS::hook_register" />
69) 			<hook hook="integrate_create_control_verification_test" function="SFS::hook_create_control_verification_test" />
70) 
71) 			<!-- Admin Section -->
jdarwood007 Refactor code for more mana...

jdarwood007 authored 1 year ago

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

jdarwood007 authored 4 years ago

73) 			<hook hook="integrate_admin_areas" function="SFSA::hook_admin_areas" />
74) 			<hook hook="integrate_modify_modifications" function="SFSA::hook_modify_modifications" />
jdarwood007 Refactor code for more mana...

jdarwood007 authored 1 year ago

75) 			<hook hook="integrate_manage_logs" function="SFSL::hook_manage_logs" file="$sourcedir/StopForumSpam/SFS-Logs.php" />
jdarwood007 Adds a test page Fixes #7

jdarwood007 authored 1 year ago

76) 			<hook hook="integrate_manage_registrations" function="SFSA::hook_manage_registrations" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

77) 
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

78) 			<!-- Profile Section -->
jdarwood007 Some install / upgrade logi...

jdarwood007 authored 7 months ago

79) 			<hook hook="integrate_pre_profile_areas" function="SFSP::hook_pre_profile_areas" file="$sourcedir/StopForumSpam/SFS-Profile.php" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

80) 
jdarwood007 Add logic to allow us to su...

jdarwood007 authored 1 year ago

81) 			<!-- Display Section -->
82) 			<hook hook="integrate_prepare_display_context" function="SFS::hook_prepare_display_context" />
83) 			<hook hook="integrate_mod_buttons" function="SFS::hook_mod_buttons" />
84) 
Jeremy D Fix a few issues: - Redirec...

Jeremy D authored 2 years ago

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

jdarwood007 authored 4 years ago

86) 	</install>
87) 
Jeremy D Fixed a bug

Jeremy D authored 2 years ago

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

jdarwood007 authored 4 years ago

89) 		<!-- database changes, undone -->
90) 		<database>install_sfs.php</database>
91) 
92) 		<!-- All the hooks, removed -->
jdarwood007 Split the Admin stuff from...

jdarwood007 authored 4 years ago

93) 			<!-- Main Section -->
jdarwood007 Refactor code for more mana...

jdarwood007 authored 1 year ago

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

jdarwood007 authored 4 years ago

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

Jeremy D authored 2 years ago

97) 			<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

98) 
99) 			<!-- Admin Section -->
jdarwood007 Some install / upgrade logi...

jdarwood007 authored 7 months ago

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

jdarwood007 authored 4 years ago

101) 			<hook hook="integrate_admin_areas" function="SFSA::hook_admin_areas" reverse="true" />
102) 			<hook hook="integrate_modify_modifications" function="SFSA::hook_modify_modifications" reverse="true" />
jdarwood007 Some install / upgrade logi...

jdarwood007 authored 7 months ago

103) 			<hook hook="integrate_manage_logs" function="SFSL::hook_manage_logs" file="$sourcedir/StopForumSpam/SFS-Logs.php" reverse="true" />
jdarwood007 Adds a test page Fixes #7

jdarwood007 authored 1 year ago

104) 			<hook hook="integrate_manage_registrations" function="SFSA::hook_manage_registrations" reverse="true" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

105) 
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

106) 			<!-- Profile Section -->
jdarwood007 Some install / upgrade logi...

jdarwood007 authored 7 months ago

107) 			<hook hook="integrate_pre_profile_areas" function="SFSP::hook_pre_profile_areas" file="$sourcedir/StopForumSpam/SFS-Profile.php" reverse="true" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

108) 
jdarwood007 Add logic to allow us to su...

jdarwood007 authored 1 year ago

109) 			<!-- Display Section -->
110) 			<hook hook="integrate_prepare_display_context" function="SFS::hook_prepare_display_context" reverse="true" />
111) 			<hook hook="integrate_mod_buttons" function="SFS::hook_mod_buttons" reverse="true" />
112) 
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

114) 		<remove-file name="$themes_dir/default/languages/StopForumSpam.english.php" />
jdarwood007 Add logic to allow require...

jdarwood007 authored 1 year ago

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

jdarwood007 authored 4 years ago

116) 
117) 		<!-- source files, removed -->
jdarwood007 Refactor code for more mana...

jdarwood007 authored 1 year ago

118) 		<remove-file name="$sourcedir/StopForumSpam.php" />
119) 		<remove-dir name="$sourcedir/StopForumSpam" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

120) 		<remove-file name="$themedir/StopForumSpam.template.php" />
121) 		<remove-file name="$themedir/images/admin/sfs.webp" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

122) 	</uninstall>
123) 
jdarwood007 Bump to 1.5.4

jdarwood007 authored 2 months ago

124) 	<upgrade from="1.0-1.5.3" for="2.1.*">
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

125) 		<require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" />
jdarwood007 Update for 1.4

jdarwood007 authored 1 year ago

126)         <require-file name="language/StopForumSpam.finnish.php" destination="$themes_dir/default/languages" />
jdarwood007 Refactor code for more mana...

jdarwood007 authored 1 year ago

127) 
128) 		<require-file name="StopForumSpam.php" destination="$sourcedir" />
129) 		<require-dir name="StopForumSpam" destination="$sourcedir" />
130) 
131) 		<remove-file name="$sourcedir/SFS.php" error="ignore" />
132) 		<remove-file name="$sourcedir/SFS-Subs-Admin.php" error="ignore" />
133) 		<remove-file name="$sourcedir/SFS-Subs-Logs.php" error="ignore" />
134) 
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

135) 		<require-file name="StopForumSpam.template.php" destination="$themedir" />
jdarwood007 Refactor code for more mana...

jdarwood007 authored 1 year ago

136) 
137) 		<hook hook="integrate_pre_include" function="$sourcedir/StopForumSpam.php" />
138) 		<hook hook="integrate_pre_include" function="$sourcedir/SFS.php" reverse="true" />
139) 
140) 		<hook hook="integrate_admin_include" function="$sourcedir/StopForumSpam/SFS-Admin.php" />
141) 		<hook hook="integrate_admin_include" function="$sourcedir/SFS-Subs-Admin.php" reverse="true" />
142) 
143) 		<hook hook="integrate_manage_logs" function="SFSA::hook_manage_logs" reverse="true" error="ignore" />
144) 		<hook hook="integrate_manage_logs" function="SFSL::hook_manage_logs" file="$sourcedir/StopForumSpam/SFS-Logs.php" />
145) 
jdarwood007 Some install / upgrade logi...

jdarwood007 authored 7 months ago

146) 		<hook hook="integrate_pre_profile_areas" function="SFSP::hook_pre_profile_areas" file="$sourcedir/StopForumSpam/SFS-Profile.php" />
147) 		<hook hook="integrate_pre_profile_areas" function="SFS::hook_pre_profile_areas" reverse="true" />
148) 
jdarwood007 Add logic to allow us to su...

jdarwood007 authored 1 year ago

149) 		<hook hook="integrate_prepare_display_context" function="SFS::hook_prepare_display_context" />
150) 		<hook hook="integrate_mod_buttons" function="SFS::hook_mod_buttons" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

151) 
152) 		<!-- this dir may not exist in SMF -->
153) 		<create-dir name="admin" destination="$themedir/images" />
154) 		<require-file name="sfs.webp" destination="$themedir/images/admin" />
jdarwood007 Add logic to allow require...

jdarwood007 authored 1 year ago

155) 	</upgrade>
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

156) 
jdarwood007 Bump to 1.5.4

jdarwood007 authored 2 months ago

157) 	<upgrade from="1.0-1.5.3" for="2.0.*">
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

158) 		<code type="file">sfs_hooks_install.php</code>
jdarwood007 Refactor code for more mana...

jdarwood007 authored 1 year ago

159) 
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

160) 		<require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" />
jdarwood007 Update for 1.4

jdarwood007 authored 1 year ago

161)         <require-file name="language/StopForumSpam.finnish.php" destination="$themes_dir/default/languages" />
jdarwood007 Refactor code for more mana...

jdarwood007 authored 1 year ago

162) 
163) 		<require-file name="StopForumSpam.php" destination="$sourcedir" />
164) 		<require-dir name="StopForumSpam" destination="$sourcedir" />
165) 
166) 		<remove-file name="$sourcedir/SFS.php" error="ignore" />
167) 		<remove-file name="$sourcedir/SFS-Subs-Admin.php" error="ignore" />
168) 		<remove-file name="$sourcedir/SFS-Subs-Logs.php" error="ignore" />
169) 
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

170) 		<require-file name="StopForumSpam.template.php" destination="$themedir" />
171) 
172) 		<!-- this dir may not exist in SMF -->
173) 		<create-dir name="admin" destination="$themedir/images" />
174) 		<require-file name="sfs.webp" destination="$themedir/images/admin" />
jdarwood007 Add logic to allow require...

jdarwood007 authored 1 year ago

175) 	</upgrade>