GIF89a;
Direktori : /home/serb/www/ |
Current File : /home/serb/www/payment-chkout.php |
<? session_start(); ob_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 } ?> <? $temp_postad_query = "SELECT ft_ad_day,is_flash,ad_total_amount,ad_type FROM temp_postad WHERE id = '".$_SESSION['SH_ESCORT_ID']."'"; $temp_postad_result = execute_query($temp_postad_query); $temp_postad_row = mysql_fetch_array($temp_postad_result); $adprice1=$temp_postad_row['ad_total_amount']; /*$sql_adprice1="SELECT * FROM featured_ad_price WHERE no_of_weeks='".$temp_postad_row['ft_ad_day']."'"; $res_adprice1=execute_query($sql_adprice1); $row_adprice1=mysql_fetch_array($res_adprice1); $adprice1=$row_adprice1['ad_price'];*/ if(isset($_POST)) { if($_POST['submit_pay'] == "PAY NOW") { header("Location: payment_checkout_pay.php?gateway=cnp"); exit; } if($_POST['submit_pay_via_bitcoin'] == "PAY VIA BITCOIN") { header("Location: payment_checkout_pay.php?gateway=btc"); exit; } } ?> <? 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; line-height:35px;"> <tr> <td colspan="3" class="naote_style" style="padding-top:15px;"> Payment Details : You are paying for <?=$temp_postad_row['ft_ad_day']?> FEATURED AD. </td> </tr> <tr> <td colspan="3" class="naote_style"> You have selected :<br> <!--$<?php echo $featured_ad_day_price_array[$temp_postad_row['ft_ad_day']];?> for <?php echo $temp_postad_row['ft_ad_day'];?> days--> $<? echo $adprice1;?> for <?=$temp_postad_row['ad_type']?> </td> </tr> <tr> <td></td> <td style="padding-bottom:15px;"> <input type="submit" name="submit_pay" value="PAY NOW" style="background:linear-gradient(to bottom, #EA689A 0%, #9E315A 100%) repeat scroll 0 0 rgba(0, 0, 0, 0); border:1px solid #9E315A; border-radius:5px; line-height:35px; font-size:20px; color:#FFFFFF; font-family:arial narrow; padding:0 10px; font-weight:bold; cursor:pointer;"/> OR <input type="submit" name="submit_pay_via_bitcoin" value="PAY VIA BITCOIN" style="background:linear-gradient(to bottom, #EA689A 0%, #9E315A 100%) repeat scroll 0 0 rgba(0, 0, 0, 0); border:1px solid #9E315A; border-radius:5px; line-height:35px; font-size:20px; color:#FFFFFF; font-family:arial narrow; padding:0 10px; font-weight:bold; cursor:pointer;"/> </td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> </tr> <tr> <td colspan="3"><strong>Note:</strong> Please read following instruction to pay using coinbase bitcoin. <ul> <li style="color:#ae3c68;">You can pay either using Coinbase Wallet or using Coinbase Account via Bitcoin Address.</li> <li><strong>To pay using Bitcoin Address:</strong> <ol> <li>Make sure that your browser supports bitcoin payment urls.</li> <li>To enable bitcoin payment urls support to your browser <a href="https://support.coinbase.com/customer/portal/articles/1462746-how-do-i-set-up-coinbase-to-handle-bitcoin-payment-urls-" target="_blank">click here.</a></li> </ol> </li> <li><strong>To pay using Coinbase Wallet</strong> <ol> <li>Move to "Use Coinbase wallet" Tab.</li> <li>Login to your coinbase account.</li> <li>And pay using your coinbase wallet.</li> </ol> </li> </ul> </td> </tr> </table> </form> </div> </div> <div class="stdtls_footer"></div> </div> <br class="spacer" /> </div> <br/> </div> <? include "includes/footer.php";?>