<?php
	//Switch Start
	switch($SESS_ACCESS_LEVEL_ADMIN)
	#1) Administrator
	{
		###########Case No:1
		#1) Administrator
		case "Administrator":
		#BEGIN Verifing Active Session
		#Secure Page
		 if(
			#MD5 Database Details
			!isset($_SESSION['SESS_ID_MD'])			    	  || (trim($_SESSION['SESS_ID_MD']) == '') 				 ||
			!isset($_SESSION['SESS_FULLNAME_MD'])			    || (trim($_SESSION['SESS_FULLNAME_MD']) == '') 		   ||
			!isset($_SESSION['SESS_EMAIL_MD'])				   || (trim($_SESSION['SESS_EMAIL_MD']) == '') 			  ||
			!isset($_SESSION['SESS_USERNAME_MD'])			    || (trim($_SESSION['SESS_USERNAME_MD']) == '') 		   ||
			!isset($_SESSION['SESS_PASSWORD_MD'])			    || (trim($_SESSION['SESS_PASSWORD_MD']) == '') 	 	   ||
			!isset($_SESSION['SESS_PHOTO_MD'])		  		   || (trim($_SESSION['SESS_PHOTO_MD']) == '')  	  		  ||
			!isset($_SESSION['SESS_REGISTRATION_DATE_MD'])	   || (trim($_SESSION['SESS_REGISTRATION_DATE_MD']) == '')  ||
			!isset($_SESSION['SESS_ACCESS_LEVEL_MD'])		    || (trim($_SESSION['SESS_ACCESS_LEVEL_MD']) == '')  	   ||
			!isset($_SESSION['SESS_HASH_MD'])		      	    || (trim($_SESSION['SESS_HASH_MD']) == '')  	   		   ||
			!isset($_SESSION['SESS_STATUS_MD'])		   	   	  || (trim($_SESSION['SESS_STATUS_MD']) == '')			 ||
			!isset($_SESSION['SESS_TOKEN_MD'])		   	       || (trim($_SESSION['SESS_TOKEN_MD']) == '')			  ||
					 
		 	#NORMAL Database Details
			!isset($_SESSION['SESS_ID_ADMIN'])			 	   || (trim($_SESSION['SESS_ID_ADMIN']) == '') 				 ||
			!isset($_SESSION['SESS_FULLNAME_ADMIN'])			 || (trim($_SESSION['SESS_FULLNAME_ADMIN']) == '') 		   ||
			!isset($_SESSION['SESS_EMAIL_ADMIN'])				|| (trim($_SESSION['SESS_EMAIL_ADMIN']) == '') 			  ||
			!isset($_SESSION['SESS_USERNAME_ADMIN'])			 || (trim($_SESSION['SESS_USERNAME_ADMIN']) == '') 		   ||
			!isset($_SESSION['SESS_PASSWORD_ADMIN'])			 || (trim($_SESSION['SESS_PASSWORD_ADMIN']) == '') 	 	   ||
			!isset($_SESSION['SESS_PHOTO_ADMIN'])		  		|| (trim($_SESSION['SESS_PHOTO_ADMIN']) == '')  	  		  ||
			!isset($_SESSION['SESS_REGISTRATION_DATE_ADMIN'])	|| (trim($_SESSION['SESS_REGISTRATION_DATE_ADMIN']) == '')  ||
			!isset($_SESSION['SESS_ACCESS_LEVEL_ADMIN'])		 || (trim($_SESSION['SESS_ACCESS_LEVEL_ADMIN']) == '')  	   ||
			!isset($_SESSION['SESS_HASH_ADMIN'])		         || (trim($_SESSION['SESS_HASH_ADMIN']) == '')  	   		   ||
			!isset($_SESSION['SESS_STATUS_ADMIN'])		   	   || (trim($_SESSION['SESS_STATUS_ADMIN']) == '')			 ||
			!isset($_SESSION['SESS_TOKEN_ADMIN'])		   	    || (trim($_SESSION['SESS_TOKEN_ADMIN']) == ''))
			{
				redirect('index.php?msg=access_denied');
			}
		#Secure Page
		//BEGIN Verifing Active Session
		break;


		###########Default Case:
		default:
		#Redirect
			redirect('index.php?msg=access_denied');
		break;
	}
	//Switch Close
?>