1
0
mirror of https://github.com/Daichimarukana/uwuzu.git synced 2026-06-05 03:24:41 +00:00

uwuzu version 1.3.1 new_planet

This commit is contained in:
Daichimarukana
2024-03-02 22:27:25 +09:00
parent 1597041471
commit 15758bf040
16 changed files with 104 additions and 78 deletions
+7 -9
View File
@@ -90,8 +90,8 @@ if(isset($_SESSION['admin_login']) && $_SESSION['admin_login'] === true && isset
if( !empty($_POST['btn_submit']) ) {
$userid = $_POST['userid'];
$password = $_POST['password'];
$userid = htmlentities($_POST['userid']);
$password = htmlentities($_POST['password']);
$options = array(
@@ -120,11 +120,14 @@ if( !empty($_POST['btn_submit']) ) {
if( empty($userid) ) {
$error_message[] = 'ユーザーIDを入力してください。(USERID_INPUT_PLEASE)';
} else {
if(!(preg_match("/^[a-zA-Z0-9_]+$/", $userid))){
$error_message[] = "IDは半角英数字で入力してください。(「_」は使用可能です。)(USERID_DONT_USE_WORD)";
}
if( empty($password) ) {
$error_message[] = 'パスワードを入力してください。(PASSWORD_INPUT_PLEASE)';
} else {
}
if(empty($error_message)){
if($result->rowCount() > 0) {
$row = $result->fetch(); // ここでデータベースから取得した値を $row に代入する
@@ -161,13 +164,8 @@ if( !empty($_POST['btn_submit']) ) {
$error_message[] = 'IDまたはパスワードが違います(PASS_AND_ID_CHIGAUYANKE)';
}
}
}
// ... (後略)
}
// データベースの接続を閉じる