diff options
author | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2020-01-14 20:42:08 +0100 |
---|---|---|
committer | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2020-01-14 20:42:08 +0100 |
commit | fa84f24adf9993c376edb6f3da9492a42ae80117 (patch) | |
tree | 8bbe39109bbd6bf3aa6752568a313fb3f62f338c /main.php | |
parent | SMS DELA, 0.1.2 & je ze prej delal (diff) | |
download | itisclient-fa84f24adf9993c376edb6f3da9492a42ae80117.tar itisclient-fa84f24adf9993c376edb6f3da9492a42ae80117.tar.gz itisclient-fa84f24adf9993c376edb6f3da9492a42ae80117.tar.bz2 itisclient-fa84f24adf9993c376edb6f3da9492a42ae80117.tar.lz itisclient-fa84f24adf9993c376edb6f3da9492a42ae80117.tar.xz itisclient-fa84f24adf9993c376edb6f3da9492a42ae80117.tar.zst itisclient-fa84f24adf9993c376edb6f3da9492a42ae80117.zip |
Diffstat (limited to 'main.php')
-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; + } } } ?> |