forked from greatagent/ga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclean-old-file.php
71 lines (53 loc) · 1.54 KB
/
clean-old-file.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
<?php
# greatagent-ga - Software suite for breakthrough GFW
# greatagent-wp - Software suite for breakthrough GFW
#
# clean-old-file.php - Last cleanup
@unlink("data/usegc2");
@unlink("data/wwqgtxx-goagent.pubkey");
@unlink("cleanhash.php");
@unlink("makegservers.inc.php");
@unlink("miscellaneous.php");
@unlink("goagent-local/check_google_ip.pyo");
@unlink("goagent-local/ip.txt");
@unlink("goagent-local/certmgr.exe");
@unlink("goagent-local/CA.key");
@unlink("hash.dat");
@unlink("sign.dat");
@unlink("utility/md5deep.exe");
@unlink("utility/md5deep64.exe");
@unlink("git.txt");
@unlink("utility/certenc.dll");
@unlink("utility/certutil.exe");
@unlink("firefox.inc.php");
@unlink("startfirefox.inc.bat");
@unlink("startgoagent.inc.bat");
@unlink("update.inc.bat");
@unlink("miscellaneous.inc.bat");
@unlink("genhash.inc.bat");
@unlink(".gitattributes");
@unlink("greatagent-ga-standalone.bat");
/* 20121207 Remove incorrect Pinyin Filename */
@unlink("greatagent-ga-debug.bat");
@unlink("greatagent-ga-donotupdate.bat");
@unlink("greatagent-ga-donotupdate-debug.bat");
/* 20121218 Remove proxy.custom */
/* You may edit the FindProxyForURL() section in /goagent-local/proxy.pac to create custom rules */
if(file_exists('data/proxy.custom')){
@unlink('data/proxy.custom');
}
function set_flag($seq){
touch("data/flag/{$seq}.flag");
}
function _unlink($target){
echo $target;
return unlink($target);
}
function unlinkglob($dir){
$files = glob($dir);
var_dump($files);
array_walk($files,'_unlink');
}
/* 20130214 */
@unlink("makensi.php");
?>