From 05bbb1b86131dda50c226dbdeee1352782a0a7be Mon Sep 17 00:00:00 2001
From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com>
Date: Mon, 24 Aug 2020 09:13:27 +0800
Subject: [PATCH] try resolve login not jump
---
common.php | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/common.php b/common.php
index c6017c2..4463c38 100644
--- a/common.php
+++ b/common.php
@@ -1035,34 +1035,34 @@ function bigfileupload($path)
function adminform($name = '', $pass = '', $path = '')
{
- $statusCode = 401;
- $html = '
'.getconstStr('AdminLogin').'';
+ $html = '' . getconstStr('AdminLogin') . '';
if ($name!=''&&$pass!='') {
- $html .= ''.getconstStr('LoginSuccess').'';
+ $html .= '' . getconstStr('LoginSuccess') . '';
$statusCode = 302;
date_default_timezone_set('UTC');
$header = [
- 'Set-Cookie' => $name.'='.$pass.'; path=/; expires='.date(DATE_COOKIE,strtotime('+1hour')),
- 'Location' => $path,
+ 'Set-Cookie' => $name . '=' . $pass . '; path=/; expires=' . date(DATE_COOKIE, strtotime('+1hour')),
+ //'Location' => $path,
'Content-Type' => 'text/html'
];
- return output($html,$statusCode,$header);
+ return output($html, $statusCode, $header);
}
+ $statusCode = 401;
$html .= '
-
'.getconstStr('InputPassword').'
+ ' . getconstStr('InputPassword') . '
';
$html .= '