-
Notifications
You must be signed in to change notification settings - Fork 1
/
cron.php
97 lines (97 loc) · 6.5 KB
/
cron.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
<?php
/*
第一修改者为作者
修改者:lbr-dev,预留
修改者GITHUB:lbr-dev(https://github.com/lbr-dev/),预留
修改者QQ:lbr-dev(3170482764),预留
本项目开源地址:https://github.com/kingcardconfig/kingcardconfig/
*/
include_once('public.php');
if ($configcronlogonoroff == 'on') {
if (wcltfapi($configcronlogfilename) == '1') {
$wkdtconfig=file_get_contents($configwkdtconfigfilename);
if (checkguidandtoken($configcheckguidandtokenurl,$configcheckguidandtokenproxyip,$configcheckguidandtokenproxyport,$configcheckguidandtokenua,getconfigguid($wkdtconfig),getconfigtoken($wkdtconfig),$configcheckguidandtokenhtml,$configtimeout,$configisgziphtmlfilename) == '1') {
file_put_contents($configwkdtconfigfilename,$wkdtconfig);
echo $configcronsuccessmessage;
} else {
$wkdtconfig1=gethtml($configwkdtconfig1url,$configwkdtconfig1ua,$configtimeout,$configisgziphtmlfilename);
if (checkguidandtoken($configcheckguidandtokenurl,$configcheckguidandtokenproxyip,$configcheckguidandtokenproxyport,$configcheckguidandtokenua,getconfigguid($wkdtconfig1),getconfigtoken($wkdtconfig1),$configcheckguidandtokenhtml,$configtimeout,$configisgziphtmlfilename) == '1') {
file_put_contents($configwkdtconfigfilename,$wkdtconfig1);
echo $configcronsuccessmessage;
} else {
$wkdtconfig2=gethtml($configwkdtconfig2url,$configwkdtconfig2ua,$configtimeout,$configisgziphtmlfilename);
if (checkguidandtoken($configcheckguidandtokenurl,$configcheckguidandtokenproxyip,$configcheckguidandtokenproxyport,$configcheckguidandtokenua,getconfigguid($wkdtconfig2),getconfigtoken($wkdtconfig2),$configcheckguidandtokenhtml,$configtimeout,$configisgziphtmlfilename) == '1') {
file_put_contents($configwkdtconfigfilename,$wkdtconfig2);
echo $configcronsuccessmessage;
} else {
$wkdtconfig3=gethtml($configwkdtconfig3url,$configwkdtconfig3ua,$configtimeout,$configisgziphtmlfilename);
if (checkguidandtoken($configcheckguidandtokenurl,$configcheckguidandtokenproxyip,$configcheckguidandtokenproxyport,$configcheckguidandtokenua,getconfigguid($wkdtconfig3),getconfigtoken($wkdtconfig3),$configcheckguidandtokenhtml,$configtimeout,$configisgziphtmlfilename) == '1') {
file_put_contents($configwkdtconfigfilename,$wkdtconfig3);
echo $configcronsuccessmessage;
} else {
$wkdtconfig4=gethtml($configwkdtconfig4url,$configwkdtconfig4ua,$configtimeout,$configisgziphtmlfilename);
if (checkguidandtoken($configcheckguidandtokenurl,$configcheckguidandtokenproxyip,$configcheckguidandtokenproxyport,$configcheckguidandtokenua,getconfigguid($wkdtconfig4),getconfigtoken($wkdtconfig4),$configcheckguidandtokenhtml,$configtimeout,$configisgziphtmlfilename) == '1') {
file_put_contents($configwkdtconfigfilename,$wkdtconfig4);
echo $configcronsuccessmessage;
} else {
$wkdtconfig5=gethtml($configwkdtconfig5url,$configwkdtconfig5ua,$configtimeout,$configisgziphtmlfilename);
if (checkguidandtoken($configcheckguidandtokenurl,$configcheckguidandtokenproxyip,$configcheckguidandtokenproxyport,$configcheckguidandtokenua,getconfigguid($wkdtconfig5),getconfigtoken($wkdtconfig5),$configcheckguidandtokenhtml,$configtimeout,$configisgziphtmlfilename) == '1') {
file_put_contents($configwkdtconfigfilename,$wkdtconfig5);
echo $configcronsuccessmessage;
} else {
$time=date("Y-m-d H:i:s");
$notwkdtconfig='{"Time":"'.$time.'","Guid":"not king card config !","Token":"not king card config !"}';
file_put_contents($configwkdtconfigfilename,$notwkdtconfig);
echo $configcronsuccessmessage;
}
}
}
}
}
}
} else {
echo "写入任务日志到".$configcronlogfilename."失败!";
}
} else {
$wkdtconfig=file_get_contents($configwkdtconfigfilename);
if (checkguidandtoken($configcheckguidandtokenurl,$configcheckguidandtokenproxyip,$configcheckguidandtokenproxyport,$configcheckguidandtokenua,getconfigguid($wkdtconfig),getconfigtoken($wkdtconfig),$configcheckguidandtokenhtml,$configtimeout,$configisgziphtmlfilename) == '1') {
file_put_contents($configwkdtconfigfilename,$wkdtconfig);
echo $configcronsuccessmessage;
} else {
$wkdtconfig1=gethtml($configwkdtconfig1url,$configwkdtconfig1ua,$configtimeout,$configisgziphtmlfilename);
if (checkguidandtoken($configcheckguidandtokenurl,$configcheckguidandtokenproxyip,$configcheckguidandtokenproxyport,$configcheckguidandtokenua,getconfigguid($wkdtconfig1),getconfigtoken($wkdtconfig1),$configcheckguidandtokenhtml,$configtimeout,$configisgziphtmlfilename) == '1') {
file_put_contents($configwkdtconfigfilename,$wkdtconfig1);
echo $configcronsuccessmessage;
} else {
$wkdtconfig2=gethtml($configwkdtconfig2url,$configwkdtconfig2ua,$configtimeout,$configisgziphtmlfilename);
if (checkguidandtoken($configcheckguidandtokenurl,$configcheckguidandtokenproxyip,$configcheckguidandtokenproxyport,$configcheckguidandtokenua,getconfigguid($wkdtconfig2),getconfigtoken($wkdtconfig2),$configcheckguidandtokenhtml,$configtimeout,$configisgziphtmlfilename) == '1') {
file_put_contents($configwkdtconfigfilename,$wkdtconfig2);
echo $configcronsuccessmessage;
} else {
$wkdtconfig3=gethtml($configwkdtconfig3url,$configwkdtconfig3ua,$configtimeout,$configisgziphtmlfilename);
if (checkguidandtoken($configcheckguidandtokenurl,$configcheckguidandtokenproxyip,$configcheckguidandtokenproxyport,$configcheckguidandtokenua,getconfigguid($wkdtconfig3),getconfigtoken($wkdtconfig3),$configcheckguidandtokenhtml,$configtimeout,$configisgziphtmlfilename) == '1') {
file_put_contents($configwkdtconfigfilename,$wkdtconfig3);
echo $configcronsuccessmessage;
} else {
$wkdtconfig4=gethtml($configwkdtconfig4url,$configwkdtconfig4ua,$configtimeout,$configisgziphtmlfilename);
if (checkguidandtoken($configcheckguidandtokenurl,$configcheckguidandtokenproxyip,$configcheckguidandtokenproxyport,$configcheckguidandtokenua,getconfigguid($wkdtconfig4),getconfigtoken($wkdtconfig4),$configcheckguidandtokenhtml,$configtimeout,$configisgziphtmlfilename) == '1') {
file_put_contents($configwkdtconfigfilename,$wkdtconfig4);
echo $configcronsuccessmessage;
} else {
$wkdtconfig5=gethtml($configwkdtconfig5url,$configwkdtconfig5ua,$configtimeout,$configisgziphtmlfilename);
if (checkguidandtoken($configcheckguidandtokenurl,$configcheckguidandtokenproxyip,$configcheckguidandtokenproxyport,$configcheckguidandtokenua,getconfigguid($wkdtconfig5),getconfigtoken($wkdtconfig5),$configcheckguidandtokenhtml,$configtimeout,$configisgziphtmlfilename) == '1') {
file_put_contents($configwkdtconfigfilename,$wkdtconfig5);
echo $configcronsuccessmessage;
} else {
$time=date("Y-m-d H:i:s");
$notwkdtconfig='{"Time":"'.$time.'","Guid":"not king card config !","Token":"not king card config !"}';
file_put_contents($configwkdtconfigfilename,$notwkdtconfig);
echo $configcronsuccessmessage;
}
}
}
}
}
}
}
?>