<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
// +----------------------------------------------------------------------+
// | PHP version 4/5                                                      |
// +----------------------------------------------------------------------+
// | This source file is a part of iScripts Multicart                     |
// +----------------------------------------------------------------------+
// | Authors: Programmer<programmer@armia.com>        		              |
// +----------------------------------------------------------------------+
// | Copyrights Armia Systems, Inc and iScripts.com � 2005                |
// | All rights reserved                                                  |
// +----------------------------------------------------------------------+
// | This script may not be distributed, sold, given away for free to     |
// | third party, or used as a part of any internet services such as      |
// | webdesign etc.                                                       |
// +----------------------------------------------------------------------+
?>
<?php
include "includes/config.php";
include "includes/session.php";
include "includes/functions.php";
if (get_magic_quotes_gpc()) {
    $_POST = array_map('stripslashes_deep', $_POST);
    $_GET = array_map('stripslashes_deep', $_GET);
    $_COOKIE = array_map('stripslashes_deep', $_COOKIE);
}


if(isset( $_SESSION["sess_userid"]) and $_SESSION["sess_userid"]!= ""){
	$userid = $_SESSION["sess_userid"];
}else{
	header("Location:login.php");
	exit;
}
include "includes/htmltop.php";

/*display the active template*/

$active_template = displayTemplate();

?>


<body topmargin="0">
<table width="804" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td align="center">
			<table width="802" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
					<td >
						<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
            				<tr>
              					<td>
									<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="maintext">
                  						<tr>
                    						<td>
												<form name="frmTop" method="post" action="#">
												<?php include "includes/".$active_template[0]; /* Top File Name */?> 
											</form>
												<table width="100%"  border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td valign="top" bgcolor="#FFFFFF">
															<?php 
																include "includes/topmenu.php"; 
																include "includes/dotline.php";
															?>
															<table width="100%"  border="0" cellspacing="0" cellpadding="0">
																<tr>
																	
																	<td width="100%">
																		<table width="100%"  border="0" cellspacing="0" cellpadding="0">
																			<tr>
																				<td width="15%" valign="top">
																					<?php include "includes/categorylist.php";?>
																					<?php include "includes/newitemslist.php";?>
																				</td>
																				<td align="center" valign="top">
																					<?php //include "includes/searchbar.php";?>
                                       												<?php //include "includes/maintop.php";?>                                       
                                       												
                             														
																					
																					<!-- _______________________________________________ -->
																					
																					
																					<table width="100%"  border="0" cellspacing="0" cellpadding="0">
																						<tr>
																							<td width="4%">&nbsp;</td>
																							<td width="93%">
																								
																							</td>
																							<td width="3%">&nbsp;</td>
																						</tr>
																					</table>
																					<table width="100%"  border="0" cellspacing="0" cellpadding="0">
																						<tr>
																							<td width="4%">&nbsp;</td>
																							<td width="93%">
																								<table width="100%"  border="0" cellspacing="0" cellpadding="5">
																									<tr>
																											<td height="37" class="headingbig" align=left>Usermain </td>
																											<td width="4%">&nbsp;</td>
																										</tr>
																								</table>
																							</td>
																							<td width="3%">&nbsp;</td>
																						</tr>
																					</table>
                                           
																					
																					<div class="heading">
																					<br>
																					<br>
																					<br><br><br><br>
																					Welcome <?php echo $_SESSION["sess_username"];?>!
																					</div>
																					
																					
																					
																					
																					
																					
																					
																					
																					
																					
																					
																					
																					
																					
																					<!-- _______________________________________________ -->
																					
																					
																					
																					
																					
																					
																					
																					
																					
																					
																					
																					
																					
																					
																					
																					
																					
																					
																					
																					
																				</td>
                                											</tr>
                           												</table>
                             										</td>
                              										<td style="width:1px" class="siteborder"><img src="./images/spacer.gif"></td>
                                  								</tr>
                     										</table>	
															<?php	
																include "includes/dotline.php";
																include "includes/bottommenu.php";
																include "includes/bottomband.php";
															?>
														</td>
                          							</tr>
                      							</table>
											</td>
                  						</tr>
									</table>
								</td>
 							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<?php
include "includes/".$active_template[2];
?>
</body>
</html>