This repository has been archived by the owner on Jan 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
cab75e02b2943b3c62.php
44 lines (39 loc) · 1.64 KB
/
cab75e02b2943b3c62.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
<?php
header("Content-Type: text/html; charset=UTF-8");
/* echo "success";
die(); */
$domain = "127.0.0.1";//填写网站域名
$queues = array(
'home/Queue9ce2472db8c3b3d94511365004ce8468/upTrade_qq3479015851_8a201aa602cd9448/market/btc_cny',
'home/Queue9ce2472db8c3b3d94511365004ce8468/upTrade_qq3479015851_8a201aa602cd9448/market/ltc_cny',
'home/Queue9ce2472db8c3b3d94511365004ce8468/upTrade_qq3479015851_8a201aa602cd9448/market/eth_cny',
'home/Queue9ce2472db8c3b3d94511365004ce8468/upTrade_qq3479015851_8a201aa602cd9448/market/doge_cny',
'home/Queue9ce2472db8c3b3d94511365004ce8468/upTrade_qq3479015851_8a201aa602cd9448/market/etc_cny',
'home/Queue9ce2472db8c3b3d94511365004ce8468/upTrade_qq3479015851_8a201aa602cd9448/market/ppc_cny',
'home/Queue9ce2472db8c3b3d94511365004ce8468/upTrade_qq3479015851_8a201aa602cd9448/market/vrc_cny',
);
for ($i = 0; $i < count($queues); $i++) {
http_get($domain . "/" . $queues[$i]);
}
echo "successautotrade";
file_put_contents(dirname(__FILE__)."\autoduilietime.html", date("Y-m-d H:i:s",time()));
function http_get($url)
{
$oCurl = curl_init();
if (stripos($url, "https://") !== FALSE) {
curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($oCurl, CURLOPT_SSLVERSION, 1); //CURL_SSLVERSION_TLSv1
}
curl_setopt($oCurl, CURLOPT_URL, $url);
curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, 1);
$sContent = curl_exec($oCurl);
$aStatus = curl_getinfo($oCurl);
curl_close($oCurl);
if (intval($aStatus["http_code"]) == 200) {
return true;
} else {
return false;
}
}
?>