summaryrefslogtreecommitdiff
path: root/pages/travelling.inc
diff options
context:
space:
mode:
Diffstat (limited to 'pages/travelling.inc')
-rw-r--r--pages/travelling.inc14
1 files changed, 7 insertions, 7 deletions
diff --git a/pages/travelling.inc b/pages/travelling.inc
index ee2e2c3..7eb3dfa 100644
--- a/pages/travelling.inc
+++ b/pages/travelling.inc
@@ -39,8 +39,8 @@ if (isset($_GET['toggleTravel']) && $isLoggedIn) {
$reqContext = stream_context_create($reqOptions);
// No actual data is received on DELETE, so we don't even bother trying to collect req response; if it fails it will put a warning in the logs anyway.
- sleep(1);
- file_get_contents("https://api.pluralkit.me/v2/members/$travellingMember", false, $reqContext);
+ //sleep(1);
+ //file_get_contents("https://api.pluralkit.me/v2/members/$travellingMember", false, $reqContext);
}
} else {
$travelling[$_GET['member']]["travelling"] = true;
@@ -86,13 +86,13 @@ if (isset($_GET['toggleTravel']) && $isLoggedIn) {
$reqContext = stream_context_create($reqOptions);
- sleep(1);
- $member = json_decode(file_get_contents("https://api.pluralkit.me/v2/members", false, $reqContext), true);
+ //sleep(1);
+ //$member = json_decode(file_get_contents("https://api.pluralkit.me/v2/members", false, $reqContext), true);
// Member exists?
- if (isset($member)) {
- $travelling[$id]['pluralkit'] = $member["id"];
- }
+ //if (isset($member)) {
+ //$travelling[$id]['pluralkit'] = $member["id"];
+ //}
}
}
}