/** * __construct * * Class constructor * */ public function __construct() { //load in settings.ini file self::$settings_ini = "settings.ini.php"; $this->setSettings('general', parse_ini_file(APP_PATH . '/config/' . self::$settings_ini, true)); //these updates really need to be moved into installer //but are here for when people pull form git //check for old 2.0 settings config here.... if (!isset(self::$_settings->general['settings'])) { //for legacy 2.0 upgrade support $this->upgradeSettings(true); } //check for upgrade for 2.1 here.... //we only do this if no install folder is present mate if ($this->checkInstaller() == true && self::$_settings->general['settings']['version'] == "2.1") { $this->upgradeSettings21to22(); } //get the date and timezone //date_default_timezone_set("UTC"); date_default_timezone_set(self::$_settings->general['settings']['timezone']); //if no log date is set then use todays date self::$current_date = isset($_GET['logdate']) && !empty($_GET['logdate']) ? $_GET['logdate'] : date("Y-m-d"); //mobile status self::$isMobile = false; }