GIF89a;
Direktori : /home/serb/www/ |
Current File : /home/serb/www/ad-bannerprocess.php |
<? session_start(); ob_start(); include("lib/globals.php"); include("lib/common.php"); include("lib/functions.php"); ?> <? if($_POST) { $daay=$_POST['bannerprice']; if($daay==90) { $adprice1='$100'; } else { $adprice1='$50'; } $expiry = date("Y-m-d", time() + $daay*24*60*60 ); //$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']; if($_FILES['avt_image']['tmp_name']) { $manu_imagename1=time().$_FILES['avt_image']['name']; move_uploaded_file($_FILES['avt_image']['tmp_name'],'banner/'.$manu_imagename1); } $inser_pyment="INSERT into advertise_banner(banner_id,userid,fname,lname,targetcountry,address,city,zip,country,bannerimage,website,expairday,bannerprice,cardno,cardexpairy,cvc,status)Values('','".$_SESSION['userid']."','".$_POST['fname']."','".$_POST['lname']."','".$_POST['target_country']."','".$_POST['address']."','".$_POST['city']."','".$_POST['zipcode']."','".$_POST['visitor_country']."','".$manu_imagename1."','".$_POST['weblink']."','$expiry','$adprice1','$encrypted_txt','$expdate','".$_POST['cvvcode']."','u')"; execute_query($inser_pyment); $_SESSION['SH_AD_ID'] = mysql_insert_id(); header("Location:ad_pay.php"); exit; /*?> <script language="javascript"> location.href="advertise-banner.php?msg=1"; </script> <?*/ } ?>