GIF89a;
Direktori : /home/serb/www/ |
Current File : /home/serb/www/ad_details_process.php |
<? session_start(); include("lib/globals.php"); include("lib/common.php"); include("lib/functions.php"); ?> <? function randomPassword() { $alphabet = "abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789"; $pass = array(); //remember to declare $pass as an array $alphaLength = strlen($alphabet) - 1; //put the length -1 in cache for ($i = 0; $i < 8; $i++) { $n = rand(0, $alphaLength); $pass[] = $alphabet[$n]; } return implode($pass); //turn the array into a string } ?> <? if($_POST) { $sql_rtvdata="select * from paymentpage_status"; $res_rtvdata=execute_query($sql_rtvdata); $row_rtvdata=mysql_fetch_array($res_rtvdata); if($row_rtvdata['status']=='a') { $date=date('Y-m-d'); $avl=""; if($_POST['Men']) { $avl=$_POST['Men'].","; } if($_POST['Women']) { $avl=$avl.$_POST['Women'].","; } if($_POST['Couples']) { $avl=$avl.$_POST['Couples'].","; } $inoutcal=""; if($_POST['Incall']) { $inoutcal=$_POST['Incall'].","; } if($_POST['Outcall']) { $inoutcal=$inoutcal.$_POST['Outcall'].","; } $fetish=""; if($_POST['Dominant']) { $fetish=$_POST['Dominant'].","; } if($_POST['Submissive']) { $fetish=$fetish.$_POST['Submissive'].","; } if($_POST['Switch']) { $fetish=$fetish.$_POST['Switch'].","; } $higt=$_POST['heightFt'].'Ft'.$_POST['height_inches'].'Inc'; $catagory=$_POST['escort_type']; $catprice=$_POST['cat_price']; $state=$_POST['escort_state']; $city=$_POST['escort_city']; $desc=addslashes($_POST['adText']); if($_POST['incCharg']=="") { $incharge=""; } else { $incharge='$'.$_POST['incCharg']; } if($_POST['outCharg']=="") { $outcharge=""; } else { $outcharge='$'.$_POST['outCharg']; } $zipcd=$_POST['ad_zip']; if($_SESSION['userlogin']=="true") { $cityid=$_POST['escort_city']; //print_r($date); foreach($cityid as $dt){ if($_FILES['avt_image']['tmp_name']) { $manu_imagename1=time().$_FILES['avt_image']['name']; move_uploaded_file($_FILES['avt_image']['tmp_name'],'avtar/'.$manu_imagename1); } $sql="INSERT INTO temp_postad(id,ad_name,ad_catagory,zip,state_id,city_id,available,incall,outcall,incal_charge,outcall_charge,visiting,address,gfexp,fetish,bdms,age,ethnicity,language,height,weight,eyecolor,haircolor,build,mesurment,cupsize,kitty,pornstar,pregnant,ad_intro,ad_dtls,email_adds,rcv_email,phoneno,website,creaditcard,picture,createdate,status,userid,cat_price) VALUES ('', '".$_POST['nameAd']."','$catagory','$zipcd','$state','$dt','$avl','".$_POST['Incall']."','".$_POST['Outcall']."','$incharge','$outcharge','".$_POST['visiting']."','".$_POST['locDtls']."','".$_POST['GFE']."','$fetish','".$_POST['bdms']."','".$_POST['ageDtls']."','".$_POST['ethniCity']."','".$_POST['lanGuage']."','$higt','".$_POST['weiGht']."','".$_POST['eyeColor']."','".$_POST['hairColor']."','".$_POST['build']."','','".$_POST['cupSize']."','".$_POST['kitty']."','".$_POST['pornStar']."','".$_POST['pregNant']."','".$_POST['introDuction']."','$desc','".$_POST['emailAddress']."','".$_POST['rcvEmail']."','".$_POST['phoneNumber']."','".$_POST['webSite']."','".$_POST['creditcard']."','$manu_imagename1','$date','u','".$_SESSION['userid']."','$catprice')"; execute_query($sql); $id=mysql_insert_id(); $tempid[]=$id; if($_FILES['avt_image1']['tmp_name']) { $manu_imagename11=time().$_FILES['avt_image1']['name']; move_uploaded_file($_FILES['avt_image1']['tmp_name'],'avtar/'.$manu_imagename11); } $sql="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$id','".$_SESSION['userid']."','$manu_imagename11','u')"; execute_query($sql); if($_FILES['avt_image2']['tmp_name']) { $manu_imagename12=time().$_FILES['avt_image2']['name']; move_uploaded_file($_FILES['avt_image2']['tmp_name'],'avtar/'.$manu_imagename12); } $sql="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$id','".$_SESSION['userid']."','$manu_imagename12','u')"; execute_query($sql); if($_FILES['avt_image3']['tmp_name']) { $manu_imagename13=time().$_FILES['avt_image3']['name']; move_uploaded_file($_FILES['avt_image3']['tmp_name'],'avtar/'.$manu_imagename13); } $sql="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$id','".$_SESSION['userid']."','$manu_imagename13','u')"; execute_query($sql); } //print_r($tempid); $_SESSION['ses_tempid']=$tempid; ?> <script language="javascript"> location.href="payment-chkout.php?tempid=<?=$id?>&loginuser=1"; </script> <? } else { $qur="SELECT * FROM user_info WHERE email='".$_POST['emailAddress']."' " ; $res=execute_query($qur); $row=mysql_fetch_array($res); // echo $row['user_status']; $num=mysql_num_rows($res); if($num>0) { $cityid=$_POST['escort_city']; //print_r($date); foreach($cityid as $dt){ if($_FILES['avt_image']['tmp_name']) { $manu_imagename1=time().$_FILES['avt_image']['name']; move_uploaded_file($_FILES['avt_image']['tmp_name'],'avtar/'.$manu_imagename1); } $sql="INSERT INTO temp_postad(id,ad_name,ad_catagory,zip,state_id,city_id,available,incall,outcall,incal_charge,outcall_charge,visiting,address,gfexp,fetish,bdms,age,ethnicity,language,height,weight,eyecolor,haircolor,build,mesurment,cupsize,kitty,pornstar,pregnant,ad_intro,ad_dtls,email_adds,rcv_email,phoneno,website,creaditcard,picture,createdate,status,userid,cat_price) VALUES ('', '".$_POST['nameAd']."','$catagory','$zipcd','$state','$dt','$avl','".$_POST['Incall']."','".$_POST['Outcall']."','$incharge','$outcharge','".$_POST['visiting']."','".$_POST['locDtls']."','".$_POST['GFE']."','$fetish','".$_POST['bdms']."','".$_POST['ageDtls']."','".$_POST['ethniCity']."','".$_POST['lanGuage']."','$higt','".$_POST['weiGht']."','".$_POST['eyeColor']."','".$_POST['hairColor']."','".$_POST['build']."','','".$_POST['cupSize']."','".$_POST['kitty']."','".$_POST['pornStar']."','".$_POST['pregNant']."','".$_POST['introDuction']."','$desc','".$_POST['emailAddress']."','".$_POST['rcvEmail']."','".$_POST['phoneNumber']."','".$_POST['webSite']."','".$_POST['creditcard']."','$manu_imagename1','$date','u','".$row['userid']."','$catprice')"; execute_query($sql); $id=mysql_insert_id(); $tempid[]=$id; if($_FILES['avt_image1']['tmp_name']) { $manu_imagename11=time().$_FILES['avt_image1']['name']; move_uploaded_file($_FILES['avt_image1']['tmp_name'],'avtar/'.$manu_imagename11); } $sql="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$id','".$row['userid']."','$manu_imagename11','u')"; execute_query($sql); if($_FILES['avt_image2']['tmp_name']) { $manu_imagename12=time().$_FILES['avt_image2']['name']; move_uploaded_file($_FILES['avt_image2']['tmp_name'],'avtar/'.$manu_imagename12); } $sql="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$id','".$row['userid']."','$manu_imagename12','u')"; execute_query($sql); if($_FILES['avt_image3']['tmp_name']) { $manu_imagename13=time().$_FILES['avt_image3']['name']; move_uploaded_file($_FILES['avt_image3']['tmp_name'],'avtar/'.$manu_imagename13); } $sql="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$id','".$row['userid']."','$manu_imagename13','u')"; execute_query($sql); } $_SESSION['ses_tempid']=$tempid; ?> <script language="javascript"> location.href="payment-chkout.php?tempid=<?=$id?>®user=1"; </script> <? } else { $cityid=$_POST['escort_city']; //print_r($date); foreach($cityid as $dt){ if($_FILES['avt_image']['tmp_name']) { $manu_imagename1=time().$_FILES['avt_image']['name']; move_uploaded_file($_FILES['avt_image']['tmp_name'],'avtar/'.$manu_imagename1); } $sql="INSERT INTO temp_postad(id,ad_name,ad_catagory,zip,state_id,city_id,available,incall,outcall,incal_charge,outcall_charge,visiting,address,gfexp,fetish,bdms,age,ethnicity,language,height,weight,eyecolor,haircolor,build,mesurment,cupsize,kitty,pornstar,pregnant,ad_intro,ad_dtls,email_adds,rcv_email,phoneno,website,creaditcard,picture,createdate,status,userid,cat_price) VALUES ('', '".$_POST['nameAd']."','$catagory','$zipcd','$state','$dt','$avl','".$_POST['Incall']."','".$_POST['Outcall']."','$incharge','$outcharge','".$_POST['visiting']."','".$_POST['locDtls']."','".$_POST['GFE']."','$fetish','".$_POST['bdms']."','".$_POST['ageDtls']."','".$_POST['ethniCity']."','".$_POST['lanGuage']."','$higt','".$_POST['weiGht']."','".$_POST['eyeColor']."','".$_POST['hairColor']."','".$_POST['build']."','','".$_POST['cupSize']."','".$_POST['kitty']."','".$_POST['pornStar']."','".$_POST['pregNant']."','".$_POST['introDuction']."','$desc','".$_POST['emailAddress']."','".$_POST['rcvEmail']."','".$_POST['phoneNumber']."','".$_POST['webSite']."','".$_POST['creditcard']."','$manu_imagename1','$date','u','0','$catprice')"; execute_query($sql); $id=mysql_insert_id(); $tempid[]=$id; if($_FILES['avt_image1']['tmp_name']) { $manu_imagename11=time().$_FILES['avt_image1']['name']; move_uploaded_file($_FILES['avt_image1']['tmp_name'],'avtar/'.$manu_imagename11); } $sql="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$id','0','$manu_imagename11','u')"; execute_query($sql); if($_FILES['avt_image2']['tmp_name']) { $manu_imagename12=time().$_FILES['avt_image2']['name']; move_uploaded_file($_FILES['avt_image2']['tmp_name'],'avtar/'.$manu_imagename12); } $sql="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$id','0','$manu_imagename12','u')"; execute_query($sql); if($_FILES['avt_image3']['tmp_name']) { $manu_imagename13=time().$_FILES['avt_image3']['name']; move_uploaded_file($_FILES['avt_image3']['tmp_name'],'avtar/'.$manu_imagename13); } $sql="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$id','0','$manu_imagename13','u')"; execute_query($sql); } $_SESSION['ses_tempid']=$tempid; ?> <script language="javascript"> location.href="payment-chkout.php?tempid=<?=$id?>"; </script> <? } } } else { $date=date('Y-m-d'); $avl=""; if($_POST['Men']) { $avl=$_POST['Men'].","; } if($_POST['Women']) { $avl=$avl.$_POST['Women'].","; } if($_POST['Couples']) { $avl=$avl.$_POST['Couples'].","; } $inoutcal=""; if($_POST['Incall']) { $inoutcal=$_POST['Incall'].","; } if($_POST['Outcall']) { $inoutcal=$inoutcal.$_POST['Outcall'].","; } $fetish=""; if($_POST['Dominant']) { $fetish=$_POST['Dominant'].","; } if($_POST['Submissive']) { $fetish=$fetish.$_POST['Submissive'].","; } if($_POST['Switch']) { $fetish=$fetish.$_POST['Switch'].","; } $higt=$_POST['heightFt'].'Ft'.$_POST['height_inches'].'Inc'; $catagory=$_POST['escort_type']; $catprice=$_POST['cat_price']; $state=$_POST['escort_state']; /*$city=$_POST['escort_city'];*/ $desc=addslashes($_POST['adText']); if($_POST['incCharg']=="") { $incharge=""; } else { $incharge='$'.$_POST['incCharg']; } if($_POST['outCharg']=="") { $outcharge=""; } else { $outcharge='$'.$_POST['outCharg']; } $zipcd=$_POST['ad_zip']; if($_SESSION['userlogin']=="true") { $cityid=$_POST['escort_city']; //print_r($date); foreach($cityid as $dt){ if($_FILES['avt_image']['tmp_name']) { $manu_imagename1=time().$_FILES['avt_image']['name']; move_uploaded_file($_FILES['avt_image']['tmp_name'],'avtar/'.$manu_imagename1); } $sql="INSERT INTO post_ad(id,ad_name,ad_catagory,zip,state_id,city_id,available,incall,outcall,incal_charge,outcall_charge,visiting,address,gfexp,fetish,bdms,age,ethnicity,language,height,weight,eyecolor,haircolor,build,mesurment,cupsize,kitty,pornstar,pregnant,ad_intro,ad_dtls,email_adds,rcv_email,phoneno,website,creaditcard,picture,createdate,status,userid,ad_price) VALUES ('', '".$_POST['nameAd']."','$catagory','$zipcd','$state','$dt','$avl','".$_POST['Incall']."','".$_POST['Outcall']."','$incharge','$outcharge','".$_POST['visiting']."','".$_POST['locDtls']."','".$_POST['GFE']."','$fetish','".$_POST['bdms']."','".$_POST['ageDtls']."','".$_POST['ethniCity']."','".$_POST['lanGuage']."','$higt','".$_POST['weiGht']."','".$_POST['eyeColor']."','".$_POST['hairColor']."','".$_POST['build']."','','".$_POST['cupSize']."','".$_POST['kitty']."','".$_POST['pornStar']."','".$_POST['pregNant']."','".$_POST['introDuction']."','$desc','".$_POST['emailAddress']."','".$_POST['rcvEmail']."','".$_POST['phoneNumber']."','".$_POST['webSite']."','".$_POST['creditcard']."','$manu_imagename1','$date','a','".$_SESSION['userid']."','$catprice')"; execute_query($sql); $id=mysql_insert_id(); if($_FILES['avt_image1']['tmp_name']) { $manu_imagename11=time().$_FILES['avt_image1']['name']; move_uploaded_file($_FILES['avt_image1']['tmp_name'],'avtar/'.$manu_imagename11); } $sql="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$id','".$_SESSION['userid']."','$manu_imagename11','a')"; execute_query($sql); if($_FILES['avt_image2']['tmp_name']) { $manu_imagename12=time().$_FILES['avt_image2']['name']; move_uploaded_file($_FILES['avt_image2']['tmp_name'],'avtar/'.$manu_imagename12); } $sql="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$id','".$_SESSION['userid']."','$manu_imagename12','a')"; execute_query($sql); if($_FILES['avt_image3']['tmp_name']) { $manu_imagename13=time().$_FILES['avt_image3']['name']; move_uploaded_file($_FILES['avt_image3']['tmp_name'],'avtar/'.$manu_imagename13); } $sql="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$id','".$_SESSION['userid']."','$manu_imagename13','a')"; execute_query($sql); } ?> <script language="javascript"> location.href="message_show.php"; </script> <? } else { $qur="SELECT * FROM user_info WHERE email='".$_POST['emailAddress']."' " ; $res=execute_query($qur); $row=mysql_fetch_array($res); // echo $row['user_status']; $num=mysql_num_rows($res); if($num>0) { /*$checkbox= $_REQUEST['escort_city']; //from name="checkbox[]" print_r($_REQUEST['escort_city']); $countCheck = count($_POST['escort_city']); for($i=0;$i<$countCheck;$i++) { $del_id = $checkbox[$i]; */ $cityid=$_POST['escort_city']; //print_r($date); foreach($cityid as $dt){ //echo "You City Id " . $dt . "!<br>"; if($_FILES['avt_image']['tmp_name']) { $manu_imagename1=time().$_FILES['avt_image']['name']; move_uploaded_file($_FILES['avt_image']['tmp_name'],'avtar/'.$manu_imagename1); } $sql="INSERT INTO post_ad(id,ad_name,ad_catagory,zip,state_id,city_id,available,incall,outcall,incal_charge,outcall_charge,visiting,address,gfexp,fetish,bdms,age,ethnicity,language,height,weight,eyecolor,haircolor,build,mesurment,cupsize,kitty,pornstar,pregnant,ad_intro,ad_dtls,email_adds,rcv_email,phoneno,website,creaditcard,picture,createdate,status,userid,ad_price) VALUES ('', '".$_POST['nameAd']."','$catagory','$zipcd','$state','$dt','$avl','".$_POST['Incall']."','".$_POST['Outcall']."','$incharge','$outcharge','".$_POST['visiting']."','".$_POST['locDtls']."','".$_POST['GFE']."','$fetish','".$_POST['bdms']."','".$_POST['ageDtls']."','".$_POST['ethniCity']."','".$_POST['lanGuage']."','$higt','".$_POST['weiGht']."','".$_POST['eyeColor']."','".$_POST['hairColor']."','".$_POST['build']."','','".$_POST['cupSize']."','".$_POST['kitty']."','".$_POST['pornStar']."','".$_POST['pregNant']."','".$_POST['introDuction']."','$desc','".$_POST['emailAddress']."','".$_POST['rcvEmail']."','".$_POST['phoneNumber']."','".$_POST['webSite']."','".$_POST['creditcard']."','$manu_imagename1','$date','a','".$row['userid']."','$catprice')"; execute_query($sql); $id=mysql_insert_id(); if($_FILES['avt_image1']['tmp_name']) { $manu_imagename11=time().$_FILES['avt_image1']['name']; move_uploaded_file($_FILES['avt_image1']['tmp_name'],'avtar/'.$manu_imagename11); } $sql="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$id','".$row['userid']."','$manu_imagename11','a')"; execute_query($sql); if($_FILES['avt_image2']['tmp_name']) { $manu_imagename12=time().$_FILES['avt_image2']['name']; move_uploaded_file($_FILES['avt_image2']['tmp_name'],'avtar/'.$manu_imagename12); } $sql="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$id','".$row['userid']."','$manu_imagename12','a')"; execute_query($sql); if($_FILES['avt_image3']['tmp_name']) { $manu_imagename13=time().$_FILES['avt_image3']['name']; move_uploaded_file($_FILES['avt_image3']['tmp_name'],'avtar/'.$manu_imagename13); } $sql="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$id','".$row['userid']."','$manu_imagename13','a')"; execute_query($sql); } ?> <script language="javascript"> location.href="message_show.php"; </script> <? } else { $password=randomPassword(); $sql2="INSERT INTO user_info(userid,username,password,email,pic,status) VALUES ('','','$password','".$_POST['emailAddress']."','','u')"; execute_query($sql2); $userid=mysql_insert_id(); $to=$_POST['emailAddress']; $subject="Your account has been successfully created for AdultRubs.com"; $body="Thank you for register with AdultRubs.com.\r\n Your account has been successfully created.\r\nYour account details:\r\n\r\nUsername:".$_POST['emailAddress']."\r\nPassword:".$password."\r\n\r\nTo active your account please click the link below:http://testsitez.info/abhi-dv/adultrubs/active.php?id=".$userid; sendEmail($to, $subject, $body); // $from="admin@sitesearch.com"; // mail($to, $subject, $body, $from); $cityid=$_POST['escort_city']; //print_r($date); foreach($cityid as $dt){ if($_FILES['avt_image']['tmp_name']) { $manu_imagename1=time().$_FILES['avt_image']['name']; move_uploaded_file($_FILES['avt_image']['tmp_name'],'avtar/'.$manu_imagename1); } $sql="INSERT INTO post_ad(id,ad_name,ad_catagory,zip,state_id,city_id,available,incall,outcall,incal_charge,outcall_charge,visiting,address,gfexp,fetish,bdms,age,ethnicity,language,height,weight,eyecolor,haircolor,build,mesurment,cupsize,kitty,pornstar,pregnant,ad_intro,ad_dtls,email_adds,rcv_email,phoneno,website,creaditcard,picture,createdate,status,userid,ad_price) VALUES ('', '".$_POST['nameAd']."','$catagory','$zipcd','$state','$dt','$avl','".$_POST['Incall']."','".$_POST['Outcall']."','$incharge','$outcharge','".$_POST['visiting']."','".$_POST['locDtls']."','".$_POST['GFE']."','$fetish','".$_POST['bdms']."','".$_POST['ageDtls']."','".$_POST['ethniCity']."','".$_POST['lanGuage']."','$higt','".$_POST['weiGht']."','".$_POST['eyeColor']."','".$_POST['hairColor']."','".$_POST['build']."','','".$_POST['cupSize']."','".$_POST['kitty']."','".$_POST['pornStar']."','".$_POST['pregNant']."','".$_POST['introDuction']."','$desc','".$_POST['emailAddress']."','".$_POST['rcvEmail']."','".$_POST['phoneNumber']."','".$_POST['webSite']."','".$_POST['creditcard']."','$manu_imagename1','$date','a','$userid','$catprice')"; execute_query($sql); $id=mysql_insert_id(); if($_FILES['avt_image1']['tmp_name']) { $manu_imagename11=time().$_FILES['avt_image1']['name']; move_uploaded_file($_FILES['avt_image1']['tmp_name'],'avtar/'.$manu_imagename11); } $sql="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$id','$userid','$manu_imagename11','a')"; execute_query($sql); if($_FILES['avt_image2']['tmp_name']) { $manu_imagename12=time().$_FILES['avt_image2']['name']; move_uploaded_file($_FILES['avt_image2']['tmp_name'],'avtar/'.$manu_imagename12); } $sql="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$id','$userid','$manu_imagename12','a')"; execute_query($sql); if($_FILES['avt_image3']['tmp_name']) { $manu_imagename13=time().$_FILES['avt_image3']['name']; move_uploaded_file($_FILES['avt_image3']['tmp_name'],'avtar/'.$manu_imagename13); } $sql="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$id','$userid','$manu_imagename13','a')"; execute_query($sql); } ?> <script language="javascript"> location.href="message_show2.php"; /*location.href="index.php";*/ </script> <? } } } } ?>