25 private $_bConnected=
false;
27 public function enable(){
28 _root::startSession();
34 $sAuthModule=$tModuleAction[0];
39 if( !
_root::getAuth()->isConnected() and $sModuleToLoad != $sAuthModule ){
52 if( !isset($_SESSION[
'ip']) or $_SESSION[
'ip']!=sha1($_SERVER[
'REMOTE_ADDR']) ){
56 and (!isset($_SESSION[
'timeout']) or ((
int)$_SESSION[
'timeout']-time() ) < 0)){
58 session_regenerate_id(
true);
62 and isset($_SERVER[
'HTTP_REFERER'])){
64 if(isset($_SERVER[
'HTTPS']) ){
65 $sPattern=
'https://'.$_SERVER[
'SERVER_NAME'];
68 $sPattern=
'http://'.$_SERVER[
'SERVER_NAME'];
70 $urllen=strlen($sPattern);
72 if( substr($_SERVER[
'HTTP_REFERER'],0,$urllen)!=$sPattern ){
89 session_regenerate_id(
true);
91 $this->_bConnected=
true;
93 $_SESSION[
'ip']=sha1($_SERVER[
'REMOTE_ADDR']);
105 session_regenerate_id(
true);
107 $this->_bConnected=
false;
static getConfigVar($sCatAndVar, $uDefaut=null)
static redirect($uNav, $tParam=null)