SleePy Public Git Projects
Repositories
Main Site
GitHub Profile
smfmod_sfs
Code
Commits
Branches
Tags
Search
Tree:
89ffe6d
Branches
Tags
master
Test
v.1.5.3
v0.9
v1.0
v1.1
v1.2
v1.3
v1.4
v1.5
v1.5.1
v1.5.2
v1.5.3
v1.5.4
smfmod_sfs
package-info.xml
Add support for API key and profile checks
Jeremy D
commited
89ffe6d
at 2022-03-26 15:35:13
package-info.xml
Blame
History
Raw
<?xml version="1.0"?> <!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info"> <package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/"> <id>SleePy:StopForumSpam</id> <name>Stop Forum Spam</name> <version>1.1</version> <type>modification</type> <install for="1.1.*"> <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> </install> <!-- 2.0 has no support for hooks --> <install for="2.0.*"> <readme type="file" parsebbc="true">README.bbc</readme> <database>install_sfs.php</database> <code type="file">sfs_hooks_install.php</code> <modification>install_smf20.xml</modification> <require-file name="SFS.php" destination="$sourcedir" /> <require-file name="SFS-Subs-Admin.php" destination="$sourcedir" /> <require-file name="SFS-Subs-Logs.php" destination="$sourcedir" /> <require-file name="StopForumSpam.template.php" destination="$themedir" /> <!-- this dir may not exist in SMF --> <create-dir name="admin" destination="$themedir/images" /> <require-file name="sfs.webp" destination="$themedir/images/admin" /> <!-- language files --> <require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" /> <redirect url="?action=admin;area=modsettings;sa=sfs" /> </install> <uninstall for="2.0.*"> <!-- database changes, undone --> <database>install_sfs.php</database> <code type="file">sfs_hooks_remove.php</code> <modification reverse="true">install_smf20.xml</modification> <!-- language files, removed --> <remove-dir name="$themes_dir/default/languages/StopForumSpam.english.php" /> <!-- source files, removed --> <remove-file name="$sourcedir/SFS.php" /> <remove-file name="$sourcedir/SFS-Subs-Admin.php" /> <remove-file name="$sourcedir/SFS-Subs-Logs.php" /> <remove-file name="$themedir/StopForumSpam.template.php" /> <remove-file name="$themedir/images/admin/sfs.webp" /> </uninstall> <install for="2.1.*"> <readme type="file" parsebbc="true">README.bbc</readme> <database>install_sfs.php</database> <require-file name="SFS.php" destination="$sourcedir" /> <require-file name="SFS-Subs-Admin.php" destination="$sourcedir" /> <require-file name="SFS-Subs-Logs.php" destination="$sourcedir" /> <require-file name="StopForumSpam.template.php" destination="$themedir" /> <require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" /> <!-- this dir may not exist in SMF --> <create-dir name="admin" destination="$themedir/images" /> <require-file name="sfs.webp" destination="$themedir/images/admin" /> <!-- All the hooks --> <!-- Main Section --> <hook hook="integrate_pre_include" function="$sourcedir/SFS.php" /> <hook hook="integrate_pre_load" function="SFS::hook_pre_load" /> <hook hook="integrate_register" function="SFS::hook_register" /> <hook hook="integrate_create_control_verification_test" function="SFS::hook_create_control_verification_test" /> <!-- Admin Section --> <hook hook="integrate_admin_include" function="$sourcedir/SFS-Subs-Admin.php" /> <hook hook="integrate_admin_areas" function="SFSA::hook_admin_areas" /> <hook hook="integrate_modify_modifications" function="SFSA::hook_modify_modifications" /> <hook hook="integrate_manage_logs" function="SFSA::hook_manage_logs" /> <!-- Profile Section --> <hook hook="integrate_pre_profile_areas" function="SFSA::hook_pre_profile_areas" /> <redirect url="?action=admin;area=modsettings;sa=sfs" /> </install> <uninstall for="2.1.*"> <!-- database changes, undone --> <database>install_sfs.php</database> <!-- All the hooks, removed --> <!-- Main Section --> <hook hook="integrate_pre_include" function="$sourcedir/SFS.php" reverse="true" /> <hook hook="integrate_pre_load" function="SFS::hook_pre_load" reverse="true" /> <hook hook="integrate_register" function="SFS::hook_register" reverse="true" /> <hook hook="integrate_create_control_verification_test" function="SFS::hook_create_control_verification_test" reverse="true" /> <!-- Admin Section --> <hook hook="integrate_admin_include" function="$sourcedir/SFS-Subs-Admin.php" reverse="true" /> <hook hook="integrate_admin_areas" function="SFSA::hook_admin_areas" reverse="true" /> <hook hook="integrate_modify_modifications" function="SFSA::hook_modify_modifications" reverse="true" /> <hook hook="integrate_manage_logs" function="SFSA::hook_manage_logs" reverse="true" /> <!-- Profile Section --> <hook hook="integrate_pre_profile_areas" function="SFSA::hook_pre_profile_areas" reverse="true" /> <!-- language files, removed --> <remove-file name="$themes_dir/default/languages/StopForumSpam.english.php" /> <!-- source files, removed --> <remove-file name="$sourcedir/SFS.php" /> <remove-file name="$sourcedir/SFS-Subs-Admin.php" /> <remove-file name="$sourcedir/SFS-Subs-Logs.php" /> <remove-file name="$themedir/StopForumSpam.template.php" /> <remove-file name="$themedir/images/admin/sfs.webp" /> </uninstall> <upgrade from="1.0" for="2.1.*"> <require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" /> <require-file name="StopForumSpam.template.php" destination="$themedir" /> <require-file name="SFS.php" destination="$sourcedir" /> <require-file name="SFS-Subs-Admin.php" destination="$sourcedir" /> <hook hook="integrate_pre_profile_areas" function="SFSA::hook_pre_profile_areas" /> <!-- this dir may not exist in SMF --> <create-dir name="admin" destination="$themedir/images" /> <require-file name="sfs.webp" destination="$themedir/images/admin" /> </upgrade> <upgrade from="1.0" for="2.0.*"> <code type="file">sfs_hooks_install.php</code> <require-file name="language/StopForumSpam.english.php" destination="$themes_dir/default/languages" /> <require-file name="StopForumSpam.template.php" destination="$themedir" /> <require-file name="SFS.php" destination="$sourcedir" /> <require-file name="SFS-Subs-Admin.php" destination="$sourcedir" /> <!-- this dir may not exist in SMF --> <create-dir name="admin" destination="$themedir/images" /> <require-file name="sfs.webp" destination="$themedir/images/admin" /> </upgrade> </package-info>