<?php
error_reporting(0);
  require("inc/session.php");
  require("inc/classes/class.db.php");
  require("inc/config.php");
  require("inc/classes/class.main.php");
  
if($_SESSION['userName']==""){
header("Location:home.php");
}else{
require("inc/inc_header.php"); 
 ?> 
 
 
 <table  class="main" align="center">
  <tr>
 	<td class="small" >
	<table class="innerTable" height="50px;"><tr><td>
	<h3 style="padding-top:10px; color:#0c54a0;">Welcome <b><?php echo $_SESSION['name']; ?></b> You are now logged in as <b><?php echo $_SESSION['userName']; ?></b> from <b><?php echo $_SERVER['REMOTE_ADDR'];	?></b>
	</h3>
    </td>
	</tr></table>
	</td>
 </tr>
 </table>
<?php } require("inc/inc_footer.php"); ?>
