-
Notifications
You must be signed in to change notification settings - Fork 0
/
package-info.xml
56 lines (55 loc) · 2.35 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
<?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:bbctopicslist</id>
<name>BBC Topics List</name>
<version>1.2.1</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', '8.0.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>
<!-- 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>
<!-- Theme Files -->
<require-dir name="Themes" destination="$boarddir">Theme Files</require-dir>
<!-- BBC Files -->
<require-dir name="Sources" destination="$boarddir">Source file</require-dir>
<!-- Hooks -->
<hook hook="integrate_pre_load" function="BBC_TopicsList::initialize#" file="$sourcedir/BBC-TopicsList.php" />
<!-- Redirect -->
<redirect url="?action=admin;area=modsettings;sa=topicslist;" />
</install>
<uninstall for="2.1 - 2.1.99">
<!-- Hooks Remove -->
<hook hook="integrate_pre_load" function="BBC_TopicsList::initialize#" file="$sourcedir/BBC-TopicsList.php" reverse="true" />
<!-- Source Files -->
<remove-file name="$sourcedir/BBC-TopicsList.php">Source file</remove-file>
<!-- Temnplate Files -->
<remove-file name="$themedir/TopicsList.template.php">Template file</remove-file>
<!-- Language Files -->
<remove-dir name="$languagedir/TopicsList">Language Files</remove-dir>
<!-- CSS Files -->
<remove-file name="$themedir/css/bbc_topicslist.css">CSS File</remove-file>
<!-- JS Files -->
<remove-file name="$themedir/scripts/bbc_topicslist.js">JavaScript File</remove-file>
<!-- Image -->
<remove-file name="$imagesdir/bbc/topicslist.png" />
</uninstall>
</package-info>