GIF89a;
Direktori : /home/serb/public_html/ |
Current File : /home/serb/public_html/register-process.php |
<? session_start(); include("lib/globals.php"); include("lib/common.php"); include("lib/functions.php"); ?> <? if($_POST) { if($_FILES['avt_image']['tmp_name']) { $manu_imagename1=time().$_FILES['avt_image']['name']; move_uploaded_file($_FILES['avt_image']['tmp_name'],'profile_pic/'.$manu_imagename1); } $ctname=$_SESSION['countryname']; $sql="SELECT * FROM user_info WHERE username='".$_POST['userName']."' OR email='".$_POST['emailAddrs']."'"; $res=execute_query($sql); $num=mysql_num_rows($res); if($num<=0) { /*$dob=$_POST['year'].'-'.$_POST['month'].'-'.$_POST['day'];*/ $ins="INSERT INTO user_info(userid,username,password,email,user_country,status) VALUES('','".$_POST['userName']."','".$_POST['passWord']."','".$_POST['emailAddrs']."','$ctname','u')"; execute_query($ins); $id=mysql_insert_id(); $act_id=base64_encode($id); $to=$_POST['emailAddrs']; $subject="Your account has been successfully created for escortservice.org"; $body="Thank you for register with escortservice.org.<br/>Your account has been successfully created.<br/>Below You will find your account details to login:<br/><br/>Username:".$_POST['userName']."<br/>Password:".$_POST['passWord']."<br/><br/>To active your account please click the link below: http://testsitez.info/abhi-dv/escortservice/active.php?id=".$id; // $headers = 'From:escortservice<support@escortservice.org>' . "\r\n" . // 'Reply-To: support@escortservice.org' . "\r\n" . // 'X-Mailer: PHP/' . phpversion(); sendEmail($to, $subject, $body, 'support@escortservice.org'); // mail($to, $subject, $body, $headers); $loc="thankyou.php?msg=success"; ?> <script language="javascript"> location.href="<?=$loc?>"; </script> <? } else { $loc="register.php?msg=err"; ?> <script language="javascript"> location.href="<?=$loc?>"; </script> <? } } ?>