<?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.                                         #
##################################################################
*/

require_once ("config.inc.php");
require_once ("includes/mysql.inc.php");
require_once ("classes/misc.class.php");
require_once ("classes/userside.class.php");
require_once ("classes/settings.class.php");

$message	= "";
$script		= "";
$mail		= "";
$product	= "1";
$messages	= "";

//$from='rizwinazeez@gmail.com';
//$subject='hi';
//$to='rizwin.a@armiasystems.com';
//$headers = "From:$from\r\nReply-to: $from\r\nContent-type: text/html; charset=us-ascii";
//mail($to,$subject,$message,$headers);

$from		= isset($_REQUEST['from'])	?	stripslashes(trim($_REQUEST['from']))	:	"";
if (!$objDB) {
	$message	= "Unable to Locate Database Server.";
} else {
	$objM		= new misc($objDB);
	$objU		= new userside($objDB);	
	$objS		= new settings($objDB);
	$flag	= $objS->getone('profile_approval');
        
	if ($flag == "EM") {
		$message	.= "<br>An email has been sent to your email address with the steps for activating your account. Please check your email and follow the instructions.<br>";
	}
        if ($flag == "AD") {
		$message	.= "<br>Profile will be activated after admin approval.<br>";
	}
        
	
	$script		= $objM->get_script($message);
	$message	= $objM->remove_script($message);
}

include_once ("title.inc.php");
include_once ("tophtml.inc.php");
?>

<div class="row">
	<div class="eight columns">
		<div class="search-rslts">
			<div class="row"><div class="inenr-hd"><h2>Registration Process Completed</h2></div></div>
			<div class="row">
				<h2 class="headings2">Success</h2>
			</div>
			<div class="row">
				<form name="frmTell" method="post" action="<?php echo $objU->SiteUrl();?>/my_photos.php">
					<div class="newdesignforinput maintext1">
						<?php if(isset($messages) && trim($messages)!='')
							  {
						?>
						<div class="full_row">
							<div class="maintext1 warning"><?php echo $messages;?></div>
						</div>
						<?php }//end if
						  if($siteSettings['regmode']!=REGISTRATION_PAID_MODE)
						  {
						?>						
						<div class="full_row">
							<div class="twelve warningok">
								You have successfully completed your profile registration  <?php //echo $objU->get_product($product)?>. <?php echo $message?>
							</div>
						</div>
						<?php
						  }//end if
						  else
						  {
						?>
						<div class="full_row">
							<div class="twelve warningok">
								You have successfully completed your profile registration <?php //echo $objU->get_product($product)?> <?php if ($from == "") { ?> by paying an amount of $<?php echo $objU->get_amount($product)?><?php } ?>. <?php echo $message?>
							</div>
						</div>
						<?php
						   }//end else
						?>
						
						<div class="full_row">
							<div class="twelve columns">&nbsp;</div>
						</div>
						
						<div class="full_row">
							<div class="twelve columns"><input name="SearchNow" type="submit" class="signupbutton" value="Continue"></div>
						</div>
						
					</div>
				</form>
				<div id="hide"><?php echo $script?></div>
			</div>
		</div>
	</div>
	<div class="four columns right search_result_R"><?php include_once ("left.inc.php");?></div>
</div>


<?php include_once('bottomhtml.inc.php');?>
