From 3f968068553817e8b51f241c982586474d433c4b Mon Sep 17 00:00:00 2001 From: lopar Date: Sat, 24 Mar 2018 00:39:39 +0200 Subject: [PATCH] iframes war --- game.php | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) 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