public function __construct() { parent::__construct(); $this->s = sectionsOb::getInstance()->section; $this->fname = 'login'; $this->content_templates[0] = false; $this->content_templates[1] = T_TEMPLATES_DIR . '/form.html'; $this->main_include = T_TEMPLATES_DIR . '/cms.html'; }
public function __construct() { parent::__construct(); $this->s = sectionsOb::getInstance()->sections; $this->fname = 'contact'; $this->content_templates[1] = T_TEMPLATES_DIR . '/contact.html'; $this->main_include = null; //T_TEMPLATES_DIR . '/cms.html'; $this->sent = false; }
public function startup() { require_once 'classloader.php'; smartClassMapper::getInstance(); spl_autoload_register(array('smartClassMapper', 'autoloadClass')); sectionsOb::getInstance()->handleRequests(); $this->s = sectionsOb::getInstance()->section; browser::getInstance(); require_once T_CLASS_DIR . '/Mobile_Detect.php'; $this->detect = new Mobile_Detect(); $this->deviceType = $this->detect->isMobile() ? $this->detect->isTablet() ? 'tablet' : 'phone' : 'computer'; $this->scriptVersion = $this->detect->getScriptVersion(); if (T_USE_DB) { tdb::getInstance(); } if ($this->s['section_name'] == 'login' || $this->s['section_name'] == 'logout') { $this->login = new loginOb(); $this->login->checkLogin(); } elseif ($this->s['section_name'] == 'cron') { $this->cron = new cron(); } elseif ($this->s['section_name'] == 'cms') { if ($_SESSION['user']['access'] == '2') { $this->cms = new cms(); $this->cms->showCms(); } else { header('Location: ' . T_HOME_URL . 'login'); } } elseif ($this->s['section_name'] == 'ajax') { $this->ajax = new ajax(); $this->ajax->deviceType = $this->deviceType; $this->ajax->processRequest(); } else { if (!DISABLE_FRONT_END) { $this->site = new site(); $this->site->navCase = 'upper'; $this->site->detect = $this->detect; $this->site->deviceType = $this->deviceType; $this->site->scriptVersion = $this->scriptVersion; $this->site->showSite(); } } }
public function __construct() { $this->s = sectionsOb::getInstance()->section; $this->goCron(); }
public function __construct() { $this->s = sectionsOb::getInstance()->sections; }
public function __construct() { $this->s = sectionsOb::getInstance()->section; $this->switch_link = '<a href="' . T_HOME_URL . '">< View Site</a>'; $this->content_templates[0] = T_TEMPLATES_DIR . '/cms_menu.html'; }
public function __construct() { $this->s = sectionsOb::getInstance()->section; $this->galleryIsMultiPage = GALLERY_IS_MULTI_PAGE; }
public function __construct() { $this->s = sectionsOb::getInstance()->section; $this->switch_link = '<a href="' . DEFAULT_CMS_PAGE . '">Edit Site ></a>'; $this->ieVersion = browser::getInstance()->ieVersion; }