diff --git a/bans.php b/bans.php index 4d41b61..67054e5 100644 --- a/bans.php +++ b/bans.php @@ -1,11 +1,8 @@ - - - Bans/Tempbans - <?php echo $name; ?> + Tempbans - <?php echo $name; ?> > // -require 'includes/data/database.php'; +require 'includes/page.php'; $table = $table_bans; $sql = 'SELECT * FROM ' . $table . ' INNER JOIN ' . $table_history . ' on ' . $table . '.uuid=' . $table_history . '.uuid ' . $active_query . @@ -14,11 +11,9 @@ $sql = 'SELECT * FROM ' . $table . ' INNER JOIN ' . $table_history . ' on ' . $t if (!$result = $conn->query($sql)) { die('Query error [' . $conn->error . ']'); } - ?>
-
diff --git a/includes/head.php b/includes/head.php index 315940f..794adb9 100644 --- a/includes/head.php +++ b/includes/head.php @@ -1,6 +1,4 @@ - + diff --git a/includes/page.php b/includes/page.php new file mode 100644 index 0000000..76942b3 --- /dev/null +++ b/includes/page.php @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/index.php b/index.php index 6b256ab..81e74d0 100644 --- a/index.php +++ b/index.php @@ -6,8 +6,6 @@
- -

Welcome to 's Ban List.

@@ -15,7 +13,6 @@
- diff --git a/mutes.php b/mutes.php index 17374ee..331d74b 100644 --- a/mutes.php +++ b/mutes.php @@ -1,11 +1,8 @@ - - - Mutes/TempMutes - <?php echo $name; ?> + TempMutes - <?php echo $name; ?> > // -require 'includes/data/database.php'; +require 'includes/page.php'; $table = $table_mutes; $sql = 'SELECT * FROM ' . $table . ' INNER JOIN ' . $table_history . ' on ' . $table . '.uuid=' . $table_history . '.uuid ' . $active_query . @@ -17,7 +14,6 @@ if (!$result = $conn->query($sql)) { ?>
-
diff --git a/warnings.php b/warnings.php index 9be1be7..563bd0d 100644 --- a/warnings.php +++ b/warnings.php @@ -1,24 +1,19 @@ - - Warnings - <?php echo $name; ?> > // -require 'includes/data/database.php'; +require 'includes/page.php'; $table = $table_warnings; $sql = 'SELECT * FROM ' . $table . ' INNER JOIN ' . $table_history . ' on ' . $table . '.uuid=' . $table_history . '.uuid ' . $active_query . ' GROUP BY name ORDER BY time DESC LIMIT ' . $limit_per_page; -if(!$result = $conn->query($sql)) { +if (!$result = $conn->query($sql)) { die('Query error [' . $conn->error . ']'); } - ?>
-
@@ -50,7 +45,7 @@ if(!$result = $conn->query($sql)) { - fetch_assoc()){ + fetch_assoc()) { // <<-----------------Expiration Time Converter------------>> // date_default_timezone_set("UTC"); $expiresEpoch = $row['until'];