|
|
|
@ -9,6 +9,16 @@ $passby = $_REQUEST['passby']; |
|
|
|
|
|
|
|
|
|
if(!isset($url) || !isset($passby)) die(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* special php program */ |
|
|
|
|
set_time_limit(0); |
|
|
|
|
ob_end_clean(); |
|
|
|
|
header("Connection: close"); |
|
|
|
|
header("Location: https://cp-acc.yimian.xyz/"); |
|
|
|
|
ob_start(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$passby = json_decode(base64_decode($passby), true); |
|
|
|
|
|
|
|
|
|
$tableId = $passby['tableId']; |
|
|
|
@ -31,6 +41,20 @@ db__pushData($cnn, "account", array( |
|
|
|
|
)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* close connection */ |
|
|
|
|
ob_end_flush(); |
|
|
|
|
flush(); |
|
|
|
|
if (function_exists("fastcgi_finish_request")) { |
|
|
|
|
fastcgi_finish_request(); |
|
|
|
|
} |
|
|
|
|
sleep(2); |
|
|
|
|
ignore_user_abort(true); |
|
|
|
|
set_time_limit(0); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$data = getFinalData($cnn, $tableId); |
|
|
|
|
|
|
|
|
|
$threshold = getThreshold($cnn, $tableId); |
|
|
|
@ -44,9 +68,9 @@ while(!checkBalance($data, $threshold)){ |
|
|
|
|
if($data['average'] - $data['virtualTotals'][$first] > $threshold){ |
|
|
|
|
setBalance($first, $last, $threshold, $tableId, $cnn); |
|
|
|
|
} |
|
|
|
|
Sleep(10); |
|
|
|
|
$data = getFinalData($cnn, $tableId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
header("Location: https://cp-acc.yimian.xyz/"); |
|
|
|
|