From 103bbcb0223cbafb82390e453ce2176b46214a50 Mon Sep 17 00:00:00 2001 From: hakasenyang Date: Tue, 13 Dec 2016 08:45:09 +0900 Subject: [PATCH] =?UTF-8?q?#1=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 데이터를 못 가져 올 경우 다시 쿠키를 가져오는 작업 진행. --- index.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 4bcf443..7b9c446 100644 --- a/index.php +++ b/index.php @@ -51,7 +51,7 @@ Only error / message method use

cookieget: $dd = $marumaru->FileRead(); - if(!$dd || explode(PHP_EOL, $dd)[0] < time()) + if(!$dd || explode(PHP_EOL, $dd)[0] < time() || $tmp > 1 || $tmp2 > 3) { $cookie = $marumaru->GetCookie(); if(!$cookie) $marumaru->ErrorEcho(2); @@ -77,12 +77,18 @@ startdata: if($caches > 5) $marumaru->ErrorEcho(3); else + { + $tmp2++; goto startdata; + } if(stripos($data, 'You are being redirected...') !== false) if($caches > 2) $marumaru->ErrorEcho(1); else + { + $tmp++; goto cookieget; + } $jsonon = ($_GET['json'] == 1) ? true : false; $aaa = explode('data-src="', $data);