function __construct() { parent::__construct(); if (isset($_SESSION['UserId'])) { header('Location: index'); } }
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']; } }
function __construct() { parent::__construct(); }