<?php
include '../library/session_save_path.php';
session_start();
include '../library/fiprotect.php';

$hour   = date("G:i");
$day    = date("d");
$month  = date("m");
$year   = date("Y");
 
include '../include/mysql.php';
include 'update.php';

$authcommands = 'AND STATUS = \'1\'';
$login_form = 'authorize_form_admin.php';

include '../include/global.php';
include '../library/authorize.php';
include '../sendmail.php';
?>
<HTML>
<HEAD>
<TITLE>
<?php echo "$script_title $version"; ?>
:: Administrator</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<link href="../include/stylesheet.css" rel="stylesheet" type="text/css">
</HEAD>
<?php if ($login == fail) die(); ?>
<BODY LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
<span class="link1"> </span> 
<table width="90%" border="0" cellspacing="0" cellpadding="15" align="center">
<tr> 
<?php if ($_GET[page] != '') { ?>
<td width="100%"><a href="index.php"><img src="../images/Home-icon.png" width="32" height="32" border="0"></a> </td>
<?PHP } ?>
<td nowrap > 
<div align="right" class="font1"> 
<?php echo "Server Time: $hour $day/$month $year"; ?>
<br>
Version: 
<?php echo $version; ?>
</div>
</td>
</tr>
</table>
<table width="90%" border=0 cellpadding=2 cellspacing=0 align="center">
<tr> 
<td class="space" valign=top > 
<table border="0" cellspacing="0" cellpadding="0" align="CENTER" width="200">
<tr> 
<td height="4"><img src="../images/ltl.png" width="6" height="6"></td>
<td background="../images/lt.png"></td>
<td height="4"><img src="../images/ltr.png" width="6" height="6"></td>
</tr>
<tr> 
<td background="../images/sf-l.jpg"></td>
<td class="td2" width="100%" bgcolor="#FFFFFF">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr> 
<td class="td3" > <b> Pages</b></td>
</tr>
<tr> 
<td class="td4" ><a href="?page=add_product"> </a><a href="?page=addpage">Add Article</a></td>
</tr>
<tr> 
<td class="td4" ><a href="index.php?page=manage_products"> </a><a href="?page=showpages">Manage Articles</a></td>
</tr>
<tr>
<td class="td4" ><a href="?page=pending">Pending Listings</a></td>
</tr>
</table>
<br>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr> 
<td class="td3" > <b> Links</b></td>
</tr>
<tr> 
<td class="td4" ><a href="?page=add_product"> </a><a href="?page=addlink">Add Link</a></td>
</tr>
<tr> 
<td class="td4" ><a href="index.php?page=manage_products"> </a><a href="?page=showlinks">Manage Links</a></td>
</tr>
</table>
<br>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr> 
<td class="td3" > <b> Users</b></td>
</tr>
<tr> 
<td class="td4" ><a href="?page=add_user"> Add User</a></td>
</tr>
<tr> 
<td class="td4" ><a href="index.php?page=show_users"> </a><a href="?page=show_users">Manage Users</a></td>
</tr>
</table>
</td>
<td background="../images/lr.png"></td>
</tr>
<tr> 
<td><img src="../images/lbl.png" width="6" height="6"></td>
<td background="../images/lb.png"></td>
<td><img src="../images/lbr.png" width="6" height="6"></td>
</tr>
</table>
</td>
<td valign=bottom><img src="../images/transparent.gif" width="10" height="10"></td>
<td class="space" width="100%" valign="TOP"> 
<?php if ($_GET[page] == '') { ?>
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="CENTER">
<tr> 
<td height="4"><img src="../images/ltl.png" width="6" height="6"></td>
<td background="../images/lt.png" colspan="3"></td>
<td height="4"><img src="../images/ltr.png" width="6" height="6"></td>
</tr>
<tr> 
<td background="../images/sf-l.jpg"></td>
<td class="td2" bgcolor="#FFFFFF"><span class="head_link"><a href="index.php"> </a><img src="../images/articleicon.png" width="128" height="128"></span> </td>
<td class="td2" width="100%" bgcolor="#FFFFFF"><span class="head_link"><a href="index.php"> 
<?php echo "$script_title"; ?>
</a></span></td>
<td class="td2"  bgcolor="#FFFFFF" nowrap> Signed in as: 
<?php echo " ($username) "; ?>
(<a href="../library/cp_logout.php">Sign out</a>)</td>
<td background="../images/lr.png"></td>
</tr>
<tr> 
<td><img src="../images/lbl.png" width="6" height="6"></td>
<td background="../images/lb.png" colspan="3"></td>
<td><img src="../images/lbr.png" width="6" height="6"></td>
</tr>
</table>
<br>
<?PHP } ?>
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="CENTER">
<tr> 
<td height="4"><img src="../images/ltl.png" width="6" height="6"></td>
<td background="../images/lt.png"></td>
<td height="4"><img src="../images/ltr.png" width="6" height="6"></td>
</tr>
<tr> 
<td background="../images/sf-l.jpg"></td>
<td class="td2" width="100%" bgcolor="#FFFFFF"> 
<?PHP if (empty($_GET[page])) $_GET[page] = home; include "$_GET[page].php"; ?>
</td>
<td background="../images/lr.png"></td>
</tr>
<tr> 
<td><img src="../images/lbl.png" width="6" height="6"></td>
<td background="../images/lb.png"></td>
<td><img src="../images/lbr.png" width="6" height="6"></td>
</tr>
</table>
<p align="right"><a href="http://www.idevspot.com" target="_blank">&copy;idevSpot</a></p>
</td>
<td valign=bottom><img src="../images/transparent.gif" width="10" height="10"></td>
<td class="space" valign=top > 
<table border="0" cellspacing="0" cellpadding="0" width="200" align="CENTER">
<tr> 
<td height="4"><img src="../images/ltl.png" width="6" height="6"></td>
<td background="../images/lt.png"></td>
<td height="4"><img src="../images/ltr.png" width="6" height="6"></td>
</tr>
<tr> 
<td background="../images/sf-l.jpg"></td>
<td class="td2" width="100%" bgcolor="#FFFFFF"> 
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr> 
<td class="td3" > <b> Configuration</b></td>
</tr>
<tr> 
<td class="td4" ><a href="?page=settings"> Settings</a></td>
</tr>
<tr>
<td class="td4" ><a href="?page=categories">Category Editor</a></td>
</tr>
</table>
<br>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr> 
<td class="td3" > <b> Quick Jump</b></td>
</tr>
<tr> 
<td class="td4" ><a href="?page=add_emailtemplates"> </a><a href="../index.php">Website</a></td>
</tr>
</table>
</td>
<td background="../images/lr.png"></td>
</tr>
<tr> 
<td><img src="../images/lbl.png" width="6" height="6"></td>
<td background="../images/lb.png"></td>
<td><img src="../images/lbr.png" width="6" height="6"></td>
</tr>
</table>
</td>
</tr>
</table>
</BODY>
</HTML>
