<?php 
/*
##################################################################
#                       PHP 4&5 MySQL 4&5                        #
##################################################################
#           Copyright (c) 2004-2008 Armia Systems Inc            #
##################################################################
#               This file is part of Cybermatch site             #
##################################################################
#    Developed By: simi (simi@armia.com)                         #

##################################################################
#               Developed On:   03-04-2008                       #
##################################################################
#               Modified By:                                     #
##################################################################
#               Modified On:                                     #
##################################################################
# 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.                                         #
##################################################################
*/
//checking installed or not
$configfile = "config.inc.php";
//echo"<pre>";print_r($_SESSION);echo"</pre>";
$configcontents = @fread(@fopen($configfile, 'r'), @filesize($configfile));
$pos = strpos($configcontents,"INSTALLED");
if($pos === false)
{
	header("Location:install/install.php");
	exit();
}//end if

require_once ("config.inc.php");
require_once ("includes/mysql.inc.php");
require_once ("includes/arrays.inc.php");
require_once ("classes/miscellaneous.class.php");

$message	= "";
$msg		= isset($_REQUEST['msg'])	?	trim($_REQUEST['msg'])	:	"";
$array		= array();
if (!$objDB) {
	$message	= "Unable to Locate Database Server.";
} else {
	$objM		= new miscellaneous($objDB);
	$array		= $objM->get_cms(1);
}
$user_gender	= (isset($_SESSION['user_gender'])&&$_SESSION['user_gender']<>"")	?	$_SESSION['user_gender']	:	"Male";
$age_from		= (isset($_SESSION['age_from'])&&$_SESSION['age_from']<>"")	?	$_SESSION['age_from']		:	"18";
$age_to			= $age_from+ 22;
if ($age_to > 99) $age_to	= 99;
if ($msg == "s") {
	$message	= "You have been logged out as same user name has logged in from another computer.";
}
include_once ("title.inc.php");
?>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="330" class="header"><table width="100%"  border="0" cellspacing="0" cellpadding="2">
      <tr>
        <td width="28%" valign="top"><?php include_once ("left-home.inc.php");?></td>
        <td width="72%" valign="bottom"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="66%"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td class="box12"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
						<?php if(isset($message) && trim($message)!='')
							  {
						?>
                            <tr>
                              <td class="maintextCopy"><?php echo $message;?></td>
                            </tr>
							<?php }//end if?>
                          </table>
                            <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td class="maintextCopy"><div style="overflow:auto; height:80px;"><?php echo isset($array['tContent']) ? stripslashes($array['tContent']) : ""?></div></td>
                              </tr>
                          </table></td>
                      </tr>
                  </table></td>
                </tr>
            </table></td>
          </tr>
        </table>          </td>
      </tr>
    </table></td>
  </tr>
</table>
<?php include_once('bottomhtml.inc.php');?>
