|
@@ -38,8 +38,14 @@ abstract class Start_Controller extends Lin_Controller {
|
|
|
$u = $this->user->get_api($_SESSION['api']);
|
|
$u = $this->user->get_api($_SESSION['api']);
|
|
|
if(!$u && $this->uri->slash_segment(1) != "/")
|
|
if(!$u && $this->uri->slash_segment(1) != "/")
|
|
|
{
|
|
{
|
|
|
- $this->session->sess_destroy();
|
|
|
|
|
- header("Location:/");
|
|
|
|
|
|
|
+ $cont = $this->uri->slash_segment(1);
|
|
|
|
|
+ $action = $this->uri->slash_segment(2);
|
|
|
|
|
+ if( (strpos($cont,"user") !== false) && (strpos($action,"tc") !== false) ){
|
|
|
|
|
+ header("Location:/");
|
|
|
|
|
+ }else{
|
|
|
|
|
+ die("<h1>当前帐号信息变动,请点击右上角的退出。重新登录</h1>");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
else if($this->uri->slash_segment(1) == "/")
|
|
else if($this->uri->slash_segment(1) == "/")
|
|
|
{
|
|
{
|