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:
+18
-1
@@ -3,7 +3,6 @@ require('../db.php');
|
||||
//関数呼び出し
|
||||
//- EXIF
|
||||
require('../function/function.php');
|
||||
blockedIP($_SERVER['REMOTE_ADDR']);
|
||||
if(file_exists("../settings_admin/plugin_settings/amazons3_settings.php")){
|
||||
require_once '../settings_admin/plugin_settings/amazons3_settings.php';
|
||||
if(AMS3_CHKS == "true"){
|
||||
@@ -58,6 +57,24 @@ 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";
|
||||
|
||||
|
||||
+19
-1
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
require('../db.php');
|
||||
require("../function/function.php");
|
||||
blockedIP($_SERVER['REMOTE_ADDR']);
|
||||
|
||||
$softwarefile = "../server/uwuzuinfo.txt";
|
||||
$softwaredata = file_get_contents($softwarefile);
|
||||
@@ -49,6 +48,25 @@ if(!(empty(DB_NAME) && empty(DB_HOST) && empty(DB_USER) && empty(DB_PASS))){
|
||||
// 接続エラーのときエラー内容を取得する
|
||||
$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";
|
||||
|
||||
|
||||
+18
-1
@@ -2,7 +2,6 @@
|
||||
|
||||
require('../db.php');
|
||||
require("../function/function.php");
|
||||
blockedIP($_SERVER['REMOTE_ADDR']);
|
||||
|
||||
$softwarefile = "../server/uwuzuinfo.txt";
|
||||
$softwaredata = file_get_contents($softwarefile);
|
||||
@@ -50,6 +49,24 @@ if(!(empty(DB_NAME) && empty(DB_HOST) && empty(DB_USER) && empty(DB_PASS))){
|
||||
// 接続エラーのときエラー内容を取得する
|
||||
$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";
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
require('../db.php');
|
||||
require("../function/function.php");
|
||||
blockedIP($_SERVER['REMOTE_ADDR']);
|
||||
|
||||
$softwarefile = "../server/uwuzuinfo.txt";
|
||||
$softwaredata = file_get_contents($softwarefile);
|
||||
@@ -49,6 +48,24 @@ if(!(empty(DB_NAME) && empty(DB_HOST) && empty(DB_USER) && empty(DB_PASS))){
|
||||
// 接続エラーのときエラー内容を取得する
|
||||
$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";
|
||||
|
||||
|
||||
+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