7bb83254e0b77fb50b1eff78403b363ac892537d
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 Push 1.2

Jeremy D authored 2 years ago

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

jdarwood007 authored 4 years ago

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

Jeremy D authored 2 years ago

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

jdarwood007 authored 4 years ago

30) 		<require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" />
31) 
32) 		<redirect url="?action=admin;area=modsettings;sa=sfs" />
33) 	</install>
34) 
35) 	<uninstall for="2.0.*">
36) 		<!-- database changes, undone -->
37) 		<database>install_sfs.php</database>
38) 		<code type="file">sfs_hooks_remove.php</code>
39) 
40) 		<modification reverse="true">install_smf20.xml</modification>
41) 
42) 		<!-- language files, removed -->
43) 		<remove-dir name="$themes_dir/default/languages/StopForumSpam.english.php" />
44) 
45) 		<!-- source files, removed -->
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

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

jdarwood007 authored 4 years ago

51) 	</uninstall>
52) 
Jeremy D Fixed a bug

Jeremy D authored 2 years ago

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

Jeremy D authored 2 years ago

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

jdarwood007 authored 4 years ago

55) 		<database>install_sfs.php</database>
56) 
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

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

Jeremy D authored 2 years ago

60) 		<require-file name="StopForumSpam.template.php" destination="$themedir" />
61) 		<require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" />
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 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

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

Jeremy D authored 2 years ago

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

Jeremy D authored 2 years ago

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

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

Jeremy D authored 2 years ago

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

jdarwood007 authored 4 years ago

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

Jeremy D authored 2 years ago

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

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

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

Jeremy D authored 2 years ago

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

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

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

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

Jeremy D authored 2 years ago

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

Jeremy D authored 2 years ago

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

105) 
jdarwood007 Add the Stop Forum Spam mod

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

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

jdarwood007 authored 4 years ago

108) 
109) 		<!-- source files, removed -->
jdarwood007 Refactoring code

jdarwood007 authored 4 years ago

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

Jeremy D authored 2 years ago

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

jdarwood007 authored 4 years ago

115) 	</uninstall>
116) 
Jeremy D Add support for API key and...

Jeremy D authored 2 years ago

117) 	<upgrade from="1.0" for="2.1.*">
118) 		<require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" />
119) 		<require-file name="StopForumSpam.template.php" destination="$themedir" />
120) 		<require-file name="SFS.php" destination="$sourcedir" />
121) 		<require-file name="SFS-Subs-Admin.php" destination="$sourcedir" />
Jeremy D Fixed issues with install/u...

Jeremy D authored 2 years ago

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

123) 
124) 		<!-- this dir may not exist in SMF -->
125) 		<create-dir name="admin" destination="$themedir/images" />
126) 		<require-file name="sfs.webp" destination="$themedir/images/admin" />
127) 	</upgrade>	
128) 
129) 	<upgrade from="1.0" for="2.0.*">
130) 		<code type="file">sfs_hooks_install.php</code>
131) 		<require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" />
132) 		<require-file name="StopForumSpam.template.php" destination="$themedir" />
133) 		<require-file name="SFS.php" destination="$sourcedir" />
134) 		<require-file name="SFS-Subs-Admin.php" destination="$sourcedir" />
135) 
136) 		<!-- this dir may not exist in SMF -->
137) 		<create-dir name="admin" destination="$themedir/images" />
138) 		<require-file name="sfs.webp" destination="$themedir/images/admin" />
139) 	</upgrade>