diff --git a/bans.php b/bans.php
index 948a92c..d0290ab 100644
--- a/bans.php
+++ b/bans.php
@@ -1,30 +1,10 @@
Tempbans -
-
-
-
-
-
-
-
+
diff --git a/check.php b/check.php
index 69d87f5..ba9567d 100644
--- a/check.php
+++ b/check.php
@@ -2,7 +2,7 @@
if (isset($_POST['name'], $_POST['table'])) {
$name = $_POST['name'];
// validate user input
- if (strlen($name) > 16 || !preg_match("/[0-9a-zA-Z_]/", $name)) {
+ if (strlen($name) > 16 || !preg_match("/^[0-9a-zA-Z_]$/", $name)) {
echo('Invalid name.');
return;
}
@@ -21,7 +21,9 @@ if (isset($_POST['name'], $_POST['table'])) {
echo($name . ' has not joined before.');
return;
}
- $stmt = $conn->prepare("SELECT * FROM " . $table_bans . " WHERE (uuid=? AND active=1) LIMIT 1");
+ $table = $table_bans;
+
+ $stmt = $conn->prepare("SELECT * FROM " . $table . " WHERE (uuid=? AND active=1) LIMIT 1");
if ($stmt->execute(array($uuid))) {
if (!($row = $stmt->fetch())) {
echo($name . ' is not banned.');
@@ -31,7 +33,7 @@ if (isset($_POST['name'], $_POST['table'])) {
$reason = $row['reason'];
$time = millis_to_date($row['time']);
$until = millis_to_date($row['until']);
- echo($name . ' is banned!
');
+ echo($name . ' is banned!
');
echo('Banned by: ' . $banner . '
');
echo('Reason: ' . clean($reason) . '
');
echo('Banned on: ' . $time . '
');
diff --git a/includes/page.php b/includes/page.php
index 3085013..a6fa5c8 100644
--- a/includes/page.php
+++ b/includes/page.php
@@ -97,4 +97,12 @@ function print_table_headers($headers) {
echo("");
}
+function print_check_form($table) {
+ // var table=document.URL.substring(document.URL.lastIndexOf("/")+1); table=table.substring(0,table.indexOf("."));
+ echo('
');
+ echo('');
+ echo('');
+ echo('');
+}
+
?>
diff --git a/mutes.php b/mutes.php
index 770274a..65e4256 100644
--- a/mutes.php
+++ b/mutes.php
@@ -1,7 +1,9 @@
TempMutes -
-
+
diff --git a/warnings.php b/warnings.php
index 42a2a9f..9119b10 100644
--- a/warnings.php
+++ b/warnings.php
@@ -1,7 +1,9 @@
Warnings -