GIF89a;
Direktori : /home/serb/public_html/m/ |
Current File : /home/serb/public_html/m/payment-chkout-agency.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) { $date=date('Y-m-d'); $sql_rtvdata="select * from temp_postad where id='".$_POST['tempid']."'"; $res_rtvdata=execute_query($sql_rtvdata); $row_rtvdata=mysql_fetch_array($res_rtvdata); $desc=addslashes($row_rtvdata['description']); $ftno_ofweek=$row_rtvdata['ft_ad_day']; $sql_adprice1="SELECT * FROM featured_ad_price WHERE no_of_weeks='$ftno_ofweek'"; $res_adprice1=execute_query($sql_adprice1); $row_adprice1=mysql_fetch_array($res_adprice1); $adprice1=$row_adprice1['ad_price']; $ftadstatus='Yes'; $no_ofday=explode(' ',$ftno_ofweek); $daay=$no_ofday[0] * 7; $expiry = date("Y-m-d", time() + $daay*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, 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,viver,whatsapps,instruction, hidden_phone, pornstar, pornstar_name, bdms, partner, incall, outcall, massage, description, creation_date, status,updatedate,ft_ad_day,ft_ad_price,ft_ad_expair,ft_ad_status,travel_area,dob,dob_month) VALUES ('','".$_SESSION['userid']."','".$_SESSION['acctype']."', '".$row_rtvdata['nickname']."','".$row_rtvdata['slogan']."','".$row_rtvdata['website']."', '".$row_rtvdata['skype']."', '".$row_rtvdata['email']."', '".$row_rtvdata['update_email']."','', '".$row_rtvdata['escort_state']."', '".$row_rtvdata['escort_city']."', '".$row_rtvdata['country_name']."', '".$row_rtvdata['gender']."', '".$row_rtvdata['travel']."','".$row_rtvdata['couples']."', '".$row_rtvdata['age']."', '".$row_rtvdata['ethencity']."', '".$row_rtvdata['orientation']."', '".$row_rtvdata['duos']."', '".$row_rtvdata['nationality']."', '".$row_rtvdata['shaved']."', '".$row_rtvdata['language']."', '".$row_rtvdata['height']."', '".$row_rtvdata['weight']."', '".$row_rtvdata['tits']."', '".$row_rtvdata['pussy']."', '".$row_rtvdata['eye_color']."', '".$row_rtvdata['hair_color']."', '".$row_rtvdata['meeting_men']."', '".$row_rtvdata['meeting_wm']."', '".$row_rtvdata['meeting_cup']."', '".$row_rtvdata['meeting_trans']."', '".$row_rtvdata['meeting_gays']."', '".$row_rtvdata['meeting_two']."', '".$row_rtvdata['tel_national']."', '".$row_rtvdata['tel_inter']."', '".$row_rtvdata['update_tele']."', '','', '".$row_rtvdata['instruction']."', '".$row_rtvdata['hidden_phone']."', '".$row_rtvdata['pornstar']."', '".$row_rtvdata['pornstar_name']."', '".$row_rtvdata['bdms']."', '".$row_rtvdata['partner']."', '".$row_rtvdata['incall']."', '".$row_rtvdata['outcall']."', '".$row_rtvdata['massage']."', '$desc', '$date', 'u','','".$row_rtvdata['ft_ad_day']."','$adprice1','$expiry','Yes','".$row_rtvdata['travel_area']."','".$row_rtvdata['dob']."','".$row_rtvdata['dob_month']."')"; $ind_res=execute_query($sql_ind_escort); $pid=mysql_insert_id(); $sql_q="INSERT INTO escort_photo(id,postid,userid,picture)VALUES('','$pid','".$_SESSION['userid']."','".$row_rtvdata['image1']."')"; execute_query($sql_q); $sql_q2="INSERT INTO escort_photo(id,postid,userid,picture)VALUES('','$pid','".$_SESSION['userid']."','".$row_rtvdata['image2']."')"; execute_query($sql_q2); $sql_q3="INSERT INTO escort_photo(id,postid,userid,picture)VALUES('','$pid','".$_SESSION['userid']."','".$row_rtvdata['image3']."')"; execute_query($sql_q3); $sql_q4="INSERT INTO escort_photo(id,postid,userid,picture)VALUES('','$pid','".$_SESSION['userid']."','".$row_rtvdata['image4']."')"; 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:".$row_rtvdata['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"; sendEmail($to, $subject, $body); // mail($to, $subject, $body, $headers); $_SESSION['reg_username']=""; $_SESSION['reg_email']=""; $_SESSION['reg_pass']=""; $_SESSION['reg_acctype']=""; //$sql_email="SELECT * FROM user_info WHERE userid='".$row_rtvdata['user_id']."'"; //$res_email=execute_query($sql_email); //$row_email=mysql_fetch_array($res_email); $totalammount=$daay * $adprice1; $adds=addslashes($_POST['billingAddrs']); $plain_txt = $_POST['cardNumber']; //$encrypted_txt = encrypt_decrypt('encrypt', $plain_txt); $encrypted_txt =base64_encode($plain_txt); $expdate=$_POST['expMonth'].'/'.$_POST['year']; $inser_pyment="INSERT into payment_dtls(id,post_id,fname,email,address,exp_date,creditcard_no,cvc_code,amount,status)Values('','$pid','".$_POST['userName']."','".$_POST['emailAddrs']."','$adds','$expdate','$encrypted_txt','".$_POST['cvvcode']."','$totalammount','u')"; execute_query($inser_pyment); $sql_delete="DELETE from temp_postad where id='".$_POST['tempid']."'"; execute_query($sql_delete); $loc="thankyou.php?msg=success"; ?> <script language="javascript"> location.href="<?=$loc?>"; </script> <? } ?> <? include "includes/header_top.php";?> <body> <? include "includes/header.php";?> <div class="main_bg"> <div style="height:32px;"></div> <div style="width:1000px; margin:0 auto;"> <div class="statedetails"> <div class="stdtls_header"> PAYMENT CHECKOUT </div> <div class="stdtls_midder"> <div style=" width:990px; margin:0 auto;"> <form action="<?=$_SERVER['PHP_SELF']?>" method="post" name="f1" style="margin: 0px; padding: 0px;" enctype="multipart/form-data" onSubmit="return validate();"> <input name="submit_form" value="1" type="hidden"> <table border="0" cellpadding="0" cellspacing="6" style="width:650px; margin:0 auto; margin-top:15px;"> <tr> <td colspan="3" class="naote_style"> Payment Details : You are paying for a FULL ACCESS REGISTERED MEMBERSHIP. </td> </tr> <tr> <td class="jointext222">Screen Name :</td> <td style="text-align:left;"><input name="userName" id="username" class="main_input" type="text"></td> <td></td> </tr> <tr> <td class="jointext222">Your Email address :</td> <td style="text-align:left;"><input name="emailAddrs" id="email" class="main_input" type="text"><br/> </td> <td></td> </tr> <tr height="10"> <td></td> <td></td> <td></td> </tr> <tr> <td class="jointext222">Name On Card :</td> <td style="text-align:left;"><input name="cardName" id="cardname" class="main_input" type="text"></td> <td></td> </tr> <tr> <td class="jointext222">Card Number :</td> <td style="text-align:left;"><input name="cardNumber" id="cardNumber" class="main_input" type="text"></td> <td></td> </tr> <tr> <td class="jointext222">Full Billing Address :<br/>(Street name, city, State, Zipcode)</td> <td style="text-align:left;"><textarea name="billingAddrs" class="main_input" style="width:250px; height:150px;"></textarea></td> <td></td> </tr> <tr> <td class="jointext222"> Expiration Date :</td> <td style="text-align:left;"> <select name="expMonth" class="drp_img3" style="width:80px;"> <option value="">Month</option> <option value="January">1: Jan</option> <option value="February">2: Feb</option> <option value="March">3: Mar</option> <option value="April">4: Apr</option> <option value="May">5: May</option> <option value="June">6: Jun</option> <option value="July">7: Jul</option> <option value="August">8: Aug</option> <option value="September">9: Sep</option> <option value="October">10: Oct</option> <option value="November">11: Nov</option> <option value="December">12: Dec</option> </select> <span style="color:#fff;"> Year</span> <select name="year" class="drp_img3" style="width:80px;"> <option value="">Year</option> <? for($i=2014; $i<=2040; $i++){ ?> <option value="<?=$i?>"><?=$i?></option> <? }?> </select> </td> <td></td> </tr> <tr> <td class="jointext222">CVV2/CVC2 :</td> <td style="text-align:left;"><input name="cvvcode" id="cvvcode" class="main_input" type="text"></td> <td></td> </tr> <tr> <td></td> <td> <input src="images/submit.png" type="image" style="margin-left:20px;"/> <input type="hidden" name="tempid" value="<?=$_GET['tempid']?>" /> </td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> </tr> </table> </form> </div> </div> <div class="stdtls_footer"></div> </div> <br class="spacer" /> </div> <br/> </div> <? include "includes/footer.php";?>