Куча мелких фиксов, уборка мусора.

This commit is contained in:
lopar
2020-09-30 01:39:06 +03:00
parent 640e85cf18
commit 5ac30becb7
149 changed files with 4221 additions and 11012 deletions

View File

@@ -8,11 +8,12 @@
session_start();
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
require_once "config.php";
//include_once "functions.php";
$msg = filter_input(INPUT_POST, 'msg');
$msg = $_POST['msg'] ?? null;
$uid = $_SESSION['uid'];
if ($msg) {
try { db::c()->query('INSERT INTO `chat` (`user_id`, `msg`) VALUES (?i, "?s")', $uid, $msg); }