1
0
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:
だいちまる
2023-08-21 13:54:33 +09:00
committed by GitHub
parent ea8587e10f
commit 965d7b903c
8 changed files with 263 additions and 256 deletions
+13 -1
View File
@@ -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>