[SUCS Devel] [Git][sucs/doorkey][master] suppress output from curl
Imran Hussain
imranh at sucs.org
Wed May 2 11:47:29 BST 2018
Imran Hussain pushed to branch master at sucs / doorkey
Commits:
40cd7034 by Imran Hussain at 2018-05-02T11:47:28+01:00
suppress output from curl
- - - - -
1 changed file:
- public/index.php
Changes:
=====================================
public/index.php
=====================================
--- a/public/index.php
+++ b/public/index.php
@@ -43,6 +43,7 @@ if ($isAuthd == "sucs"){
//curl door
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "http://door.sucs.org/sendstatus.py?text=${username}%20via%20de%20web&timeout=1&fg=0,0,0&bg=128,255,128&unlock=1&key=${doorkey}");
+ curl_setopt($curl,CURLOPT_RETURNTRANSFER,TRUE);
curl_exec($curl);
curl_close($curl);
exit("door unlocked! (probably)");
View it on GitLab: https://projects.sucs.org/sucs/doorkey/commit/40cd7034ff27795a4a9c064b029228300e345b12
---
View it on GitLab: https://projects.sucs.org/sucs/doorkey/commit/40cd7034ff27795a4a9c064b029228300e345b12
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20180502/885cd719/attachment-0001.html>
More information about the Devel
mailing list