Skip to content

Commit 3dae6eb

Browse files
Update getGlobals.php
1 parent fbc26ca commit 3dae6eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

php/getGlobals.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<?php
22
header("Cache-Control: no-cache, no-stire, must-revalidate, max-age=0");
3-
header("Content-type: application/json; charset=utf-8");
3+
if (isset($_GET["user"]) && $_GET["user"] === "Рейму")
4+
header("Content-type: text/plain; charset=utf-8");
5+
else
6+
header("Content-type: application/json; charset=utf-8");
47
session_name('SWViewer');
58
session_start();
69
if ((!isset($_SESSION['tokenKey']) || !isset($_SESSION['tokenSecret']) || !isset($_SESSION['userName'])) && !isset($_GET['token_proxy']) && !isset($_GET['ext_token'])) {

0 commit comments

Comments
 (0)