<?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/userlogincheck.mobile.inc.php");
require_once ("../includes/mysql_mobile.inc.php");
require_once ("../classes/userside.class.php");
require_once ("../classes/misc.class.php");

$message	= "";
$msg		= "";
$vUrl		= "";
$id			= $_SESSION['user_id'];
$page		= isset($_REQUEST['page'])	?	stripslashes(trim($_REQUEST['page']))	:	"1";
$msgForm	= false;
$msgSend	= false;
$paFlag		= false;
$script		= "";
$arrImages	= array();
$array		= array();

if (!$objDB) {
	$message	= "Unable to Locate Database Server.";
} else {

	$objU		= new userside($objDB);
	$objM		= new misc($objDB);


	$array		= $objU->getuser(addslashes($id)); 
	if (!empty($array)) {
		$objU->set_values($array);
		$arrImages	= $objU->get_user_images($id);
		$objM->view_alert($_SESSION['user_id'], $id);
	} else {
		$message	= "Invalid profile.<br>";
	}

	$message	.= $msg;
	$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">
<div class="list"><img src="images/logo.jpg" alt="Cybermatch" width="73" height="100"></div>
<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><i>+</i> <a href="dashbox.php" accesskey="2">Account</a> </div>
        <div><i>+</i> <a href="logout.php">Logout</a></div>
    </div>
<div>&nbsp;</div>
<div><a name="search"></a><strong>Profile Image</strong></div>
<div>&nbsp;</div>
<div class="message"><?php echo $message?></div>
<div>&nbsp;</div>
<?php if (!empty($array)) { ?>
<div><img src="<?php echo $objU->get_display_image(PROFILE_IMAGE_URL, $id, $objU->vGender)?>" width="300" height="300" border="0">
 <div><i>+</i> <a href="dashbox.php">Back</a></div>
<?php } ?>
<?php include_once('footer.inc.php');?>