diff options
-rw-r--r-- | main.php | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; + } } } ?> |