diff --git a/game.php b/game.php index 6cde726..5a41419 100644 --- a/game.php +++ b/game.php @@ -6,19 +6,15 @@ */ session_start(); -if (!isset($_SESSION['uid'])) { - header("Location: index.php"); -} -include("config.php"); +if (!isset($_SESSION['uid'])) header("Location: index.php"); +//include("config.php"); -$msg = filter_input(INPUT_POST,'msg'); -$uid = $_SESSION['uid']; -if ($msg) db::c()->query('INSERT INTO `chat` (`cid`, `uid`, `msg`) VALUES (?i, ?i, "?s")', 1, $uid, $msg); +//$msg = filter_input(INPUT_POST,'msg'); +//$uid = $_SESSION['uid']; +//if ($msg) db::c()->query('INSERT INTO `chat` (`cid`, `uid`, `msg`) VALUES (?i, ?i, "?s")', 1, $uid, $msg); ?> - -