forked from SimpleMachines/SimpleDesk
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package-info.xml
232 lines (184 loc) · 14.5 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<?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>SimpleDeskTeam:SimpleDesk</id>
<name>SimpleDesk - Integrated Helpdesk for Simple Machines Forum</name>
<version>2.1.3</version>
<type>modification</type>
<!-- (Minor Upgrade) This should just be the files we need to get to the current. -->
<upgrade from="2.1.2" for="2.1.4-2.1.99">
<require-file name="sd_source/Subs-SimpleDesk.php" destination="$sourcedir/sd_source" />
<require-file name="sd_source/Subs-SimpleDeskManageAttachments.php" destination="$sourcedir/sd_source" />
<require-file name="sd_source/Subs-SimpleDeskPost.php" destination="$sourcedir/sd_source" />
<require-file name="sd_source/Subs-SimpleDeskDisplay.php" destination="$sourcedir/sd_source" />
</upgrade>
<!-- (Large upgrade) This should always indicate the lowest package we can upgrade from and all changes to the current -->
<upgrade from="2.1.0" for="2.1.4-2.1.99">
<!-- language files -->
<require-dir name="sd_language" destination="$themes_dir/default/languages" />
<!-- sources -->
<require-dir name="sd_source" destination="$sourcedir" />
<!-- templates -->
<require-dir name="sd_template" destination="$themedir" />
<!-- images -->
<require-dir name="images/simpledesk" destination="$themes_dir/default/images" />
<require-dir name="images/sd_plugins" destination="$themes_dir/default/images" />
<require-dir name="images/shd" destination="$imagesdir/admin" />
<require-file name="images/feature_shd.png" destination="$themes_dir/default/images/admin" /><!-- explicitly called from default theme in ACP -->
<!-- css -->
<require-file name="css/helpdesk.css" destination="$themedir/css" />
<require-file name="css/helpdesk_admin.css" destination="$themedir/css" />
<require-file name="css/helpdesk_responsive.css" destination="$themedir/css" />
<require-file name="css/helpdesk_icons.css" destination="$themedir/css" />
<!-- scripts -->
<require-file name="scripts/helpdesk_admin.js" destination="$themedir/scripts" />
<require-file name="scripts/helpdesk.js" destination="$themedir/scripts" />
<!-- bundled plugins -->
<require-dir name="sd_plugins_source" destination="$sourcedir" />
<require-dir name="sd_plugins_template" destination="$themes_dir/default" />
<require-dir name="sd_plugins_lang" destination="$languagedir" />
</upgrade>
<install for="2.1.4-2.1.99">
<!-- readme files -->
<readme lang="english" parsebbc="true" type="file">language-readme/readme.english.txt</readme>
<!-- language files -->
<require-dir name="sd_language" destination="$themes_dir/default/languages" />
<!-- sources -->
<require-dir name="sd_source" destination="$sourcedir" />
<!-- templates -->
<require-dir name="sd_template" destination="$themedir" />
<!-- images -->
<require-dir name="images/simpledesk" destination="$themes_dir/default/images" />
<require-dir name="images/sd_plugins" destination="$themes_dir/default/images" />
<require-dir name="images/shd" destination="$imagesdir/admin" />
<require-file name="images/feature_shd.png" destination="$themes_dir/default/images/admin" /><!-- explicitly called from default theme in ACP -->
<!-- css -->
<require-file name="css/helpdesk.css" destination="$themedir/css" />
<require-file name="css/helpdesk_admin.css" destination="$themedir/css" />
<require-file name="css/helpdesk_responsive.css" destination="$themedir/css" />
<require-file name="css/helpdesk_icons.css" destination="$themedir/css" />
<!-- scripts -->
<require-file name="scripts/helpdesk_admin.js" destination="$themedir/scripts" />
<require-file name="scripts/helpdesk.js" destination="$themedir/scripts" />
<!-- bundled plugins -->
<require-dir name="sd_plugins_source" destination="$sourcedir" />
<require-dir name="sd_plugins_template" destination="$themes_dir/default" />
<require-dir name="sd_plugins_lang" destination="$languagedir" />
<!-- All the hooks -->
<!-- SMF Core -->
<hook hook="integrate_pre_include" function="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook hook="integrate_user_info" function="shd_init" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook hook="integrate_actions" function="shd_init_actions" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook hook="integrate_buffer" function="shd_buffer_replace" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook hook="integrate_menu_buttons" function="shd_main_menu" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook hook="integrate_current_action" function="shd_init_current_action" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook hook="integrate_load_permissions" function="shd_admin_smf_perms" file="$sourcedir/sd_source/Subs-SimpleDeskAdmin.php" />
<hook hook="integrate_error_types" function="shd_error_types" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook hook="integrate_bbc_codes" function="shd_bbc_codes" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook hook="integrate_post_parsebbc" function="shd_parse_wikilinks" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook hook="integrate_profile_popup" function="shd_profile_menu" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<!-- Admin Section: Core -->
<hook hook="integrate_admin_include" function="$sourcedir/sd_source/Subs-SimpleDeskAdmin.php" />
<hook hook="integrate_admin_areas" function="shd_admin_bootstrap" file="$sourcedir/sd_source/Subs-SimpleDeskAdmin.php" />
<hook hook="integrate_admin_search" function="shd_admin_search" file="$sourcedir/sd_source/Subs-SimpleDeskAdmin.php" />
<!-- Admin Section: Attachments -->
<hook hook="integrate_remove_attachments" function="shd_remove_attachments" file="$sourcedir/sd_source/Subs-SimpleDeskAdmin.php" />
<hook hook="integrate_attachments_browse" function="shd_attachments_browse" file="$sourcedir/sd_source/Subs-SimpleDeskManageAttachments.php" />
<hook hook="integrate_attachment_remove" function="shd_attachment_remove" file="$sourcedir/sd_source/Subs-SimpleDeskManageAttachments.php" />
<hook hook="integrate_repair_attachments_nomsg" function="shd_repair_attachments_nomsg" file="$sourcedir/sd_source/Subs-SimpleDeskManageAttachments.php" />
<!-- Admin Section: Packages -->
<hook hook="integrate_packages_sort_id" function="shd_packages_sort_id" file="$sourcedir/sd_source/Subs-SimpleDeskPackages.php" />
<hook hook="integrate_package_download" function="shd_package_download" file="$sourcedir/sd_source/Subs-SimpleDeskPackages.php" />
<hook hook="integrate_package_upload" function="shd_package_upload" file="$sourcedir/sd_source/Subs-SimpleDeskPackages.php" />
<hook hook="integrate_modification_types" function="shd_modification_types" file="$sourcedir/sd_source/Subs-SimpleDeskPackages.php" />
<!-- Admin Section: Other -->
<hook hook="integrate_convert_msgbody" function="shd_convert_msgbody" file="$sourcedir/sd_source/Subs-SimpleDeskAdmin.php" />
<hook hook="integrate_modifylanguages" function="shd_modifylanguages" file="$sourcedir/sd_source/Subs-SimpleDeskAdmin.php" />
<!-- Display -->
<hook hook="integrate_display_buttons" function="shd_display_btn_mvtopic" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<!-- ShowAttachments -->
<hook hook="integrate_pre_download_request" function="shd_pre_download_request" file="$sourcedir/sd_source/Subs-SimpleDeskDisplay.php" />
<hook hook="integrate_download_request" function="shd_download_request" file="$sourcedir/sd_source/Subs-SimpleDeskDisplay.php" />
<!-- BoardIndex -->
<hook hook="integrate_getboardtree" function="shd_add_to_boardindex" file="$sourcedir/sd_source/Subs-SimpleDeskBoardIndex.php" />
<!-- Profile -->
<hook hook="integrate_pre_profile_areas" function="shd_profile_areas" file="$sourcedir/sd_source/Subs-SimpleDeskProfile.php" />
<hook hook="integrate_profile_profileSaveGroups" function="shd_clear_active_tickets" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook hook="integrate_profile_trackip" function="shd_profile_trackip" file="$sourcedir/sd_source/Subs-SimpleDeskProfile.php" />
<!-- Other -->
<hook hook="integrate_SSI" function="ssi_shd_called" file="$sourcedir/sd_source/SimpleDesk-SSI.php" />
<!-- database changes -->
<database>install-sd.php</database>
<redirect url="?action=admin;area=helpdesk_info" />
<credits url="https://www.simpledesk.net" license="BSD 3-Clause" licenseurl="https://github.com/SimpleMachines/SimpleDesk/blob/master/license.txt" copyright="2010-2021">Simple Desk</credits>
</install>
<uninstall for="2.1.4-2.1.99">
<!-- database changes, undone -->
<database>uninstall-sd-optional.php</database>
<code type="file">uninstall-sd-required.php</code>
<!-- All the hooks -->
<!-- SMF Core -->
<hook reverse="true" hook="integrate_pre_include" function="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook reverse="true" hook="integrate_user_info" function="shd_init" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook reverse="true" hook="integrate_actions" function="shd_init_actions" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook reverse="true" hook="integrate_buffer" function="shd_buffer_replace" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook reverse="true" hook="integrate_menu_buttons" function="shd_main_menu" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook reverse="true" hook="integrate_current_action" function="shd_init_current_action" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook reverse="true" hook="integrate_load_permissions" function="shd_admin_smf_perms" file="$sourcedir/sd_source/Subs-SimpleDeskAdmin.php" />
<hook reverse="true" hook="integrate_error_types" function="shd_error_types" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook reverse="true" hook="integrate_bbc_codes" function="shd_bbc_codes" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook reverse="true" hook="integrate_post_parsebbc" function="shd_parse_wikilinks" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook reverse="true" hook="integrate_profile_popup" function="shd_profile_menu" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<!-- Admin Section: Core -->
<hook reverse="true" hook="integrate_admin_include" function="$sourcedir/sd_source/Subs-SimpleDeskAdmin.php" />
<hook reverse="true" hook="integrate_admin_areas" function="shd_admin_bootstrap" file="$sourcedir/sd_source/Subs-SimpleDeskAdmin.php" />
<hook reverse="true" hook="integrate_admin_search" function="shd_admin_search" file="$sourcedir/sd_source/Subs-SimpleDeskAdmin.php" />
<!-- Admin Section: Attachments -->
<hook reverse="true" hook="integrate_remove_attachments" function="shd_remove_attachments" file="$sourcedir/sd_source/Subs-SimpleDeskAdmin.php" />
<hook reverse="true" hook="integrate_attachments_browse" function="shd_attachments_browse" file="$sourcedir/sd_source/Subs-SimpleDeskManageAttachments.php" />
<hook reverse="true" hook="integrate_attachment_remove" function="shd_attachment_remove" file="$sourcedir/sd_source/Subs-SimpleDeskManageAttachments.php" />
<hook reverse="true" hook="integrate_repair_attachments_nomsg" function="shd_repair_attachments_nomsg" file="$sourcedir/sd_source/Subs-SimpleDeskManageAttachments.php" />
<!-- Admin Section: Packages -->
<hook reverse="true" hook="integrate_packages_sort_id" function="shd_packages_sort_id" file="$sourcedir/sd_source/Subs-SimpleDeskPackages.php" />
<hook reverse="true" hook="integrate_package_download" function="shd_package_download" file="$sourcedir/sd_source/Subs-SimpleDeskPackages.php" />
<hook reverse="true" hook="integrate_package_upload" function="shd_package_upload" file="$sourcedir/sd_source/Subs-SimpleDeskPackages.php" />
<hook reverse="true" hook="integrate_modification_types" function="shd_modification_types" file="$sourcedir/sd_source/Subs-SimpleDeskPackages.php" />
<!-- Admin Section: Other -->
<hook reverse="true" hook="integrate_convert_msgbody" function="shd_convert_msgbody" file="$sourcedir/sd_source/Subs-SimpleDeskAdmin.php" />
<hook reverse="true" hook="integrate_modifylanguages" function="shd_modifylanguages" file="$sourcedir/sd_source/Subs-SimpleDeskAdmin.php" />
<!-- Display -->
<hook reverse="true" hook="integrate_display_buttons" function="shd_display_btn_mvtopic" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<!-- ShowAttachments -->
<hook reverse="true" hook="integrate_pre_download_request" function="shd_pre_download_request" file="$sourcedir/sd_source/Subs-SimpleDeskDisplay.php" />
<hook reverse="true" hook="integrate_download_request" function="shd_download_request" file="$sourcedir/sd_source/Subs-SimpleDeskDisplay.php" />
<!-- BoardIndex -->
<hook reverse="true" hook="integrate_getboardtree" function="shd_add_to_boardindex" file="$sourcedir/sd_source/Subs-SimpleDeskBoardIndex.php" />
<!-- Profile -->
<hook reverse="true" hook="integrate_pre_profile_areas" function="shd_profile_areas" file="$sourcedir/sd_source/Subs-SimpleDeskProfile.php" />
<hook reverse="true" hook="integrate_profile_profileSaveGroups" function="shd_clear_active_tickets" file="$sourcedir/sd_source/Subs-SimpleDesk.php" />
<hook reverse="true" hook="integrate_profile_trackip" function="shd_profile_trackip" file="$sourcedir/sd_source/Subs-SimpleDeskProfile.php" />
<!-- Other -->
<hook reverse="true" hook="integrate_SSI" function="ssi_shd_called" file="$sourcedir/sd_source/SimpleDesk-SSI.php" />
<!-- language files, removed -->
<remove-dir name="$themes_dir/default/languages/sd_language" />
<!-- source files, removed -->
<remove-dir name="$sourcedir/sd_source" />
<!-- template files, removed -->
<remove-dir name="$themedir/sd_template" />
<!-- images, removed -->
<remove-dir name="$themes_dir/default/images/simpledesk" />
<remove-dir name="$imagesdir/admin/shd" />
<remove-file name="$themes_dir/default/images/admin/feature_shd.png" />
<!-- css, removed -->
<remove-file name="$themedir/css/helpdesk.css" />
<remove-file name="$themedir/css/helpdesk_admin.css" />
<remove-file name="$themedir/css/helpdesk_responsive.css" />
<remove-file name="$themedir/css/helpdesk_icons.css" />
<!-- bundled plugins removed (NOTE: done one by one to avoid eating existing plugins on upgrade) -->
<remove-dir name="$languagedir/sd_plugins_lang/SDPluginFrontPage.english.php" />
<remove-dir name="$languagedir/sd_plugins_lang/SDPluginStats.english.php" />
<!-- scripts, removed -->
<remove-file name="$themedir/scripts/helpdesk_admin.js" />
<remove-file name="$themedir/scripts/helpdesk.js" />
</uninstall>
</package-info>