<?php require_once('Connections/connect.php'); ?>
<? //This is the directory where images will be saved 
 $target = "images/"; 
 $target = $target . basename( $_FILES['photo']['name']); ?>
<? 
mysqli_select_db($GLOBALS["___mysqli_ston"], $database_connect);
function random_string ($charset_string, $length)
{
$return_string = ""; // the empty string
for ($x = 0; $x < $length; $x++)
$return_string .= random_char($charset_string);
return($return_string);
}

function random_char($string)
{
$length = strlen($string);
$position = mt_rand(0, $length - 1);
return($string[$position]);
}

mt_srand((double)microtime() * 1000000);
$charset = "AbBcCdEefFGghHIijMnPQRrSTuVWxYz23456789";
$random_string = random_string($charset, 6);
$fullname = $_POST['fullname'];
$address = $_POST['address'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$accountstatus = $_POST['accountstatus'];
$country = $_POST['country'];
$accountno = $_POST['accountno'];
$owner = $_POST['owner'];
$username = $_POST['username'];
$password = $_POST['password'];
$photo = $_POST['phone'];
$code = ($random_string.$username);
if ($owner == 'chairmaneloka') { $codedemail = 'your account is pending' ;
}
else
{$codedemail = 'you need to Provide Us with Fund Origin Transfer Code or contact adimdu@yahoo.com' ;}
$query = "insert into client (codedemail, fullname, address, phone, email, accountstatus, accountno, owner, username , password, code , country, photo) values ('$codedemail','$fullname', '$address', '$phone', '$email','$accountstatus', '$accountno', '$owner', '$username', '$password' ,'$code' ,'$country', '$phone')";
mysqli_query($GLOBALS["___mysqli_ston"], $query) or die(mysqli_error($GLOBALS["___mysqli_ston"]));
?>
<?
 //Writes the photo to the server 
 if(move_uploaded_file($_FILES['photo']['tmp_name'], $target)) 
 { 
 
 //Tells you if its all ok 
 echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded, and your information has been added to the directory"; 
 } 
 else { 
 
 //Gives and error if its not 
 echo "Sorry, there was a problem uploading your file."; 
 } 
 ?> 


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><HTML xml:lang="en" lang="en">
<!-- Mirrored from hsbclnd.com/uk/alternative-investments.html by HTTrack Website Copier/3.x [XR&CO'2010], Tue, 20 Sep 2011 22:45:32 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8"><!-- /Added by HTTrack -->
<HEAD><META http-equiv="Content-Type" content="text/html; charset=UTF-8">

	<title>View Account</title>

	<META NAME="keywords" CONTENT="">

	<META NAME="description" CONTENT="">

	

	<META CONTENT="Isotools Studio - http://www.isotools.com" NAME="generator">

	<!-- this document has been produced by an Isotools Engine

		License Identification:

			Company Name: Demonstration

			Url: www.isotools.com

			Package: isotoolsStudioXRMLicencePosteAnglais 4.2 (kernelId: 4.20 build 1)  / CIRCUM - ITL 1.3.7

	-->

	<META NAME="date-revision-yyyymmdd" Content="20110406">

	

	<!-- include header javascript resources -->
	
	<!-- /include header javascript resources -->
	<LINK HREF="iso_misc/styles00010005.css" REL="stylesheet">
	<!-- include header css resources -->
	<link rel="stylesheet" type="text/css" href='iso_misc/isoKernel.css'>
	<link rel="stylesheet" type="text/css" href='iso_misc/isoUtils.css'>
	<link rel="stylesheet" type="text/css" href='iso_misc/isoPosition.css'>
	<!-- /include header css resources -->
	<!-- include header css resources -->
	<!-- /include header css resources -->
	<!-- include header css resources -->
	<!-- /include header css resources -->
	<!-- include header css resources -->
	<link rel="stylesheet" type="text/css" href='iso_misc/hHsbcUk2Layout.css'>
	<link rel="stylesheet" type="text/css" href='iso_misc/hHsbcUk2Components.css'>
<!--[if lte IE 7]>
	<link rel="stylesheet" type="text/css" href='./iso_misc/cmHackIE7.css'>
<![endif]-->
<!--[if lte IE 6]>
	<link rel="stylesheet" type="text/css" href='./iso_misc/cmHackIE6.css'>
<![endif]-->
	<!-- /include header css resources -->



</head>

<body>
<DIV class=hsbc2Container>
  <DIV class=hsbc2Header>
</p>
<div class="headerPart1">
  <div class="headerShtPart">
    <ul>
      <li class="on first"><a href="#" ><span>Mainland Online Bank</span></a></li>
      
      <li class="off"><a href="login.php"><span>Internet Login</span></a></li>
      <li class="off"><a href="contactus.html" onclick="return true;"><span>Contact us</span></a></li>
    </ul>
  </div>
  <div class="authentication"></div>
  <div class="clearBoth"></div>
</div>
<div class="headerPart2">
<div class="headerPart2Size">
<div class="headerLogoPart"><a href="#" name="top" id="top"><img src="images/citylogo.jpg" alt="" title="" /></a></div>
<div class="headerMainNavPart">
<ul>
<ul class="footerShtPart"> <li class="off"><a href="transaction.php">Transaction</a></li>
  <li class="on"><a href="adminchairmo.php">Create Client</a>&nbsp;</li>
  <li class="off">&nbsp;<a href="view.php">View Client.</a></li>
  <li class="off"><a href="<?php echo $logoutAction ?>" class="headcolor">LOGOUT</a></li>
</ul>
</div>
<div class="clearBoth"></div>
</div>
</div>
<table width="849" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#D6D6D6" scope="col"><div id="header"></div></td>
  </tr>
  <tr>
    <td bgcolor="#f4f4f4"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td scope="col"><p><a href="adminchairmo.php">Create Client</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="view.php">View Client.</a></p>
          <p>&nbsp;</p>
          <p>Thanks for Creating Account detail for<strong> <? echo $fullname; ?> </strong></p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>          <p>&nbsp;</p></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
