Skip to content

Commit

Permalink
Update controller/default.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
easychen committed Jan 18, 2013
1 parent 8d915e4 commit f368949
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions controller/default.class.php
Expand Up @@ -10,7 +10,11 @@ function __construct()
parent::__construct();
if( g('a') != 'login' && g('a') != 'login_check' && g('a') != 'install')
{
if( !is_login() ) return info_page('<a href="?a=login">请先登入</a>');
if( !is_login() )
{
info_page('<a href="?a=login">请先登入</a>');
exit;
}
}
}

Expand Down Expand Up @@ -336,4 +340,4 @@ public function login_check()


}


0 comments on commit f368949

Please sign in to comment.