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); ?> - - Окно игры @@ -50,8 +46,8 @@ if ($msg) db::c()->query('INSERT INTO `chat` (`cid`, `uid`, `msg`) VALUES (?i, ? width: 15%; padding: 10px; } + .mainwrap { - width: 800px; height: 600px; } @@ -59,7 +55,10 @@ if ($msg) db::c()->query('INSERT INTO `chat` (`cid`, `uid`, `msg`) VALUES (?i, ? width: 100%; height: 100%; } - iframe {border: none;} + + iframe { + border: none; + } @@ -75,9 +74,9 @@ if ($msg) db::c()->query('INSERT INTO `chat` (`cid`, `uid`, `msg`) VALUES (?i, ?
- +
- + - - - + \ No newline at end of file