summaryrefslogtreecommitdiffstats
path: root/main.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-01-14 20:42:08 +0100
committerAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-01-14 20:42:08 +0100
commitfa84f24adf9993c376edb6f3da9492a42ae80117 (patch)
tree8bbe39109bbd6bf3aa6752568a313fb3f62f338c /main.php
parentSMS DELA, 0.1.2 & je ze prej delal (diff)
downloaditisclient-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 '')
-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;
+ }
}
}
?>