copied files

This commit is contained in:
Marc Wäckerlin
2015-06-28 20:58:51 +00:00
parent ce86705134
commit 52d1f4fb3c
35 changed files with 28725 additions and 0 deletions

10
html/get.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
require_once("messagetable.php");
try {
$start = $db->real_escape_string($_REQUEST['start']);
$q = $db->query("select id, UNIX_TIMESTAMP(time) as time, user, msg from message where id>$start;");
echo json_encode($q->fetch_all(MYSQLI_ASSOC));
} catch (Exception $e) {
echo json_encode(null);
}
?>