Location: PHPKode > projects > Blackwolf CMF > projectBlackWolf/lib/main.php
<?php
/* Please see the README and LICENSE files. */

/**
 * This starts the framework 
 */

validate_version();
define_paths();
require_once(LIB_DIR."/scripts/startup/include.php");
require_once(LIB_DIR."/scripts/startup/config.php");
require_once(LIB_DIR."/scripts/startup/run.php");
require_once(LIB_DIR."/scripts/startup/permission_check.php");
require_once(LIB_DIR."/scripts/startup/output_manager.php");
require_once(LIB_DIR."/system.config");

function validate_version(){
	if (strnatcmp(phpversion(),'5.0.0') < 0){die("Required: PHP 5 or higher");}
}
function define_paths(){
	$count = substr_count($_SERVER['REQUEST_URI'],'/');
	$lvlv = str_repeat("../",($count-1));
	$lvl = ""; $i = 0;
	while ($i<256 && !file_exists($lvl."lib/System.class.php")) {
		$lvl .= "../";
		$i++;
	}
	define('VIS_DIR', $lvlv);
	define("CLI_DIR", $lvl);
	define("LIB_DIR",dirname(__FILE__));
}
?>
Return current item: Blackwolf CMF