[ 'method' => 'GET', 'header' => "Authorization: " . $app["other"]["token"] . "\r\n" ] ]); } else { $ctx = stream_context_create([ 'http' => [ 'method' => 'GET' ] ]); } $data = file_get_contents("https://pluralkit.equestria.dev/v2/systems/$system/fronters", false, $ctx); if (trim($data) !== "" && $data !== false) { file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$system/fronters.json", $data); }