fix: folderpass=adminpass
parent
0b6cb4ba66
commit
caa73378e1
|
@ -190,7 +190,7 @@ function main($path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (getConfig('admin')!='')
|
if (getConfig('admin')!='')
|
||||||
if ( (isset($_COOKIE['admin'])&&$_COOKIE['admin']==md5(getConfig('admin'))) || (isset($_POST['password1'])&&$_POST['password1']==getConfig('admin')) ) {
|
if ( isset($_COOKIE['admin'])&&$_COOKIE['admin']==md5(getConfig('admin')) ) {
|
||||||
$_SERVER['admin']=1;
|
$_SERVER['admin']=1;
|
||||||
$_SERVER['needUpdate'] = needUpdate();
|
$_SERVER['needUpdate'] = needUpdate();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue