<?php
session_start();
if (empty($_SESSION['namauser']) AND empty($_SESSION['passuser'])){
	header('location:404.php');
}else{
	include_once '../po-library/po-database.php';
	include_once '../po-library/po-function.php';
	$val = new Povalidasi;
	$mod = $_GET['mod'];
	if (!file_exists("po-component/po-$mod/$mod.php")){ ?>
	<div class="contentTop">
        <span class="pageTitle"><span class="icon-link"></span>Error Somethings Wrong</span>
        <div class="clear"></div>
    </div>
    <!-- Breadcrumbs line -->
    <div class="breadLine">
        <div class="bc">
            <ul id="breadcrumbs" class="breadcrumbs">
                <li><a href="admin.php?mod=home"><?php echo $langmenu1; ?></a></li>
                <li class="current"><a>Error</a></li>
            </ul>
        </div>
    </div>
    <!-- Main content -->
    <div class="wrapper" id="errorWrapperadmin">
		<span class="errorNum">404</span>
		<div class="errorContent">
			<span class="errorDesc"><span class="icon-warning"></span>Ooops! Error Somethings Wrong</span>
			<div class="fluid">
				<?php
					$url = rtrim("http://".$_SERVER['HTTP_HOST'], "/").$_SERVER['PHP_SELF'];
					$url2 = preg_replace("/\/po-admin\/(admin\.php$)/","",$url);
					$siteurl = $url2;
				?>
				<a title="Back to Previous page" class="buttonM bLightBlue grid6" onClick="history.back();">Back to previous page</a>
				<a href="<?php echo $siteurl; ?>" title="Back to the website" class="buttonM bRed grid6">Back to the website</a>
			</div>
		</div>
	</div>
	<?php }else{
		include "po-component/po-$mod/$mod.php";
	}
}
?>