From fa84f24adf9993c376edb6f3da9492a42ae80117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Tue, 14 Jan 2020 20:42:08 +0100 Subject: debug file_put_contents odstranjen --- main.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.php b/main.php index 0996e5d..b0cc1c7 100644 --- a/main.php +++ b/main.php @@ -275,9 +275,11 @@ Errors: '&ctl00%24CPH_bodyMain%24SendSMS%24Sender1%24hfSponsorMessage=a&hiddenInputToUpdateATBuffer_CommonToolkitScripts=1'; // (-; curl_setopt($ch, CURLOPT_POSTFIELDS, $postbody); // THE ANCIENT CODE! $request_output = curl_exec($ch); // https://www.reddit.com/r/ProgrammerHumor/comments/9xat04/the_ancient_code/ - file_put_contents("/tmp/9.html", $request_output); - file_put_contents("/tmp/9.txt", $postbody); - return; + if(curl_getinfo(CURLINFO_RESPONSE_CODE) == 200) { + return true; + } else { + return false; + } } } ?> -- cgit v1.2.3