GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/public_html/m/
Upload File :
Current File : /home/serb/public_html/m/agencyprofile-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];
							$url=$_POST['webpage'];	
					
						  if (false === strpos($url, '://')) {
								$websit = 'http://' . $url;
							}
							else
							{
								$websit=$_POST['webpage'];
							}	
									 
					if($_POST['updtphonetour'])
						{
							$upphonetour='Yes';
						}
						if($_POST['updtphoneescort'])
						{
							$upphoneescort='Yes';
						}
						if($_POST['updateemail'])
						{
							$upemail='Yes';
						}
												
						 
						$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,user_country,status,ipaddress,agency_name,pic,agency_ph,up_phone_tour,up_phone_escort,instruction,email_up,webpage,skype,msn,wrk_location,agency_about,agency_createdt,dob,dob_month) VALUES('','".$_POST['userName']."','".$_POST['passWord']."','".$_POST['emailAddrs']."','".$_POST['acctype']."','".$_POST['usercountry']."','u','$ipp','".$_POST['agencyName']."','$manu_imagename1','".$_POST['phnumber']."','$upphonetour','$upphoneescort','".$_POST['instruction']."','$upemail','$websit','".$_POST['skype']."','".$_POST['msn']."','$wkcountry','$desp','$date','".$_POST['dob']."','".$_POST['dobmonth']."')";
						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="<html>
							<head>
							  <title>Thank you for register with Escortservice.org</title>
							</head>
							<body>
							<table style='padding:10px; color:#000;'>
								<tr><th>Thank you for register 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:".$_POST['userName']."</td>
								</tr>
								<tr>
								  <td>Password:".$_POST['passWord']."</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);
							
							
							$sql_approveemail="SELECT * FROM approval_email";
										$res_approveemail=execute_query($sql_approveemail);
										$row_approveemail=mysql_fetch_array($res_approveemail);
										
										$to = $row_approveemail['emailid']; 
										 //$to = "subhrajyoti.mca11@gmail.com";										
										$subject="New Agency Approval"; 
										
										
										$body="<html>
												<head>
												  <title>New Agency Approval needed for Escortservice.org</title>
												</head>
												<body>
												<table style='padding:10px; color:#000;'>
													<tr><th>there is a new Agency on escortservice.org, awaiting approval.</th></tr>
													<tr><td><br/></td></tr>
													
													<tr>
													  <td>Below You will find your Agency details</td>
													</tr>
													<tr>
													  <td>Agency Name:".$_POST['agencyName']."</td>
													</tr>
													<tr>
													  <td>Agency Phone:".$_POST['phnumber']."</td>
													</tr>
													<tr>
													  <td>Agency Email:".$_POST['emailAddrs']."</td>
													</tr>
													<tr>
								  						<td>To View this Agency Details please click the link below:<a href='http://m.escortservice.org/details-agency.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);
						
							
							
							$_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>
			

./BlackJoker Mini Shell 1.0