request_page(); } private function get_config(){ // define the config file location $config = Core::root_dir()."/config/config.ini"; // if it doesn't exist, use the sample file // YOU REALLY SHOULD HAVE YOUR OWN CONFIG FILE!!! if (!file_exists($config)) { $config = Core::root_dir()."/config/config.sample.ini"; } // define services file location $services = Core::root_dir()."/config/services.ini"; // if it doesn't exist, use the sample file // YOU REALLY SHOULD HAVE YOUR OWN SERVICES FILE!!! if (!file_exists($services)) { $services = Core::root_dir()."/config/services.sample.ini"; } // Store the config settings in the Core::Config variable // the "true" means it's going to parse the headers as well. Core::$Config = parse_ini_file($config, true); Core::$Config["Services"] = parse_ini_file($services, true); Core::$Config["CommitID"] = Core::get_current_git_commit(); } }