Location: PHPKode > projects > Oyster FSS Dragon > oydrgn/index.php
<?php
	define("IS_BOOT", true);
	define("OYAPP", "Oyster Boot");
	require("./System/Kernel/kernel.php");
	@AQLog("Kernel loaded");
	if (!OYChainChomp()){
		$chainchomp = new Template();
		$chainchomp->_template_read("./System/Design/Dragon/Templates/Boot/chainchomp.tpl");
		echo $chainchomp->_template_toHTML();
		exit();
	}
	@AQLog("ChainChomp passed");
	$header = new Template();
	$footer = new Template();
	$header->_template_read("./System/Design/Dragon/Templates/Boot/head.tpl");
	$footer->_template_read("./System/Design/Dragon/Templates/Boot/redirect.tpl");
	$header->_template_assign("ERROR_NO_JAVASCRIPT", sprintf(OYLoadLanguageString("./System/Kernel/Language/EN/Core.xml", "ERROR_NO_JAVASCRIPT"),OYCreateLink("Aquarium")));
	$header->_template_assign("BROWSER_TITLE", OYLoadLanguageString("./System/Kernel/Language/EN/Core.xml", "BOOTING"));
	echo $header->_template_toHTML();
	// Boot
	if (!file_exists("./System/Library/Preferences.OYLib")){
		@AQLog("Building System Librarys");
		if (OYBuildSysLibs()) $error[] = "-4";
	}
	@AQLog("Clearing Caches");
	if (!OYClearCaches()) $error[] = "-1";
	@AQLog("Caching Tree");
	if (!OYCacheTree()) $error[] = "-2";
	@AQLog("Caching Settings");
	if (!OYCacheSettings()) $error[] = "-3";
	// Boot out
	if (isset($error)) $footer->_template_assign("ERRORS_OCCURED", sprintf(OYLoadLanguageString("./System/Kernel/Language/".OYGetPref("USE_LANG")."/Core.xml", "ERRORS_OCCURED"), implode(", ",$error)));
	@AQLog("Boot exited with ".count($error)." errors");
	echo $footer->_template_toHTML();
?>
Return current item: Oyster FSS Dragon