-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage-info.xml
60 lines (59 loc) · 2.53 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
59
60
<?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>smftricks:postprefix</id>
<name>SMF Post Prefix</name>
<version>4.3.4</version>
<type>modification</type>
<install for="2.1 - 2.1.99">
<!-- Throw error if PHP version too old -->
<code type="inline"><![CDATA[<?php
define('REQUIRED_PHP_VERSION', '7.3.0');
if (version_compare(PHP_VERSION, REQUIRED_PHP_VERSION, '<'))
fatal_error(
sprintf(
'This mod requires a minimum of PHP %s in order to function. (You are currently running PHP %s)',
REQUIRED_PHP_VERSION,
PHP_VERSION
),
false
);
?>]]></code>
<!-- Mod Readme -->
<readme lang="english" parsebbc="true" type="file">readme/readme.english.txt</readme>
<!-- Credits -->
<credits url="https://smftricks.com" license="MPL 2.0" copyright="SMF Tricks" licenseurl="https://www.mozilla.org/en-US/MPL/2.0/">SMF Post Prefix</credits>
<!-- License -->
<license type="inline" parsebbc="false">
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
</license>
<!-- Source Files -->
<require-dir name="Sources" destination="$boarddir">Source files</require-dir>
<!-- Templates and Languages -->
<require-dir name="Themes" destination="$boarddir">Theme files</require-dir>
<!-- Database -->
<database>install.php</database>
<!-- Hooks -->
<hook hook="integrate_pre_load" function="PostPrefix\PostPrefix::initialize" file="$sourcedir/PostPrefix/PostPrefix.php" />
<!-- Redirect -->
<redirect url="?action=admin;area=postprefix" />
</install>
<uninstall for="2.1 - 2.1.99">
<!-- Hooks -->
<hook hook="integrate_pre_load" function="PostPrefix\PostPrefix::initialize" file="$sourcedir/PostPrefix/PostPrefix.php" reverse="true" />
<!-- Source Files -->
<remove-dir name="$sourcedir/PostPrefix">Source files</remove-dir>
<!-- Languages -->
<remove-dir name="$languagedir/PostPrefix">Language files</remove-dir>
<!-- Scripts -->
<remove-dir name="$themedir/scripts/postprefix">JS files</remove-dir>
<!-- Styles -->
<remove-dir name="$themedir/css/postprefix">CSS files</remove-dir>
<!-- Templates -->
<remove-file name="$themedir/PostPrefix.template.php">Template files</remove-file>
<!-- Database -->
<database>install.php</database>
</uninstall>
</package-info>