mirror of
https://github.com/Daichimarukana/uwuzu.git
synced 2026-06-04 19:14:41 +00:00
uwuzu v1.5.4 Combeny
This commit is contained in:
+19
-1
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
require('../db.php');
|
||||
require("../function/function.php");
|
||||
blockedIP($_SERVER['REMOTE_ADDR']);
|
||||
|
||||
$serversettings_file = "../server/serversettings.ini";
|
||||
$serversettings = parse_ini_file($serversettings_file, true);
|
||||
@@ -40,6 +39,25 @@ try {
|
||||
$error_message[] = $e->getMessage();
|
||||
}
|
||||
|
||||
if(empty($error_message)){
|
||||
$stmt = $pdo->prepare("
|
||||
SELECT COUNT(*)
|
||||
FROM information_schema.tables
|
||||
WHERE table_schema = :schema AND table_name = :table
|
||||
LIMIT 1
|
||||
");
|
||||
$stmt->execute([
|
||||
':schema' => DB_NAME,
|
||||
':table' => "ipblock",
|
||||
]);
|
||||
|
||||
$exists = $stmt->fetchColumn() > 0;
|
||||
|
||||
if ($exists) {
|
||||
blockedIP($_SERVER['REMOTE_ADDR']);
|
||||
}
|
||||
}
|
||||
|
||||
$aduser = "yes";
|
||||
|
||||
$options = array(
|
||||
|
||||
Reference in New Issue
Block a user