GIF89a;
Direktori : /home/serb/public_html/ |
Current File : /home/serb/public_html/hobbyistprofile-insert.php |
<? session_start(); include("lib/globals.php"); include("lib/common.php"); include("lib/functions.php"); $date=date('Y-m-d'); $u_name=$_SESSION['user']; //$dobmn=explode('-',$_POST['dob']); //$dobmonth=$dobmn[1]; // $mont=explode('/',$_POST['dob']); //$incidentdt=$mont[2].'-'.$mont[0].'-'.$mont[1]; if($_POST['updtphonetour']) { $upphonetour='Yes'; } if($_POST['updtphoneescort']) { $upphoneescort='Yes'; } if($_POST['updateemail']) { $upemail='Yes'; } if($_POST['visitor_country']=='US') { $sql_state="SELECT * FROM states Where id='".$_POST['prlState']."'"; $res_state=execute_query($sql_state); $row_state=mysql_fetch_array($res_state); $statename=$row_state['name']; $cityname=$_POST['prlCities']; } else { $statename=$_POST['visitor_state']; $cityname=$_POST['visitor_city']; } $desp=addslashes($_POST['aboutme']); $wkcountry=addslashes($_POST['wrkcountry']); 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); } else { $manu_imagename1=$_POST['agencylogo']; } $ipp=@$_SERVER['REMOTE_ADDR']; $ins="INSERT INTO user_info(userid,username,password,email,user_type,state,city,user_country,status,ipaddress,pic,agency_ph,instruction,skype,msn,agency_about,agency_createdt,dob,dob_month) VALUES('','".$_POST['userName']."','".$_POST['passWord']."','".$_POST['emailAddrs']."','".$_POST['acctype']."','$statename','$cityname','".$_POST['visitor_country']."','u','$ipp','$manu_imagename1','".$_POST['phnumber']."','".$_POST['instruction']."','".$_POST['skype']."','".$_POST['msn']."','$desp','$date','".$_POST['dob']."','".$_POST['dobmonth']."')"; execute_query($ins); $id=mysql_insert_id(); $act_id=base64_encode($id); $un=$_POST['userName']; $ps=$_POST['passWord']; $recvemail=$_POST['emailAddrs']; $to=$recvemail; $subject="Your account has been successfully created for escortservice.org"; /*$body="Thank you for register with escortservice.\r\n Your account has been successfully created.\r\nBelow You will find your account details to login:\r\n\r\nUsername:".$un."\r\nPassword:".$ps."\r\n\r\nTo active your account please click the link below:http://escortservice.org/activehobbyiestaccount.php?id=".$id;*/ $body="<html> <head> <title>Thank you for registering with Escortservice.org</title> </head> <body> <table style='padding:10px; color:#000;'> <tr><th>Thank you for registering with Escortservice.org</th></tr> <tr><td><br/></td></tr> <tr> <td>Your account has been successfully created.</td> </tr> <tr> <td>Below You will find your account details to login:</td> </tr> <tr> <td>Username:".$un."</td> </tr> <tr> <td>Password:".$ps."</td> </tr> <tr> <td>To active your account please click the link below:<a href='http://escortservice.org/activehobbyiestaccount.php?id=$id' style='color:#AD0066;'>Click Here</a></td> </tr> </table> </body> </html>"; // To send HTML mail, the Content-type header must be set // $headers = 'MIME-Version: 1.0' . "\r\n"; // $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers // $headers .= 'From: escortservice <support@escortservice.org>' . "\r\n"; // mail($to, $subject, $body, $headers); sendEmail($to, $subject, $body); //$headers = 'MIME-Version: 1.0' . "\r\n"; ///$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; //$headers = 'From: escortservice<support@escortservice.org>' . "\r\n" . //'Reply-To: support@escortservice.org' . "\r\n" . //'X-Mailer: PHP/' . phpversion(); //mail($to, $subject, $body, $headers); $_SESSION['reg_username']=""; $_SESSION['reg_email']=""; $_SESSION['reg_pass']=""; $_SESSION['reg_acctype']=""; $_SESSION['DOB']=""; $_SESSION['dob_month']=""; ?> <script language="javascript"> location.href="thankyou.php?msg=success"; </script>