* 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); ?>