Location: PHPKode > projects > Oyster FSS Dragon > oydrgn/viewer.php
<?php
	require_once("./System/Kernel/kernel.php");
	if (!OYIsLoggedIn() and USE_PASSWORD) header("Location: desktop.php");
	if(file_exists("./System/Kernel/Language/".USE_LANGUAGE."/Core.xml")){
		$XMLFile = simplexml_load_file("./System/Kernel/Language/".USE_LANGUAGE."/Core.xml");
	}
	
	$pathinfo = pathinfo($_GET["file"]);
	
	if (file_exists("./Library/Viewer/".$pathinfo["extension"].".viewer") AND !OYIsRestricted($_GET["file"])){
		include("./Library/Viewer/".$pathinfo["extension"].".viewer");
	} else {
		echo OYLoadLanguageString($XMLFile, "ERROR_MSG_VIEWER");
	}
?>
Return current item: Oyster FSS Dragon