1
0
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:
だいちまる
2023-08-19 21:36:13 +09:00
committed by GitHub
parent 1442ff648a
commit ea8587e10f
22 changed files with 292 additions and 15 deletions
+6 -1
View File
@@ -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';