63fd96c217bab202faf29b77d3410c5a389d8fd8
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>
Jeremy D This was supposed to go int...

Jeremy D authored 1 year ago

6) 	<version>1.3</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) 
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

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

jdarwood007 authored 4 years ago

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

jdarwood007 authored 1 year ago

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

jdarwood007 authored 4 years ago

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

jdarwood007 authored 1 year ago

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

jdarwood007 authored 4 years ago

42) 
43) 		<!-- source files, removed -->
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

44) 		<remove-file name="$sourcedir/SFS.php" />
45) 		<remove-file name="$sourcedir/SFS-Subs-Admin.php" />
46) 		<remove-file name="$sourcedir/SFS-Subs-Logs.php" />
47) 		<remove-file name="$themedir/StopForumSpam.template.php" />
48) 		<remove-file name="$themedir/images/admin/sfs.webp" />
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

49) 	</uninstall>
50) 
Jeremy D Fixed a bug

Jeremy D authored 2 years ago

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

Jeremy D authored 2 years ago

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

jdarwood007 authored 4 years ago

53) 		<database>install_sfs.php</database>
54) 
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

55) 		<require-file name="SFS.php" destination="$sourcedir" />
56) 		<require-file name="SFS-Subs-Admin.php" destination="$sourcedir" />
57) 		<require-file name="SFS-Subs-Logs.php" destination="$sourcedir" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

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

jdarwood007 authored 1 year ago

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

Jeremy D authored 2 years ago

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

jdarwood007 authored 1 year ago

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

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

jdarwood007 authored 4 years ago

66) 
67) 		<!-- All the hooks -->
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" />
jdarwood007 Split the Admin stuff from...

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

76) 			<hook hook="integrate_admin_areas" function="SFSA::hook_admin_areas" />
77) 			<hook hook="integrate_modify_modifications" function="SFSA::hook_modify_modifications" />
78) 			<hook hook="integrate_manage_logs" function="SFSA::hook_manage_logs" />
jdarwood007 Adds a test page Fixes #7

jdarwood007 authored 1 year ago

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

jdarwood007 authored 4 years ago

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

Jeremy D authored 2 years ago

81) 			<!-- Profile Section -->
Jeremy D Fixed issues with install/u...

Jeremy D authored 2 years ago

82) 			<hook hook="integrate_pre_profile_areas" function="SFS::hook_pre_profile_areas" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

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

Jeremy D authored 2 years ago

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

jdarwood007 authored 4 years ago

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

Jeremy D authored 2 years ago

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

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

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

Jeremy D authored 2 years ago

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

97) 
98) 			<!-- Admin Section -->
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

100) 			<hook hook="integrate_admin_areas" function="SFSA::hook_admin_areas" reverse="true" />
101) 			<hook hook="integrate_modify_modifications" function="SFSA::hook_modify_modifications" reverse="true" />
102) 			<hook hook="integrate_manage_logs" function="SFSA::hook_manage_logs" reverse="true" />
jdarwood007 Adds a test page Fixes #7

jdarwood007 authored 1 year ago

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

jdarwood007 authored 4 years ago

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

Jeremy D authored 2 years ago

105) 			<!-- Profile Section -->
Jeremy D Fixed issues with install/u...

Jeremy D authored 2 years ago

106) 			<hook hook="integrate_pre_profile_areas" function="SFS::hook_pre_profile_areas" reverse="true" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

107) 
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

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

jdarwood007 authored 1 year ago

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

jdarwood007 authored 4 years ago

111) 
112) 		<!-- source files, removed -->
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

113) 		<remove-file name="$sourcedir/SFS.php" />
114) 		<remove-file name="$sourcedir/SFS-Subs-Admin.php" />
115) 		<remove-file name="$sourcedir/SFS-Subs-Logs.php" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

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

jdarwood007 authored 4 years ago

118) 	</uninstall>
119) 
Jeremy D This was supposed to go int...

Jeremy D authored 1 year ago

120) 	<upgrade from="1.*" for="2.1.*">
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

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

jdarwood007 authored 1 year ago

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

123) 		<require-file name="StopForumSpam.template.php" destination="$themedir" />
124) 		<require-file name="SFS.php" destination="$sourcedir" />
125) 		<require-file name="SFS-Subs-Admin.php" destination="$sourcedir" />
jdarwood007 Add logic to allow require...

jdarwood007 authored 1 year ago

126) 		<require-file name="SFS-Subs-Logs.php" destination="$sourcedir" />
Jeremy D Fixed issues with install/u...

Jeremy D authored 2 years ago

127) 		<hook hook="integrate_pre_profile_areas" function="SFS::hook_pre_profile_areas" />
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

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

jdarwood007 authored 1 year ago

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

Jeremy D authored 2 years ago

133) 
Jeremy D This was supposed to go int...

Jeremy D authored 1 year ago

134) 	<upgrade from="1.*" for="2.0.*">
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

135) 		<code type="file">sfs_hooks_install.php</code>
136) 		<require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" />
137) 		<require-file name="StopForumSpam.template.php" destination="$themedir" />
138) 		<require-file name="SFS.php" destination="$sourcedir" />
139) 		<require-file name="SFS-Subs-Admin.php" destination="$sourcedir" />
140) 
141) 		<!-- this dir may not exist in SMF -->
142) 		<create-dir name="admin" destination="$themedir/images" />
143) 		<require-file name="sfs.webp" destination="$themedir/images/admin" />
jdarwood007 Add logic to allow require...

jdarwood007 authored 1 year ago

144) 	</upgrade>