session_start(); $nologout1 = $_GET['nologout']; $nologout2 = $_SESSION['nologout']; $nologout = 0; if (isset($nologout1)) { $nologout = $nologout1; $_SESSION['nologout'] = $nologout; } else if (isset($nologout2)) { $nologout = $nologout2; } $userid1 = $_GET['userid']; $userid2 = $_SESSION['userid']; $userid = ''; if (isset($userid1)) { $userid = $userid1; $userid = trim($userid); $_SESSION['userid'] = $userid; } else if (isset($userid2)) { $userid = $userid2; $userid = trim($userid); } ?> include "_header.html"; ?> require_once("DBUSER.php"); if (!strlen($userid)) { echo ""; exit; } $rs = DBUSER::train_chal_minigame($userid, $errstr); DBGOUT("[errstr] ".$errstr); if ($errstr != "@error.no") { // exit; } else { $dbtable = array(); foreach ($rs as $row) { $dbtable[] = $row; //DBGOUT(json_encode($row)); } DBGOUT(json_encode($dbtable)); } ?>