From bff129f7b7690977bfc7ab800a7eedae7f22154c Mon Sep 17 00:00:00 2001
From: lopar
Date: Thu, 22 Mar 2018 21:32:48 +0200
Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=BE=D0=B2=D0=BE=D0=B5=20=D0=B8=D0=B3?=
=?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=BE=D0=B5=20=D0=BE=D0=BA=D0=BD=D0=BE.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
chat.php | 17 ++++++------
game.php | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 87 insertions(+), 9 deletions(-)
create mode 100644 game.php
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);
+?>
+
+
+
+
+
+
Окно игры
+
+
+
+
+
+