Beispiel #1
0
 function __construct()
 {
     parent::__construct();
     if (isset($_SESSION['UserId'])) {
         header('Location: index');
     }
 }
Beispiel #2
0
 function __construct()
 {
     parent::__construct();
     if (!isset($_SESSION['SiteName']) or !isset($_SESSION['SiteUrl'])) {
         $re = $this->Assoc('site', '*');
         $_SESSION['SiteName'] = $re[0]['name'];
         $_SESSION['SiteUrl'] = $re[0]['url'];
         $_SESSION['SiteLang'] = $re[0]['lang'];
     }
 }
Beispiel #3
0
 function __construct()
 {
     parent::__construct();
 }