diff --git a/admin.php b/admin.php index e69de29..3b0450b 100644 --- a/admin.php +++ b/admin.php @@ -0,0 +1,56 @@ + + + + +header(); + +if(isset($_GET['p'])) { +$page = $_GET['p']; +} else { +$page = 1; +} +$limit = 18; +$page -= 1; +$offset = $page * $limit; + +?> + +<?php echo $pagename; ?> | <?php echo $sitename; ?> + +
+
+

Admin Panel

+
+
+ +
+
...
+
...
+
...
+
...
+
...
+
+
+ +
+ + diff --git a/core/classes.php b/core/classes.php index 7ea6322..b7c86aa 100644 --- a/core/classes.php +++ b/core/classes.php @@ -58,9 +58,10 @@ class PartyStarter { $q->execute(); } } else { + $time = time(); $q = $con->prepare("UPDATE users SET lastPaid=:date WHERE id=:id"); $q->bindParam(':id',$_SESSION['user'],PDO::PARAM_INT); - $q->bindParam(':date',time(),PDO::PARAM_INT); + $q->bindParam(':date',$time,PDO::PARAM_INT); $q->execute(); $q = $con->prepare("UPDATE users SET money=money+:price WHERE id=:id");