mirror of
https://github.com/Daichimarukana/uwuzu.git
synced 2026-06-05 03:24:41 +00:00
uwuzu version 1.2.6.1
This commit is contained in:
+6
-1
@@ -32,7 +32,6 @@ $option = null;
|
||||
$userid = $_SESSION['userid'];
|
||||
|
||||
|
||||
// データベースに接続
|
||||
try {
|
||||
|
||||
$option = array(
|
||||
@@ -46,6 +45,12 @@ try {
|
||||
// 接続エラーのときエラー内容を取得する
|
||||
$error_message[] = $e->getMessage();
|
||||
}
|
||||
// 管理者としてログインしているか確認
|
||||
if( empty($_SESSION['admin_login']) || $_SESSION['admin_login'] !== true ) {
|
||||
// ログインページへリダイレクト
|
||||
header("Location: ./login.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once 'authcode/GoogleAuthenticator.php';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user