TAG 0 finetuning
This commit is contained in:
parent
0fbd3f2279
commit
be8b5f50f2
6 changed files with 116 additions and 7 deletions
12
index.php
12
index.php
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue