????

Your IP : 3.15.1.23


Current Path : /home2/morganrand/backup.morganrand.com/
Upload File :
Current File : /home2/morganrand/backup.morganrand.com/adminOnly.php

<?php
session_start();
if(   (!isset($_SESSION['adminUser'])) || (!isset($_SESSION['adminPassword'])) ) {
	include_once("adminLogin.php");
	exit;
}
// requires for multi applications inter-operability using same admin-Login-Only module
if(file_exists("util.php")) { // phpyellow admin user and password file
	require_once("util.php");
}
if(file_exists("mysetup.php")) { // give admin user and password file
	require_once("mysetup.php");
}
if(file_exists("secret.php")) { // admin-Login-Only admin user and password file
	require_once("secret.php");
}
if(file_exists("db_x.php")) { // all other admin user and password file
	require_once("db_x.php");
}
if(file_exists("configure.php")) { // not commented
	require_once("configure.php");
}
/* adminOnly.php
   if the session variables are not set or are incorrect values 
   then present the login screen
*/
if( ($_SESSION['adminUser'] != ADMINUSER) || ($_SESSION['adminPassword'] != ADMINPASSWORD) ) {
	//header("Location: adminLogin.php");
	include_once("adminLogin.php");
	exit;
}else{?>
<table>
<tr>
	<td width=32 style="font-size:x-small;"><a href="adminLogOut.php">Logout</a></td>
	<td width=32 style="font-size:x-small;"><a href="<?php echo ADMINHOME;?>">Admin</a></td>
	<td width="100%" >&nbsp;</td>
	<td width=32 style="font-size:x-small;"><a href="<?php echo ADMINHOME;?>">Admin</a></td>
	<td width=32 style="font-size:x-small;"><a href="adminLogOut.php">Logout</a></td>
</tr>
</table>
<?php }?>