-
Notifications
You must be signed in to change notification settings - Fork 5
/
deleted.php
203 lines (189 loc) · 9.69 KB
/
deleted.php
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
<?php
$files = [
// From 9.2.0 to case 11051
'/administrator/components/com_dpcalendar/forms/event_userdiscount.xml',
'/components/com_dpcalendar/tmpl/bookingform/default_coupon.php',
'/components/com_dpcalendar/tmpl/event/default_bookings_earlybird.php',
'/components/com_dpcalendar/tmpl/event/default_bookings_user.php',
// From v9.2.0 to case 11074
'/administrator/components/com_dpcalendar/forms/event_userdiscount.xml',
'/components/com_dpcalendar/tmpl/bookingform/default_coupon.php',
'/components/com_dpcalendar/tmpl/event/default_bookings_earlybird.php',
'/components/com_dpcalendar/tmpl/event/default_bookings_user.php',
// From 9.2.0 to case 945
'/components/com_dpcalendar/tmpl/calendar/default_toggle.php',
'/components/com_dpcalendar/tmpl/calendar/timeline_toggle.php',
// From 9.2.0 to case 11132
'/administrator/components/com_dpcalendar/forms/event_earlybird.xml',
// From 9.2.0 to case 11172
'/components/com_dpcalendar/tmpl/bookings/default_header.php',
'/components/com_dpcalendar/tmpl/tickets/default_header.php',
// From v9.2.1 to case 11168
'/media/com_dpcalendar/css/dpcalendar/fields/dpcalendar.css',
'/media/com_dpcalendar/css/dpcalendar/fields/dpcalendar.css.map',
'/media/com_dpcalendar/css/dpcalendar/fields/dptoken.css',
'/media/com_dpcalendar/css/dpcalendar/fields/dptoken.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/adminevent/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/adminevent/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/adminform/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/adminform/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/adminlist/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/adminlist/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/booking/abort.css',
'/media/com_dpcalendar/css/dpcalendar/views/booking/abort.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/booking/cancel.css',
'/media/com_dpcalendar/css/dpcalendar/views/booking/cancel.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/booking/confirm.css',
'/media/com_dpcalendar/css/dpcalendar/views/booking/confirm.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/booking/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/booking/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/booking/order.css',
'/media/com_dpcalendar/css/dpcalendar/views/booking/order.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/booking/review.css',
'/media/com_dpcalendar/css/dpcalendar/views/booking/review.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/bookingform/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/bookingform/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/bookings/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/bookings/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/calendar/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/calendar/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/calendar/timeline.css',
'/media/com_dpcalendar/css/dpcalendar/views/calendar/timeline.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/cpanel/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/cpanel/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/davcalendar/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/davcalendar/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/event/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/event/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/event/mailtickets.css',
'/media/com_dpcalendar/css/dpcalendar/views/event/mailtickets.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/form/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/form/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/invite/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/invite/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/list/blog.css',
'/media/com_dpcalendar/css/dpcalendar/views/list/blog.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/list/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/list/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/list/timeline.css',
'/media/com_dpcalendar/css/dpcalendar/views/list/timeline.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/location/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/location/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/locationform/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/locationform/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/locations/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/locations/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/map/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/map/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/profile/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/profile/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/ticket/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/ticket/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/ticketform/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/ticketform/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/tickets/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/tickets/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/tools/default.css',
'/media/com_dpcalendar/css/dpcalendar/views/tools/default.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/tools/import.css',
'/media/com_dpcalendar/css/dpcalendar/views/tools/import.css.map',
'/media/com_dpcalendar/css/dpcalendar/views/tools/translate.css',
'/media/com_dpcalendar/css/dpcalendar/views/tools/translate.css.map',
'/media/com_dpcalendar/js/dayjs',
'/media/com_dpcalendar/js/domurl',
'/media/com_dpcalendar/js/dpcalendar',
'/media/com_dpcalendar/js/fullcalendar',
'/media/com_dpcalendar/js/iframe-resizer',
'/media/com_dpcalendar/js/leaflet',
'/media/com_dpcalendar/js/pikaday',
'/media/com_dpcalendar/js/popper',
'/media/com_dpcalendar/js/scheduler',
'/media/com_dpcalendar/js/tingle',
'/media/com_dpcalendar/js/tippy',
'/media/mod_dpcalendar_counter/css/default.css',
'/media/mod_dpcalendar_counter/css/default.css.map',
'/media/mod_dpcalendar_counter/js/default.js',
'/media/mod_dpcalendar_counter/js/default.js.map',
'/media/mod_dpcalendar_map/css/default.css',
'/media/mod_dpcalendar_map/css/default.css.map',
'/media/mod_dpcalendar_mini/css/default.css',
'/media/mod_dpcalendar_mini/css/default.css.map',
'/media/mod_dpcalendar_upcoming/css/blog.css',
'/media/mod_dpcalendar_upcoming/css/blog.css.map',
'/media/mod_dpcalendar_upcoming/css/default.css',
'/media/mod_dpcalendar_upcoming/css/default.css.map',
'/media/mod_dpcalendar_upcoming/css/horizontal.css',
'/media/mod_dpcalendar_upcoming/css/horizontal.css.map',
'/media/mod_dpcalendar_upcoming/css/icon.css',
'/media/mod_dpcalendar_upcoming/css/icon.css.map',
'/media/mod_dpcalendar_upcoming/css/panel.css',
'/media/mod_dpcalendar_upcoming/css/panel.css.map',
'/media/mod_dpcalendar_upcoming/css/simple.css',
'/media/mod_dpcalendar_upcoming/css/simple.css.map',
'/media/mod_dpcalendar_upcoming/css/timeline.css',
'/media/mod_dpcalendar_upcoming/css/timeline.css.map',
'/media/mod_dpcalendar_upcoming/js/default.js',
'/media/mod_dpcalendar_upcoming/js/default.js.map',
'/media/plg_content_dpcalendar/css/bookings.css',
'/media/plg_content_dpcalendar/css/bookings.css.map',
'/media/plg_content_dpcalendar/css/events.css',
'/media/plg_content_dpcalendar/css/events.css.map',
'/media/plg_dpcalendar_jitsi/css/join.css',
'/media/plg_dpcalendar_jitsi/css/join.css.map',
'/media/plg_dpcalendar_jitsi/js/join.js',
'/media/plg_dpcalendar_jitsi/js/join.js.map',
'/media/plg_dpcalendar_zoom/css/join.css',
'/media/plg_dpcalendar_zoom/css/join.css.map',
'/media/plg_dpcalendar_zoom/css/recordings.css',
'/media/plg_dpcalendar_zoom/css/recordings.css.map',
'/media/plg_dpcalendar_zoom/js/dpcalendar',
'/media/plg_dpcalendar_zoom/js/zoom',
'/media/plg_dpcalendarpay_braintree/css/form.css',
'/media/plg_dpcalendarpay_braintree/css/form.css.map',
'/media/plg_dpcalendarpay_braintree/js/form.js',
'/media/plg_dpcalendarpay_braintree/js/form.js.map',
'/media/plg_dpcalendarpay_stripe/css/form.css',
'/media/plg_dpcalendarpay_stripe/css/form.css.map',
'/media/plg_dpcalendarpay_stripe/js/form.js',
'/media/plg_dpcalendarpay_stripe/js/form.js.map',
'/media/plg_system_dpcalendarrsform/css/default.css',
'/media/plg_system_dpcalendarrsform/css/default.css.map',
'/media/plg_system_dpcalendarrsform/js/default.js',
'/media/plg_system_dpcalendarrsform/js/default.js.map',
'/media/plg_system_dpcalendarytp/css/default.css',
'/media/plg_system_dpcalendarytp/css/default.css.map',
// From v10.0.1 to case 11200
'/media/com_dpcalendar/js/vendor/popperjs/core/index.min.js',
// From v10.0.1 to case 11201
'/media/com_dpcalendar/css/leaflet/leaflet.css.map',
'/media/com_dpcalendar/css/leaflet/leaflet.min.css',
'/media/com_dpcalendar/css/leaflet/mapbox.min.css',
'/media/com_dpcalendar/css/pikaday',
'/media/com_dpcalendar/css/tingle',
'/media/com_dpcalendar/css/tippy',
'/media/com_dpcalendar/js/modules/block/loader.min.js',
'/media/com_dpcalendar/js/vendor/popperjs/core/index.min.js',
'/media/mod_dpcalendar/upcoming/js/modules/block',
];
foreach ($files as $file) {
$fullPath = JPATH_ROOT . $file;
if (empty($file) || !file_exists($fullPath)) {
continue;
}
if (is_file($fullPath)) {
unlink($fullPath);
continue;
}
try {
$files = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($fullPath, RecursiveDirectoryIterator::SKIP_DOTS),
RecursiveIteratorIterator::CHILD_FIRST
);
foreach ($files as $fileinfo) {
$todo = $fileinfo->isDir() ? 'rmdir' : 'unlink';
$todo($fileinfo->getRealPath());
}
rmdir($fullPath);
} catch (Exception $e) {
}
}