diff --git a/bans.php b/bans.php
index 0baa16e..7e04ac3 100644
--- a/bans.php
+++ b/bans.php
@@ -5,7 +5,6 @@
@@ -41,24 +39,13 @@
fetch_assoc()) {
- // <<-----------------Ban Date Converter------------>> //
date_default_timezone_set("UTC");
- $timeEpoch = $row['time'];
- $timeConvert = $timeEpoch / 1000;
- $timeResult = date('F j, Y, g:i a', $timeConvert);
- // <<-----------------Expiration Time Converter------------>> //
- $expiresEpoch = $row['until'];
- $expiresConvert = $expiresEpoch / 1000;
- $expiresResult = date('F j, Y, g:i a', $expiresConvert);
+ $timeResult = date('F j, Y, g:i a', $row['time'] / 1000);
+ $expiresResult = date('F j, Y, g:i a', $row['until'] / 1000);
?>
-
- " . $banned; ?>
- |
- " . $banner ?>
- |
+ |
+ |
|
|
@@ -74,8 +61,10 @@
|
free();
- echo "";
+ $conn->close();
?>
+
+
diff --git a/includes/page.php b/includes/page.php
index 6ab1c96..a030c52 100644
--- a/includes/page.php
+++ b/includes/page.php
@@ -17,4 +17,8 @@ function run_query($table) {
return $result;
}
+function get_avatar($name) {
+ return "

" . $name;
+}
+
?>
\ No newline at end of file
diff --git a/mutes.php b/mutes.php
index 4818e80..b6c8ab4 100644
--- a/mutes.php
+++ b/mutes.php
@@ -5,7 +5,6 @@
@@ -31,20 +29,13 @@
fetch_assoc()) {
- // <<-----------------Ban Date Converter------------>> //
date_default_timezone_set("UTC");
- $timeEpoch = $row['time'];
- $timeConvert = $timeEpoch / 1000;
- $timeResult = date('F j, Y, g:i a', $timeConvert);
- // <<-----------------Expiration Time Converter------------>> //
- $expiresEpoch = $row['until'];
- $expiresConvert = $expiresEpoch / 1000;
- $expiresResult = date('F j, Y, g:i a', $expiresConvert);
+ $timeResult = date('F j, Y, g:i a', $row['time'] / 1000);
+ $expiresResult = date('F j, Y, g:i a', $row['until'] / 1000);
?>
- " . $row['name']; ?> |
- " . $banner; ?> |
+ |
+ |
|
|
@@ -60,8 +51,10 @@
|
free();
- echo "";
+ $conn->close();
?>
+
+
diff --git a/warnings.php b/warnings.php
index e2a7a9f..a372fd0 100644
--- a/warnings.php
+++ b/warnings.php
@@ -5,7 +5,6 @@
-
@@ -13,7 +12,6 @@
- Warnings
-
@@ -38,16 +36,12 @@
fetch_assoc()) {
- // <<-----------------Expiration Time Converter------------>> //
date_default_timezone_set("UTC");
- $expiresEpoch = $row['until'];
- $expiresConvert = $expiresEpoch / 1000;
- $expiresResult = date('F j, Y, g:i a', $expiresConvert);
+ $expiresResult = date('F j, Y, g:i a', $row['until'] / 1000);
?>
- " . $row['name']; ?> |
- " . $banner; ?> |
+ |
+ |
|
free();
- echo "";
+ $conn->close();
?>
+
+
|