if (!file_exists(__DIR__ . '/kernel.php')) { throw new Exception('<b>FATAL ERROR</b> kernel.php is\'nt exists'); } if (!file_exists(__DIR__ . '/default_config/dbData.php')) { throw new Exception('<b>FATAL ERROR</b> default_config/dbData.php is\'nt exists'); } if (!file_exists(__DIR__ . '/default_config/tplData.php')) { throw new Exception('<b>FATAL ERROR</b> default_config/tplData.php is\'nt exists'); } if (!file_exists(__DIR__ . '/class.date.php')) { throw new Exception('<b>FATAL ERROR</b> class.date.php is\'nt exists'); } if (!file_exists(__DIR__ . '/class.inputvars.php')) { throw new Exception('<b>FATAL ERROR</b> class.inputvars.php is\'nt exists'); } } catch (Exception $e) { die($e->getMessage()); } // Load files // // Default critical config require 'default_config/coreData.php'; // Load kernel require 'kernel.php'; // start stats _::set_time(); // Default configs require 'default_config/dbData.php'; require 'default_config/tplData.php'; // Core classes require 'class.date.php'; require 'class.inputvars.php';