summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.php8
1 files 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;
+ }
}
}
?>