public function __construct() { session_start(); $this->load(); $this->validConfigBase(); headmgr::addHeaderBeforeInclude('<!--' . chr(10) . chr(9) . 'This website is powered by EYOCMS - inspiring people to share!' . chr(10) . chr(9) . 'EYOCMS is a free open source Content Management Framework initially created by Touzet David and licensed under GNU/GPL.' . chr(10) . chr(9) . 'EYOCMS is copyright 2010-2011 of Touzet David.' . chr(10) . chr(9) . 'Extensions are copyright of their respective owners.' . chr(10) . '-->'); $this->db = new db(); $this->db->connect($GLOBALS['SITECONF']['DBCONF']['SERNAME'], $GLOBALS['SITECONF']['DBCONF']['username'], $GLOBALS['SITECONF']['DBCONF']['password'], $GLOBALS['SITECONF']['DBCONF']['db']); $this->template =& template::getInstance($this); //new template(); $this->vars = array_merge_recursive($_POST, $_GET); if (file_exists(PATH_TEMPLATE . 'index.html')) { $templatePath = PATH_TEMPLATE . 'index.html'; } else { $templatePath = PATH_MODULE . 'index.html'; } $this->template->initByFile($templatePath); }