23 lines
552 B
PHP
23 lines
552 B
PHP
<?php // Start session as any user
|
|
// ATTENTION: FOR DEBUG PURPOSES ONLY!
|
|
require_once("../_auth.php");
|
|
require_once("../_utils.php");
|
|
|
|
|
|
|
|
if (ThisFileIsRequested(__FILE__)) {
|
|
require_once("../_json.php");
|
|
|
|
if (!$Config["debug"])
|
|
ReturnJSONError(null, "you need to enable debug mode in configuration file first");
|
|
|
|
if (!isset($_REQUEST["id"]))
|
|
ReturnJSONError($Err_RDP_InvalidID, "valid id must be specified");
|
|
|
|
if (!isset($_SESSION["userid"]))
|
|
session_start();
|
|
|
|
$_SESSION["userid"] = intval($_REQUEST["id"]);
|
|
ReturnJSONData($_SESSION);
|
|
}
|
|
?>
|