add chat message deletion after 24 hours
This commit is contained in:
@@ -20,6 +20,11 @@ $stmt2 = $mysqli->prepare("DELETE FROM Connections WHERE TimestampPing < (CURREN
|
|||||||
$stmt2->execute();
|
$stmt2->execute();
|
||||||
$stmt2->store_result();
|
$stmt2->store_result();
|
||||||
|
|
||||||
|
$stmt20 = $mysqli->prepare("DELETE FROM Chat WHERE Timestamp < (CURRENT_TIMESTAMP - 86400);");
|
||||||
|
$stmt2->execute();
|
||||||
|
$stmt2->store_result();
|
||||||
|
|
||||||
|
|
||||||
if (!empty($_GET["adder"])){
|
if (!empty($_GET["adder"])){
|
||||||
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||||
$heslo = trim($_POST['heslo']);
|
$heslo = trim($_POST['heslo']);
|
||||||
|
Reference in New Issue
Block a user