GIF89a;
Direktori : /home/serb/public_html/m/ |
Current File : /home/serb/public_html/m/agency_new_escorts.php |
<? session_start(); include("lib/globals.php"); include("lib/common.php"); include("lib/functions.php"); include"lib/SimpleImage.php"; $date=date('Y-m-d'); $u_name=$_SESSION['user']; $srcc=addslashes($_POST['source']); $url=$_POST['webpage']; if (false === strpos($url, '://')) { $websit = 'http://' . $url; } else { $websit=$_POST['webpage']; } $fav=$_POST['fav']; if($_POST['updateemail']) { $upemail='Yes'; } if($_POST['travel']) { $travel='Yes'; } if($_POST['couple']) { $couple='Yes'; } if($_POST['duoStatus']) { $duos='Yes'; } if($_POST['meetingman']) { $mtman=$_POST['meetingman']; } if($_POST['meetingwm']) { $mtwm=$_POST['meetingwm']; } if($_POST['meetingcup']) { $mtcup=$_POST['meetingcup']; } if($_POST['meetingtrans']) { $mttrans=$_POST['meetingtrans']; } if($_post['meetinggay']) { $mtgay=$_POST['meetinggay']; } if($_POST['meetingtwoplus']) { $mttwoplus=$_POST['meetingtwoplus']; } if($_POST['updtphone']) { $upphone='Yes'; } if($_POST['viver']) { $viver='Yes'; } if($_POST['whatsapp']) { $whatapps='Yes'; } if($_POST['hiddennumber']) { $hidephone='Yes'; } if($_POST['pstar']) { $pornstar='Yes'; } if($_POST['bdms']) { $bdms='Yes'; } if($_POST['massage']) { $massage='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']; } $travelarea=""; if($_POST['usa']) { $travelarea=$_POST['usa'].","; } if($_POST['scandinavia']) { $travelarea=$travelarea.$_POST['scandinavia'].","; } if($_POST['asia']) { $travelarea=$travelarea.$_POST['asia'].","; } if($_POST['Canada']) { $travelarea=$travelarea.$_POST['Canada'].","; } if($_POST['westerneurope']) { $travelarea=$travelarea.$_POST['westerneurope'].","; } if($_POST['africa']) { $travelarea=$travelarea.$_POST['africa'].","; } if($_POST['Caribbean']) { $travelarea=$travelarea.$_POST['Caribbean'].","; } if($_POST['easterneurope']) { $travelarea=$travelarea.$_POST['easterneurope'].","; } if($_POST['Middleeast']) { $travelarea=$travelarea.$_POST['Middleeast'].","; } if($_POST['latinamerica']) { $travelarea=$travelarea.$_POST['latinamerica'].","; } if($_POST['australia']) { $travelarea=$travelarea.$_POST['australia'].","; } if($_FILES['avt_image']['tmp_name']) { $manu_imagename1=time().$_FILES['avt_image']['name']; move_uploaded_file($_FILES['avt_image']['tmp_name'],'avtar/'.$manu_imagename1); $image2= new SimpleImage(); $image2->load('../avtar/'.$manu_imagename1); $image2->resizeToWidth(250); $image2->resizeToHeight(350); $image2->save('../thubigg/'.$manu_imagename1); $image1= new SimpleImage(); $image1->load('../avtar/'.$manu_imagename1); $image1->resizeToWidth(100); $image1->resizeToHeight(120); $image1->save('../thumbs_pic/'.$manu_imagename1); } if($_FILES['avt_image2']['tmp_name']) { $manu_imagename12=time().$_FILES['avt_image2']['name']; move_uploaded_file($_FILES['avt_image2']['tmp_name'],'avtar/'.$manu_imagename12); $image1= new SimpleImage(); $image1->load('../avtar/'.$manu_imagename12); $image1->resizeToWidth(100); $image1->resizeToHeight(120); $image1->save('../thumbs_pic/'.$manu_imagename12); } if($_FILES['avt_image3']['tmp_name']) { $manu_imagename13=time().$_FILES['avt_image3']['name']; move_uploaded_file($_FILES['avt_image3']['tmp_name'],'avtar/'.$manu_imagename13); $image1= new SimpleImage(); $image1->load('../avtar/'.$manu_imagename13); $image1->resizeToWidth(100); $image1->resizeToHeight(120); $image1->save('../thumbs_pic/'.$manu_imagename13); } if($_FILES['avt_image4']['tmp_name']) { $manu_imagename14=time().$_FILES['avt_image4']['name']; move_uploaded_file($_FILES['avt_image4']['tmp_name'],'avtar/'.$manu_imagename14); } $desp=addslashes($_POST['aboutme']); if($_POST['postid']) { $updateaccount="UPDATE escort_details SET nickname='".$_POST['nickname']."',slogan='".$_POST['slogan']."',website='$websit', skype='".$_POST['skype']."', email='".$_POST['email']."', update_email='$upemail', address='', escort_state='$statename', escort_city='$cityname',country_name='".$_POST['visitor_country']."', gender='".$_POST['gender']."', travel='$travel', couples='$couple', age='".$_POST['ageDtls']."', ethencity='".$_POST['ethnicity']."', orientation='".$_POST['orientation']."', duos='$duos', nationality='".$_POST['nationality']."', shaved='', language='".$_POST['language']."', height='".$_POST['height']."', weight='".$_POST['weight']."', tits='".$_POST['tits']."', pussy='".$_POST['pussy']."', eye_color='".$_POST['eye_color']."', hair_color='".$_POST['hair_color']."', meeting_men='$mtman', meeting_wm='$mtwm', meeting_cup='$mtcup', meeting_trans='$mttrans', meeting_gays='$mtgay', meeting_two='$mttwoplus', tel_national='".$_POST['phnumber']."', update_tele='$upphone', viver='$viver', whatsapps='$whatapps', instruction='".$_POST['instruction']."', hidden_phone='$hidephone', pornstar='$pornstar', pornstar_name='".$_POST['pornName']."', bdms='$bdms', partner='".$_POST['partnername']."', incall='".$_POST['incall']."', outcall='".$_POST['outcall']."', massage='$massage', description='$desp',updatedate='$date',travel_area='$travelarea' where id='".$_POST['postid']."'"; execute_query($updateaccount); if($_SESSION['acctype']=='agency') { ?> <script language="javascript"> location.href="agency-account.php"; </script> <? } else {?> <script language="javascript"> location.href="myaccount.php?msg=23"; </script> <? } } else { if($_POST['featadPrice']=="") { $expiry = date("Y-m-d", time() + 30*24*60*60 ); $sql_ind_escort="insert into escort_details (id,user_id,escort_type,nickname,slogan,website, skype, email, update_email, address, escort_state, escort_city,country_name, gender, travel, couples, age, ethencity, orientation, duos, nationality, shaved, language, language2, height, weight, tits, pussy, eye_color, hair_color, meeting_men, meeting_wm, meeting_cup, meeting_trans, meeting_gays, meeting_two, tel_national,tel_inter, update_tele,smstext,whatsapps,instruction, hidden_phone, pornstar, pornstar_name, bdms, partner, incall, outcall, massage, description, creation_date, status,updatedate,ft_ad_expair,travel_area,dob,dob_month,source,receive_email) VALUES ('','".$_SESSION['userid']."','".$_SESSION['acctype']."', '".$_POST['nickname']."','".$_POST['slogan']."','$websit', '".$_POST['skype']."', '".$_POST['email']."', '$upemail','', '$statename', '$cityname', '".$_POST['visitor_country']."', '".$_POST['gender']."', '$travel','$couple', '".$_POST['ageDtls']."', '".$_POST['ethnicity']."', '".$_POST['orientation']."', '$duos', '".$_POST['nationality']."', '', '".$_POST['language']."', '".$_POST['language2']."', '".$_POST['height']."', '".$_POST['weight']."', '".$_POST['tits']."', '".$_POST['pussy']."', '".$_POST['eye_color']."', '".$_POST['hair_color']."', '$mtman', '$mtwm', '$mtcup', '$mttrans', '$mtgay', '$mttwoplus', '".$_POST['phnumber']."','".$_POST['phnumber2']."', '$upphone', '".$_POST['smstextt']."', '".$_POST['whatsapp']."', '".$_POST['instruction']."', '$hidephone', '$pornstar', '".$_POST['pornName']."', '$bdms', '".$_POST['partnername']."', '".$_POST['incall']."', '".$_POST['outcall']."', '$massage', '$desp', '$date', 'u','','$expiry','$travelarea','".$_POST['year']."','".$_POST['expMonth']."','$srcc','".$_POST['receiveemail']."')"; $ind_res=execute_query($sql_ind_escort); $pid=mysql_insert_id(); $sql_q="INSERT INTO escort_photo(id,postid,userid,picture)VALUES('','$pid','$id','$manu_imagename1')"; execute_query($sql_q); $sql_q2="INSERT INTO escort_photo(id,postid,userid,picture)VALUES('','$pid','$id','$manu_imagename12')"; execute_query($sql_q2); $sql_q3="INSERT INTO escort_photo(id,postid,userid,picture)VALUES('','$pid','$id','$manu_imagename13')"; execute_query($sql_q3); $sql_q4="INSERT INTO escort_photo(id,postid,userid,picture)VALUES('','$pid','$id','$manu_imagename14')"; execute_query($sql_q4); $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 Account Approval From Escortservice.org"; $body="<html> <head> <title>New Account Approval in Escortservice.org</title> </head> <body> <table style='padding:10px; color:#000;'> <tr><th>there is a new post in escortservice.org, awaiting approval.</th></tr> <tr><td><br/></td></tr> <tr> <td>Below You will find account details</td> </tr> <tr> <td>Username:".$_POST['nickname']."</td> </tr> <tr> <td>UserId:".$_SESSION['userid']."</td> </tr> <tr> <td>Description:".$desp."</td> </tr> <tr> <td>click the link below to see the details of this ad:<a href='http://escortservice.org/approve-post.php?id=$pid' 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); $loc="agency-escorts.php?msg=1"; ?> <script language="javascript"> location.href="<?=$loc?>"; </script> <? }else { $sql_ind_escort="insert into temp_postad (id,user_id,escort_type,nickname,slogan,website, skype, email, update_email, address, escort_state, escort_city,country_name, gender, travel, couples, age, ethencity, orientation, duos, nationality, shaved, language, language2, height, weight, tits, pussy, eye_color, hair_color, meeting_men, meeting_wm, meeting_cup, meeting_trans, meeting_gays, meeting_two, tel_national,tel_inter, update_tele,smstext,whatsapps,instruction, hidden_phone, pornstar, pornstar_name, bdms, partner, incall, outcall, massage, description, creation_date, status,updatedate,ft_ad_day,travel_area,dob,dob_month,image1,image2,image3,image4,source,receive_email) VALUES ('','".$_SESSION['userid']."','".$_SESSION['acctype']."', '".$_POST['nickname']."','".$_POST['slogan']."','$websit', '".$_POST['skype']."', '".$_POST['email']."', '$upemail','', '$statename', '$cityname', '".$_POST['visitor_country']."', '".$_POST['gender']."', '$travel','$couple', '".$_POST['ageDtls']."', '".$_POST['ethnicity']."', '".$_POST['orientation']."', '$duos', '".$_POST['nationality']."', '', '".$_POST['language']."', '".$_POST['language2']."', '".$_POST['height']."', '".$_POST['weight']."', '".$_POST['tits']."', '".$_POST['pussy']."', '".$_POST['eye_color']."', '".$_POST['hair_color']."', '$mtman', '$mtwm', '$mtcup', '$mttrans', '$mtgay', '$mttwoplus', '".$_POST['phnumber']."','".$_POST['phnumber2']."', '$upphone','".$_POST['smstextt']."', '".$_POST['whatsapp']."', '".$_POST['instruction']."', '$hidephone', '$pornstar', '".$_POST['pornName']."', '$bdms', '".$_POST['partnername']."', '".$_POST['incall']."', '".$_POST['outcall']."', '$massage', '$desp', '', 'u','','".$_POST['featadPrice']."','$travelarea','".$_POST['year']."','".$_POST['expMonth']."','$manu_imagename1','$manu_imagename12','$manu_imagename13','$manu_imagename14','$srcc','".$_POST['receiveemail']."')"; execute_query($sql_ind_escort); $tempid=mysql_insert_id(); $_SESSION['SH_ESCORT_ID'] = $tempid; ?> <script language="javascript"> location.href="payment-chkout-agency.php?tempid=<?=$tempid?>"; </script> <? } }