GIF89a;
Direktori : /home/serb/public_html/ |
Current File : /home/serb/public_html/=payment-chkout.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) { if( $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) ) { $date=date('Y-m-d'); $sql_rtvdata="select * from temp_postad where id='".$_GET['tempid']."'"; $res_rtvdata=execute_query($sql_rtvdata); $row_rtvdata=mysql_fetch_array($res_rtvdata); $desc=addslashes($row_rtvdata['ad_dtls']); $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="insert into escort_details (id,user_id,user_name_screen,name,category,website, allow_email, address, escort_state, escort_city, service_type, travel,couples, friendly, Showers, drinks, age, ethencity, experience, orientation, duos, submission, dominition, shaved, smoking, language, height, weight, body_type, bust, cup, waist, hips, eye_color, hair_color, hair_style, tel_national,tel_international,description, faviorit, thirty_in, thirty_out, thirty_currency, onehr_in, onehr_out, onehr_currency, twohr_in, twohr_out, twohr_currency, three_in, three_out, three_currency, four_in, four_out, four_currency, dinner_in, dinner_out, dinner_currency, overnight_in, overnight_out, overnight_currency, creation_date, image1, image2, image3, image4,verify_image, status, updatedate,no_of_hit,hit_date, ft_ad_day, ft_ad_price, ft_ad_expair, ft_ad_status) VALUES ('','".$row_rtvdata['user_id']."', '".$row_rtvdata['user_name_screen']."','".$row_rtvdata['name']."', '".$row_rtvdata['category']."', '".$row_rtvdata['website']."', '".$row_rtvdata['allow_email']."', '".$row_rtvdata['address']."', '".$row_rtvdata['escort_state']."', '".$row_rtvdata['escort_city']."', '".$row_rtvdata['service_type']."', '".$row_rtvdata['travel']."','".$row_rtvdata['couples']."', '".$row_rtvdata['friendly']."', '".$row_rtvdata['Showers']."', '".$row_rtvdata['drinks']."', '".$row_rtvdata['age']."', '".$row_rtvdata['ethencity']."', '".$row_rtvdata['experience']."', '".$row_rtvdata['orientation']."', '".$row_rtvdata['duos']."', '".$row_rtvdata['submission']."', '".$row_rtvdata['dominition']."', '".$row_rtvdata['shaved']."', '".$row_rtvdata['smoking']."', '".$row_rtvdata['language']."', '".$row_rtvdata['height']."', '".$row_rtvdata['weight']."', '".$row_rtvdata['body_type']."', '".$row_rtvdata['bust']."', '".$row_rtvdata['cup']."', '".$row_rtvdata['waist']."', '".$row_rtvdata['hips']."', '".$row_rtvdata['eye_color']."', '".$row_rtvdata['hair_color']."', '".$row_rtvdata['hair_style']."', '".$row_rtvdata['tel_national']."', '".$row_rtvdata['tel_international']."', '".addslashes($row_rtvdata['description'])."', '".addslashes($row_rtvdata['faviorit'])."', '".$row_rtvdata['thirty_in']."', '".$row_rtvdata['thirty_out']."', '".$row_rtvdata['thirty_currency']."', '".$row_rtvdata['onehr_in']."', '".$row_rtvdata['onehr_out']."', '".$row_rtvdata['onehr_currency']."', '".$row_rtvdata['twohr_in']."', '".$row_rtvdata['twohr_out']."', '".$row_rtvdata['twohr_currency']."', '".$row_rtvdata['three_in']."', '".$row_rtvdata['three_out']."', '".$row_rtvdata['three_currency']."', '".$row_rtvdata['four_in']."', '".$row_rtvdata['four_out']."', '".$row_rtvdata['four_currency']."', '".$row_rtvdata['dinner_in']."', '".$row_rtvdata['dinner_out']."', '".$row_rtvdata['dinner_currency']."', '".$row_rtvdata['overnight_in']."', '".$row_rtvdata['overnight_out']."', '".$row_rtvdata['overnight_currency']."', '$date', '".$row_rtvdata['image1']."', '".$row_rtvdata['image2']."', '".$row_rtvdata['image3']."', '".$row_rtvdata['image4']."','".$row_rtvdata['verify_image']."','u','','','','".$row_rtvdata['ft_ad_day']."','$adprice1','$expiry','$ftadstatus')"; execute_query($sql); $id=mysql_insert_id(); $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); $plain_txt = $_POST['cridNo']; //$encrypted_txt = encrypt_decrypt('encrypt', $plain_txt); $encrypted_txt =base64_encode($plain_txt); $expdate=$_POST['expMonth'].'/'.$_POST['year']; $sql="INSERT INTO payment_dtls(id,post_id,fname,lname,email,address,zipcode,city,state,exp_date,creditcard_no,cvc_code,amount,status) VALUES ('','$id','".$_POST['fName']."','".$_POST['lstName']."','".$row_email['email']."','".$_POST['locDtls']."','".$_POST['zipCode']."','".$_POST['city']."','".$_POST['state']."','$expdate','$encrypted_txt','".$_POST['scCode']."','$adprice1','u')"; execute_query($sql); $sql_delete="DELETE from temp_postad where id='".$_GET['tempid']."'"; execute_query($sql_delete); $sql_retrivetime="SELECT * FROM temp_timetable WHERE timeid='".$_GET['tempid']."'"; $res_retrivetime=execute_query($sql_retrivetime); $row_esttimetable=mysql_fetch_array($res_retrivetime); $sql_escorttimetable="INSERT INTO escort_timetable(id,user_id,monday,tuesday,wednesday,thursday,friday,satarday,sunday)VALUES('','".$row_esttimetable['user_id']."','".$row_esttimetable['monday']."','".$row_esttimetable['tuesday']."','".$row_esttimetable['wednesday']."','".$row_esttimetable['thursday']."','".$row_esttimetable['friday']."','".$row_esttimetable['satarday']."','".$row_esttimetable['sunday']."')"; execute_query($sql_escorttimetable); $sql_dlttime="DELETE from temp_timetable where timeid='".$_GET['tempid']."'"; execute_query($sql_dlttime); unset($_SESSION['ses_tempid']); unset($_SESSION['security_code']); ?> <script language="javascript"> /*alert("Your ad has been posted, and will be viewable soon.");*/ location.href="my-account.php"; </script> <? } else { unset($_SESSION['security_code']);?> <script language="javascript"> alert("Sorry, you have provided an invalid security code"); location.href="payment-chkout.php?tempid=<?=$_GET['tempid']?>"; </script> <? } } ?> <? include "includes/header_top.php";?> <script language="javascript"> function validate() { if(document.f22.fName.value=="") { alert("Enter your First Name"); document.f22.fName.focus(); return false; } if(document.f22.lstName.value=="") { alert("Enter your Last Name"); document.f22.lstName.focus(); return false; } if(document.f22.locDtls.value=="") { alert("Enter your Address"); document.f22.locDtls.focus(); return false; } if(document.f22.zipCode.value=="") { alert("Enter your Zip Code"); document.f22.zipCode.focus(); return false; } if(document.f22.city.value=="") { alert("Enter Your City."); document.f22.city.focus(); return false; } if(document.f22.state.value=="") { alert("Enter Your State."); document.f22.state.focus(); return false; } if(document.f22.cridNo.value=="") { alert("Enter Your Creadit Card No."); document.f22.cridNo.focus(); return false; } if(document.f22.expMonth.value=="") { alert("Enter Your Expairy Month."); document.f22.expMonth.focus(); return false; } if(document.f22.year.value=="") { alert("Enter Your Expiry Year."); document.f22.year.focus(); return false; } if(document.f22.scCode.value=="") { alert("Enter Your CVC Code."); document.f22.scCode.focus(); return false; } if(document.f22.security_code.value=="") { alert("Enter Security Code"); document.f1.security_code.focus(); return false; } } </script> <body> <? include "includes/header.php";?> <div class="main_bg"> <div class="hrd_ftmenu"> </div> <div style="height:32px;"></div> <div style="width:1000px; margin:0 auto;"> <div class="menuleft_contain"> <? include "includes/acount_leftcontent.php";?> </div> <div class="acountright_contain"> <? $sql="SELECT * FROM user_info WHERE userid='".$_SESSION['userid']."'"; $res=execute_query($sql); $row=mysql_fetch_array($res); $num=mysql_num_rows($res); ?> <div class="acccmid1_header">PAYMENT CHECKOUT </div> <div class="accountrightct_mid"> <div class="small_space"></div> <div class="profile_data"> <form action="<?=$_SERVER['PHP_SELF'] ?>?tempid=<?=$_GET['tempid']?>" enctype="multipart/form-data" method="post" name="f22" style="padding: 5px;" 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="text_fnt">Secure Checkout<br/><img src="images/post_ad_divider.png"/></td> </tr> <tr> <td class="jointext222"> First Name :</td> <td><input name="fName" id="fname" class="main_input3333" type="text"></td> <td></td> </tr> <tr> <td class="jointext222"> Last Name :</td> <td><input name="lstName" id="lname" class="main_input3333" type="text"></td> <td></td> </tr> <tr> <td class="jointext222"> Address :</td> <td><input name="locDtls" id="locdtls" class="main_input3333" type="text"></td> <td></td> </tr> <tr> <td class="jointext222"> Zip/Postal Code :</td> <td><input name="zipCode" id="zipcode" class="main_input3333" type="text"></td> <td></td> </tr> <tr> <td class="jointext222"> City :</td> <td><input name="city" id="city" class="main_input3333" type="text"></td> <td></td> </tr> <tr> <td class="jointext222"> State :</td> <td><input name="state" id="state" class="main_input3333" type="text"></td> <td></td> </tr> <tr> <td class="jointext222"> Credit Card Number :</td> <td><input name="cridNo" id="criedno" class="main_input3333" type="text"><p><img src="images/Credit_card_logos.png" /></p></td> <td></td> </tr> <tr> <td class="jointext222"> Expiration Date :</td> <td> <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> Year <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"> Security Code(CVC2) :</td> <td><input name="scCode" id="sccode" class="main_input3333" type="text"></td> <td></td> </tr> <tr> <td class="jointext222"> Security Image :</td> <td><img src="CaptchaSecurityImages.php?width=100&height=40&characters=5" /><br/> <input id="security_code" name="security_code" class="main_input3333" type="text" /><br/> <span> Letters are not case-sensitive </span> </td> <td></td> </tr> <tr> <td></td> <td> <input type="hidden" name="escort_type" value="<?=$_POST['type'] ?>"> <input type="hidden" name="escort_state" value="<?=$_POST['escort_state'] ?>"> <input type="hidden" name="escort_city" value="<?=$_POST['escort_city'] ?>"> <input src="images/agree_btn.png" type="image" height="32" style="margin-left:20px;"/> </td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> </tr> </table> </form> <br class="spacer" /> </div> <br class="spacer" /> </div> </div> <br class="spacer" /> </div> <br/> </div> <? include "includes/footer.php";?>