diff --git a/index.php b/index.php index 9cb40d3..28a5b20 100644 --- a/index.php +++ b/index.php @@ -157,9 +157,9 @@ if ($errors=='' && $_GET['purl']!='') { //while (true) { $res=@file_get_contents('https://'.$url,false,stream_context_create($context)); if (isset($http_response_header)) - $rl=ckratelimit($http_response_header,'echofun',true,false); + $rl=ckratelimit($http_response_header); //echo preprint($rl); - if (is_array($rl) && @file_put_contents(RLFP,$rl['remaining']."\n".($rl['secstoreset']+time())."\n")===false) + if (isset($rl['ok']) && $rl['ok'] && @file_put_contents(RLFP,$rl['remaining']."\n".($rl['sleep']+time())."\n")===false) echo "