GIF89a;
Direktori : /home/serb/public_html/ |
Current File : /home/serb/public_html/vippayment-process.php |
<? session_start(); ob_start(); include("lib/globals.php"); include("lib/common.php"); include("lib/functions.php"); ?> <? if($_POST) { if(!isset($_POST['estid'])) { header("Location: index.php"); exit; } $sql_postad="select id,ft_ad_expair,status from escort_details where id='".$_POST['estid']."'"; $res_postad=execute_query($sql_postad); $num_postad=mysql_num_rows($res_postad); $row_postad=mysql_fetch_array($res_postad); if($num_postad > 0) { $todaydate=date('Y-m-d'); $exp=$row_postad['ft_ad_expair']; /*if($todaydate<=$exp && $row_postad['status'] == 'a') { header("Location: advertise-vipmember.php"); exit; }*/ } /*$daay=$_POST['bannerprice']; if($daay==90) { $adprice1='33.33'; } else { $adprice1='50'; } $expiry = date("Y-m-d", time() + $daay*24*60*60 );*/ $ftno_ofweek=$_POST['featadPrice']; $sql_adprice1="SELECT * FROM featured_ad_price WHERE no_of_weeks='".$_POST['featadPrice']."'"; $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_update="UPDATE escort_details SET ft_ad_day='$daay',ft_ad_price='$adprice1',updatedate=now() WHERE id='".$_POST['estid']."'"; execute_query($sql_update); $_SESSION['SH_ESCORT_ID'] = $_POST['estid']; header("Location: vip_payment_pay.php"); exit; } header("Location: index.php"); exit; ?>