<?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 ervices such #
# as webdesign etc.                                              #
##################################################################
*/
require_once ("../config.inc.php");
require_once ("../includes/mysql_mobile.inc.php");
require_once ("../classes/misc.class.php");

$message	= "";
$script		= "";
$mail		= "";

if (!$objDB) {
	$message	= "Unable to Locate Database Server.";
} else {
	$objM		= new misc($objDB);
	if (isset($_POST['LN'])) {
		$message	= $objM->login($_POST);
		if ($message == "") {
			if (isset($_SESSION['triedpage']) AND $_SESSION['triedpage'] <> "")
				header("Location: ".$_SESSION['triedpage']);
			else
				header("Location: dashbox.php");
			exit;
		}
	}
	$script		= $objM->get_script($message);
	$message	= $objM->remove_script($message);
}
?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head><title>Cybermatch</title>
<link href="images/mobile.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div xmlns="http://www.w3.org/1999/xhtml">
<?php include_once('title.inc.php');?>
<div>&nbsp;</div>
    <div>
       <div> <i>+</i> <a href="index.php">Home</a></div>
        <div><i>+</i> <a href="search.php">Search</a></div>
    </div>
<div>&nbsp;</div>

<a name="search"></a><strong>Login Now</strong></div>
<div>&nbsp;</div>
<div class="message"><?php echo $message?></div>
<div>&nbsp;</div>
<form name="frmTell" method="post" action="<?php echo $_SERVER['PHP_SELF']?>">
<div>Username: <input name="user" type="text" size="15" maxlength="100" class="inputel">
</div>
<div>Password: <input name="pass" type="text" size="15" maxlength="100" class="inputel">
</div><div>&nbsp;</div>
<input type="submit" name="LN" value="Login Now" class="inputb">
</form>
<?php include_once('footer.inc.php');?>