forked from malaquias63/xtreamxodesv2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmp_del.php
26 lines (25 loc) · 1.35 KB
/
tmp_del.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
<?php
/*Rev:26.09.18r0*/
if (!@$argc) {
die(0);
}
require str_replace('\\', '/', dirname($argv[0])) . '/../wwwdir/init.php';
cli_set_process_title('XtreamCodes[TMP Cleaner]');
$Ed756578679cd59095dfa81f228e8b38 = TMP_DIR . md5(AFfB052CCa396818D81004FF99db49aA() . __FILE__);
bbd9E78ac32626E138E758e840305A7c($Ed756578679cd59095dfa81f228e8b38);
$A0b0908a4d165ad72360bf4f9917b6bc = array('cloud_ips', 'cache_x', 'new_rewrite', 'series_data.php', 'bouquets_cache.php', 'servers_cache.php', 'settings_cache.php', 'customisp_cache.php', 'uagents_cache.php');
foreach (STREAM_TYPE as $Ca434bcc380e9dbd2a3a588f6c32d84f) {
$A0b0908a4d165ad72360bf4f9917b6bc[] = $Ca434bcc380e9dbd2a3a588f6c32d84f . '_main.php';
}
if ($fb1d4f6290dabf126bb2eb152b0eb565 = opendir(TMP_DIR)) {
while (false !== ($d1af25585916b0062524737f183dfb22 = readdir($fb1d4f6290dabf126bb2eb152b0eb565))) {
if ($d1af25585916b0062524737f183dfb22 != '.' && $d1af25585916b0062524737f183dfb22 != '..' && is_file(TMP_DIR . $d1af25585916b0062524737f183dfb22) && !in_array($d1af25585916b0062524737f183dfb22, $A0b0908a4d165ad72360bf4f9917b6bc)) {
if (800 <= time() - filemtime(TMP_DIR . $d1af25585916b0062524737f183dfb22)) {
unlink(TMP_DIR . $d1af25585916b0062524737f183dfb22);
}
}
}
closedir($fb1d4f6290dabf126bb2eb152b0eb565);
}
clearstatcache();
?>