mirror of
https://github.com/Daichimarukana/uwuzu.git
synced 2026-06-05 03:24:41 +00:00
Add files via upload
This commit is contained in:
+13
-1
@@ -32,6 +32,7 @@ $userid = $_SESSION['userid'];
|
||||
|
||||
|
||||
// データベースに接続
|
||||
|
||||
try {
|
||||
|
||||
$option = array(
|
||||
@@ -45,6 +46,17 @@ try {
|
||||
// 接続エラーのときエラー内容を取得する
|
||||
$error_message[] = $e->getMessage();
|
||||
}
|
||||
if(isset($_SESSION['admin_login']) && $_SESSION['admin_login'] === true) {
|
||||
|
||||
header("Location: home/index.php");
|
||||
exit;
|
||||
|
||||
} elseif (isset($_COOKIE['admin_login']) && $_COOKIE['admin_login'] == true) {
|
||||
|
||||
header("Location: home/index.php");
|
||||
exit;
|
||||
|
||||
}
|
||||
|
||||
if( !empty($_POST['btn_submit']) ) {
|
||||
$_SESSION['userid'] = $userid;
|
||||
@@ -95,7 +107,7 @@ $pdo = null;
|
||||
<body>
|
||||
|
||||
|
||||
<div class="leftbox">
|
||||
<div class="leftbox2">
|
||||
<div class="logo">
|
||||
<img src="img/uwuzulogo.svg">
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user