TAG 0 finetuning

This commit is contained in:
/jedi/ 2018-12-27 08:52:14 +01:00
parent 0fbd3f2279
commit be8b5f50f2
6 changed files with 116 additions and 7 deletions

View file

@ -20,7 +20,7 @@ function auth(){
return true;
}
function get_items(){
function get_founditems(){
global $mysqli;
$res = $mysqli->query("SELECT * FROM items ORDER BY id ASC");
$ret = array();
@ -30,6 +30,16 @@ function get_items(){
return $ret;
}
function get_lostitems(){
global $mysqli;
$res = $mysqli->query("SELECT * FROM lost ORDER BY id ASC");
$ret = array();
while ($row = $res->fetch_assoc()) {
$ret[] = $row;
}
return $ret;
}
$page = isset($_GET["page"])?$_GET["page"]:"dashboard";
if (!auth()) {