diff --git a/_website/adminserverlist.php b/_website/adminserverlist.php index 37df8609..1126a8a9 100644 --- a/_website/adminserverlist.php +++ b/_website/adminserverlist.php @@ -1,29 +1,32 @@ + + +
+ + +$db must be a mysqli connection (check panel/_db.php).
- ';
- return;
+// Create database connection
+$db = mysqli_connect($db_host, $db_user, $db_pass, $db_name);
+if (!$db) {
+ die("Connection failed: " . mysqli_connect_error());
}
+
+// Include menu
+include(__DIR__ . '/includes/menu.php');
+
+/* show errors during setup */
+@ini_set('display_errors','1');
+error_reporting(E_ALL);
function h($s){ return htmlspecialchars((string)$s, ENT_QUOTES, 'UTF-8'); }
function esc_mysqli($db, $v){ return $db->real_escape_string($v); }
function fetch_all_assoc($db, $sql){
@@ -318,3 +321,9 @@ document.querySelectorAll('.locs-box').forEach(function(box){
});
+
+
+
diff --git a/_website/cart.php b/_website/cart.php
index e7acf3df..7737519b 100644
--- a/_website/cart.php
+++ b/_website/cart.php
@@ -1,17 +1,35 @@
+
+
+
+
+
+