diff options
author | RaindropsSys <contact@minteck.org> | 2023-06-10 11:06:53 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-06-10 11:06:53 +0200 |
commit | 2e7294c83c6388e3855ce787f0a18c20ed652131 (patch) | |
tree | 7e3a4ee156fa93954a501b0f112fa2d1055064f0 /pages/travelling.inc | |
parent | 85145d4a0f7ddd7717af495cbd3f42891042d047 (diff) | |
download | pluralconnect-2e7294c83c6388e3855ce787f0a18c20ed652131.tar.gz pluralconnect-2e7294c83c6388e3855ce787f0a18c20ed652131.tar.bz2 pluralconnect-2e7294c83c6388e3855ce787f0a18c20ed652131.zip |
Updated 12 files and added includes/system/compare.inc (automated)
Diffstat (limited to 'pages/travelling.inc')
-rw-r--r-- | pages/travelling.inc | 14 |
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"]; + //} } } } |