-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage-info.xml
58 lines (56 loc) · 2.24 KB
/
package-info.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?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>SMF_Modding:SMFQuiz</id>
<name>SMF Quiz</name>
<version>2.0.2</version>
<type>modification</type>
<!-- Install -->
<install for="2.1 - 2.1.99">
<!-- Mod Readme -->
<readme lang="english" parsebbc="true" type="file">readme/readme.english.txt</readme>
<!-- Credits -->
<credits url="https://smftricks.com" license="GPL 3.0" copyright="SMF Tricks" licenseurl="https://www.gnu.org/licenses/gpl-3.0.en.html">SMF Quiz Mod</credits>
<!-- License -->
<license type="inline" parsebbc="false">
This Source Code Form is subject to the terms of the General Public
License, v. 3.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://www.gnu.org/licenses/gpl-3.0.en.html.
</license>
<!-- Templates and Languages -->
<require-dir name="Themes" destination="$boarddir">Theme files</require-dir>
<!-- Source Files -->
<require-dir name="Sources" destination="$boarddir">Source files</require-dir>
<!-- Database -->
<database>database.php</database>
<!-- Hooks -->
<hook hook="integrate_pre_load" function="Quiz\Integration::init" file="$sourcedir/Quiz/Integration.php" />
<!-- Redirect -->
<redirect url="?action=admin;area=quiz" timeout="15000" />
</install>
<!-- Uninstall -->
<uninstall for="2.1 - 2.1.99">
<!-- Hooks -->
<hook hook="integrate_pre_load" function="Quiz\Integration::init" file="$sourcedir/Quiz/Integration.php" reverse="true" />
<!-- Source Files -->
<remove-dir name="$sourcedir/Quiz" />
<!-- Templates -->
<remove-dir name="$themedir/Quiz" />
<!-- Images -->
<!--
<remove-dir name="$imagesdir/quiz_images" />
Actually, don't remove this in case the user uploaded a bunch of new images
-->
<remove-file name="$imagesdir/icons/quiz.png" />
<!-- Scripts -->
<remove-dir name="$themedir/scripts/quiz" />
<!-- CSS -->
<remove-dir name="$themedir/css/quiz" />
<!-- Languages -->
<remove-dir name="$languagedir/Quiz" />
<!-- Database -->
<database>database.php</database>
<!-- Tasks -->
<code>uninstall.php</code>
</uninstall>
</package-info>