try resolve login not jump
parent
3842fb7952
commit
05bbb1b861
|
@ -1035,19 +1035,19 @@ function bigfileupload($path)
|
|||
|
||||
function adminform($name = '', $pass = '', $path = '')
|
||||
{
|
||||
$statusCode = 401;
|
||||
$html = '<html><head><title>' . getconstStr('AdminLogin') . '</title><meta charset=utf-8></head>';
|
||||
if ($name!=''&&$pass!='') {
|
||||
$html .= '<body>'.getconstStr('LoginSuccess').'</body></html>';
|
||||
$html .= '<meta http-equiv="refresh" content="3;URL=' . $path . '"><body>' . getconstStr('LoginSuccess') . '</body></html>';
|
||||
$statusCode = 302;
|
||||
date_default_timezone_set('UTC');
|
||||
$header = [
|
||||
'Set-Cookie' => $name . '=' . $pass . '; path=/; expires=' . date(DATE_COOKIE, strtotime('+1hour')),
|
||||
'Location' => $path,
|
||||
//'Location' => $path,
|
||||
'Content-Type' => 'text/html'
|
||||
];
|
||||
return output($html, $statusCode, $header);
|
||||
}
|
||||
$statusCode = 401;
|
||||
$html .= '
|
||||
<body>
|
||||
<div>
|
||||
|
|
Loading…
Reference in New Issue