|
|
@ -31,7 +31,7 @@ error_reporting(E_ERROR); // 记录所有级别的错误 |
|
|
|
$this->control_name = $array[0]; |
|
|
|
$this->control_func = !isset($array[1]) || $array[1]=='' ? 'home' : $array[1]; |
|
|
|
|
|
|
|
if(preg_match('/^(login|login_submit).*/', $this->control_name)){ |
|
|
|
if(preg_match('/^(login|loginout).*/', $this->control_name)){ |
|
|
|
$this->control_name = 'index'; |
|
|
|
$this->control_func = $array[0]; |
|
|
|
} |
|
|
@ -66,9 +66,9 @@ error_reporting(E_ERROR); // 记录所有级别的错误 |
|
|
|
session_write_close(); |
|
|
|
|
|
|
|
//登陆检查 |
|
|
|
$needlogin = false; |
|
|
|
$needlogin = true; |
|
|
|
if ($this->control_name == 'index') { |
|
|
|
if (preg_match('/^(login|login_submit).*/', $this->control_func)) { |
|
|
|
if (preg_match('/^(login).*/', $this->control_func)) { |
|
|
|
$needlogin = false; |
|
|
|
} |
|
|
|
}elseif($this->control_name == 'callback'){ |
|
|
|