diff --git a/chat.php b/chat.php index d999edb..ced889f 100644 --- a/chat.php +++ b/chat.php @@ -10,12 +10,11 @@ if ($_SESSION['uid'] == null) { header("Location: index.php"); } include_once "config.php"; -include_once "functions.php"; +//include_once "functions.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); function show_messages() { @@ -42,8 +41,8 @@ function show_messages()
-
- - -
+ + + + \ No newline at end of file diff --git a/game.php b/game.php new file mode 100644 index 0000000..95e9273 --- /dev/null +++ b/game.php @@ -0,0 +1,79 @@ + + * Project name: Battles-Game + */ + +session_start(); +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); +?> + + + + + + Окно игры + + + + + +
+ + + + + + + + + +
+ + + + + + +