Новое игровое окно.
This commit is contained in:
@@ -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()
|
||||
<div>
|
||||
<?php show_messages(); ?>
|
||||
</div>
|
||||
<form action="chat.php" method="post">
|
||||
<input id="msg" name="msg" size="100" placeholder="Введите сообщение...">
|
||||
<input type="submit" value="Отправить">
|
||||
</form>
|
||||
<!--<form action="chat.php" method="post">-->
|
||||
<!-- <input id="msg" name="msg" size="100" placeholder="Введите сообщение...">-->
|
||||
<!-- <input type="submit" value="Отправить">-->
|
||||
<!--</form>-->
|
||||
</body>
|
||||
Reference in New Issue
Block a user