/** * Initialises the most fundamental parts of bbPress * * You should not have to change this file, all configuration * should be possible in bb-config.php * * @package bbPress */ /** * Low level reasons to die */ // Die if PHP is not new enough // Modify error reporting levels to exclude PHP notices /** * bb_timer_start() - PHP 4 standard microtime start capture * * @access private * @global int $bb_timestart Seconds and Microseconds added together from when function is called * @return bool Always returns true */ // Server detection /** * Whether the server software is Apache or something else * @global bool $is_apache */ /** * Whether the server software is IIS or something else * @global bool $is_IIS */ /** * Whether the server software is IIS 7.X * @global bool $is_iis7 */ /** * Stabilise $_SERVER variables in various PHP environments */ // Fix for IIS, which doesn't set REQUEST_URI // IIS Mod-Rewrite // IIS Isapi_Rewrite // Use ORIG_PATH_INFO if there is no PATH_INFO // Some IIS + PHP configurations puts the script-name in the path-info (No need to append it twice) // Append the query string if it exists and isn't null // Fix for PHP as CGI hosts that set SCRIPT_FILENAME to something ending in php.cgi for all requests // Fix for Dreamhost and other PHP as CGI hosts // Fix empty PHP_SELF /** * bbPress logging level constants - same as constants from BP_Log class */ /** * Combination of all errors (excluding none and debug) */ /** * Define temporary $_bb_path as this files directory, then check for the special BB_PATH config file * which allows override of BB_PATH, but only outside of core files */ /** * The bbPress includes path relative to BB_PATH */ // Initialise $bb object // The config file resides in BB_PATH require_once( BB_PATH . 'bb-config.php'); // Load bb-settings.php require_once( BB_PATH . 'bb-settings.php' ); // The config file resides one level below BB_PATH require_once( dirname( BB_PATH ) . '/bb-config.php' ); // Load bb-settings.php require_once( BB_PATH . 'bb-settings.php' ); // The config file doesn't exist and we aren't on the installation page // Cut to the chase, go to the installer and use it to deal with errors