Location: PHPKode > scripts > Imageview > imageview/admin/index.php
<?php
require_once('login.php');
require_once('../system/core/extentions/tools.php');

if(!authenticate($_COOKIE['ivAuthUser'], $_COOKIE['ivAuthPass'])){
	header('Location: ../index.php');
}else{
	if(isset($_GET['action'])){
		require('admincfg.php');
		exit;	
	}
	
	if(!isset($_GET['page'])){
		if($_COOKIE['ivAuthGroup'] == 'admin') $_GET['page'] = 'settings';
		if($_COOKIE['ivAuthGroup'] !== 'admin') $_GET['page'] = 'albmanage';
	}
	//check user credentials
	if($_COOKIE['ivAuthGroup'] !== 'admin'){
		switch($_GET['page']){
		case "settings":
		case "users":
		case "troubleshooting":
			$_GET['page'] = 'nocredentials';	
			break;
		}
	}
}



?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Imageview 6 :: Administation :: By Jorge Schrauwen</title>
<style type="text/css">@import "../system/style/admin.css";</style>
<script type="text/javascript" src="../system/javascript/jXCore/jXCore.js"></script>
<!--[if lt IE 7]>
	<style type="text/css">iMenu #mItem{cursor: hand;}</style>
	<script type="text/javascript" src="../system/javascript/pngfix.js"></script>
<![endif]-->
<script type="text/javascript">	
//<![CDATA[
	//jXCore Includes
	jXCore.include('Utils', '../system/javascript/jXCore/');
	jXCore.include('XMLParser', '../system/javascript/jXCore/');
	jXCore.include('SuperString', '../system/javascript/jXCore/');		
	jXCore.include('BrowserInfo', '../system/javascript/jXCore/');	
	
	function DestroyWindow(oEvent){
		if(oEvent.shiftKey){
			var xmlhttp = new jXCore.XMLParser();
			xmlhttp.setUnique(true);
			xmlhttp.load('login.php?action=logout', false);		
		}
		//close window
		var oParent = top.frames['frImageview'].document;
		oParent.location.href = oParent.location.href.replace('#', '');
	}
		
	function OpenPage(sPage){
		location.href = '?page=' + sPage;
	}
//]]>
</script>
</head>

<body>
<div id="iMenu">
	<div id="mHeader">
		Administration
        <img onclick="DestroyWindow(event);" id="bClose" src="../system/images/icons/exit.png"  align="absmiddle"  alt="[X]" style="cursor: pointer; cursor: hand;" />
	</div>
	<div id="mGroup">General</div>
	<div id="mItem" onclick="OpenPage('settings');">Settings</div>
	<div id="mItem" onclick="OpenPage('users');">User Manager</div>
	<div id="mItem" onclick="OpenPage('troubleshooting');">Troubleshooting</div>
	<div id="mGroup">Album Manager</div>
	<div id="mItem" onclick="OpenPage('albmanage');">Manage Albums</div>
	<div id="mItem" onclick="OpenPage('imgmanage');">Manage Images</div>
	<div id="mItem" onclick="OpenPage('imgupload');">Upload Images</div>
	<div id="mFooter">&nbsp;</div>
</div>
<div id="iContent">
	<?php include('pages/'.$_GET['page'].'.php'); ?>
</div>
</body>
</html>
Return current item: Imageview