You've already forked EasyImages2.0
mirror of
https://github.com/icret/EasyImages2.0.git
synced 2025-12-16 11:53:58 +08:00
v2.5.7
This commit is contained in:
2
application/function.php
Executable file → Normal file
2
application/function.php
Executable file → Normal file
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* EasyImage2.0 - 简单图床基础配置
|
||||
|
||||
@@ -506,7 +507,6 @@ function is_who_login($user)
|
||||
global $guestConfig;
|
||||
if (isset($_COOKIE['auth'])) {
|
||||
$getCOK = unserialize($_COOKIE['auth']);
|
||||
// if (!$getCOK) return false;
|
||||
if ($user == 'admin') {
|
||||
if ($getCOK[1] == $config['password']) return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user