Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux nl-srv-web1396.main-hosting.eu 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User : u107206879 ( 107206879)
PHP Version : 7.2.34
Disable Function : NONE
Directory :  /home/u107206879/domains/annoncelights.dk/public_html/services_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u107206879/domains/annoncelights.dk/public_html/services_html/boost_pay.php
<?php
	include "../db_connection.php";
	include "../sessioncheck.php";
	
	function friendly_seo_string($vp_string){
	    $vp_string = trim($vp_string);
	    $vp_string = html_entity_decode($vp_string);
	    $vp_string = strip_tags($vp_string);
	    $vp_string = strtolower($vp_string);
	    $vp_string = preg_replace('~[^ a-z0-9_.]~', ' ', $vp_string);
	    $vp_string = preg_replace('~ ~', '-', $vp_string);
	    $vp_string = preg_replace('~-+~', '-', $vp_string);
	    return $vp_string;
	} # friendly_seo_string()
	
	if(!empty($_POST['ad_id']) && !empty($_POST['payment_option'])  && !empty($_POST['boost_id'])){
		$ad_id = $_POST['ad_id'];
		$boost_id = $_POST['boost_id'];
		$payment_option = $_POST['payment_option'];
		
		$boostQry = "SELECT * FROM boost_plan WHERE plan_id='4' and sub_plan_id=".$boost_id;
		$boostResult = mysqli_query($connection,$boostQry);
		$boostRow=mysqli_fetch_array($boostResult);
		$amount = $boostRow['amount'];
		$currency = $boostRow['currency'];
		$days = $boostRow['plan_days'];
		$payment_link = $boostRow['payment_link'];
		
		#Fetch user information
		$mainadqry=mysqli_query($connection,"SELECT id,profile_tile, category_id FROM advertise WHERE em_id=".$_SESSION['id']." AND id=".$ad_id);
		$mainad=mysqli_fetch_array($mainadqry);
		$sendid=$mainad['id'];
		$title=$mainad['profile_tile'];
	 	$usrname = $_SESSION['usrname'];
		$category_id=$mainad['category_id'];

	if($payment_option==1){
			 
	?>
			<form action="" method="POST" id="payment-form">
				<span class="col-md-12 col-xs-12 payment-errors"></span>
				 			 
				<input type="hidden" value="<?php echo $payment_option ?>" id="payment_option" name="payment_option" />
				<input type="hidden" value="<?php echo $ad_id ?>" id="ad_id" name="ad_id" />
				<input type="hidden" value="<?php echo $boost_id ?>" id="boost_id" name="boost_id" />
				
				
				
				<div class="form-group col-md-6 col-sm-6 col-xs-12 mt-10">
					<label for="PaymentAmount">
						Betalingsbeløb
					</label>
					<div class="amount-placeholder">
						<span>
							<?php echo $amount ?>
						</span>
						<span>
							<?php echo $currency ?>
						</span>
					</div>
				</div>
				<div class="form-group col-md-6 col-sm-6 col-xs-12 mt-10">
					<img class="stripe_pay_card" src="<?php echo MAIN_URL ?>/images/stripe.png" />
				</div>
				<div class="form-group col-md-12 col-xs-12">
					<label for="CreditCardNumber">
						Kortnummer
					</label>
					<input type="text" id="CreditCardNumber" class="null card-image form-control" size="20" name="card_num" placeholder="Kortnummer" data-stripe="number" />
				</div>
				<div class="expiry-date-group form-group col-md-6 col-xs-12">
					<label for="ExpiryDate">
						Expiry date (MM/YY)
					</label>
					<div class="row">
						<div class="col-md-6 col-xs-6 exp_grp">
							<input type="text" class="form-control" size="4" name="exp_month" placeholder="MM" data-stripe="exp_month" maxlength="2" />
						</div>
						<div class="col-md-6 col-xs-6 exp_grp">
							<input type="text" class="form-control" size="4" name="exp_year" placeholder="YY" data-stripe="exp_year" maxlength="2" />
						</div>
					</div>
				</div>
				<div class="security-code-group form-group col-md-6 col-xs-12">
					<label for="SecurityCode">
						Sikkerhedskode
					</label>
					<div class="input-container">
						<input type="text" id="SecurityCode" class="form-control" size="4" name="cvc" placeholder="CVC" data-stripe="cvc" />
						
						<i id="cvc" class="fa fa-question-circle"></i>
					</div>
					<div class="cvc-preview-container two-card hide">
						<div class="amex-cvc-preview"></div>
						<div class="visa-mc-dis-cvc-preview"></div>
					</div>
				</div>
				
				<div class="security-code-group form-group col-md-12 col-xs-12">
					<input type="submit" id="PayButton" class="submit btn btn-block btn-success submit-button" value="Køb nu">
				</div>
			</form>
	<?php
		}elseif($payment_option==2){
	
			#Create manual order and email to client for the paypal custom link order
			$txnid = "";	//This will be blank in system.  
			$paydate = date("Y-m-d H:i:s");						
			$payer_email =$_SESSION['email'];
			$plan_id =4;
			$paytbl = "INSERT INTO `payment` (`ad_id`, `payment_type`, `paypal_txn_id`, `plan_type`, `plan_id`, `sub_plan_id`, `rec_amount`, `currency`, `payer_email`, `payer_id`, `payment_date`, `payment_status`, `paypal_payload`) VALUES ('".$ad_id."', 'Paypal', '".$txnid."', 'Boost', '".$plan_id."', '".$boost_id."', '".$amount."', '".$currency."', '".$payer_email."', '', '".$paydate."', 'Pending', 'Paypal by user, waiting from admin to approve trasaction')";
			$payresult=mysqli_query($connection,$paytbl); 
			$order_id = mysqli_insert_id($connection); 
			
			//Send Email to admin regards this
			$to="[email protected]";
			$subject="Paypal boost order for ".$amount." ".$currency;
			$headers='From:'.MAIN_EMAIL_NAME.' <'.MAIN_EMAIL.'>';
			$msg="Paypal boost order request generated\n";			
			$msg.="Order ID:".$order_id."\n";	
			$msg.="Boost ".$days." days\n";	
			$msg.="Payment amount ".$amount." ".$currency."\n";	
			$msg.="Username ".$usrname."\n";	
			if($category_id==5){	 
				$msg.="Below is the link of profile.\n".SUB_URL."/events/".$sendid."/".friendly_seo_string($title);	
			}else{
				$msg.="Below is the link of profile.\n".SUB_URL."/user_detail/".$sendid."/".friendly_seo_string($title);	
			}
			 mail($to,$subject,$msg,$headers);	 	
			?>
			<form action="<?php echo $payment_link ?>" method="get" target="_top" style="text-align: center; padding-top: 0px;">
				 		
				
				<input id="submit_payment_boost" type="image" src="http://www.paypalobjects.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online!" style="margin-top: 10px;width: 200px;">
				<img alt="" border="0" src="http://www.paypalobjects.com/da_DK/i/scr/pixel.gif" width="1" height="1">
			</form>
			
			<!--<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top" style="text-align: center; padding-top: 0px;">
				<input type="hidden" name="cmd" value="_s-xclick">
				<input type="hidden" name="hosted_button_id" value="NP7BNVZ3KLDXY">
				<input type="hidden" value="<?php echo $ad_id ?>" name="custom" />
				<input type="hidden" name="currency_code" value="<?= $currency ?>">				
				
				<input id="submit_payment" type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online!" style="margin-top: 10px;width: 200px;">
				<img alt="" border="0" src="https://www.paypalobjects.com/da_DK/i/scr/pixel.gif" width="1" height="1">
			</form>-->
	<?php
		}elseif($payment_option==3){
	?>
			
			<!-- Added by Shail for Bank Wire -->
			<?php if(isset($_POST['mode']) && trim($_POST['mode'])=="process"): ?>
			<?php			 	 
				$setting = array();
				$sql_setting=mysqli_query($connection,"select * from payment_setting"); 
				while($sql_setting_row=mysqli_fetch_assoc($sql_setting)){
					$setting[$sql_setting_row['setting']]	= $sql_setting_row['value'];
				}							
				
				//Generate the order with status pending
			$txnid = "";	//This will be blank in system.  
			$paydate = date("Y-m-d H:i:s");		
			$payer_email =$_SESSION['email'];
			$plan = "Boost";	
			$plan_id =4;
			$paytbl = "INSERT INTO `payment` (`ad_id`, `payment_type`, `paypal_txn_id`, `plan_type`, `plan_id`, `sub_plan_id`, `rec_amount`, `currency`, `payer_email`, `payer_id`, `payment_date`, `payment_status`, `paypal_payload`) VALUES ('".$ad_id."', 'Bankwire', '".$txnid."', '".$plan."', '".$plan_id."', '".$boost_id."', '".$amount."', '".$currency."', '".$payer_email."', '', '".$paydate."', 'Pending', 'Boost Bankwired by user, waiting from admin to approve trasaction')";
			$payresult=mysqli_query($connection,$paytbl); 
			$order_id = mysqli_insert_id($connection); 
			//Send Email to admin regards this
			$to="[email protected]";
			$subject="Bank Transfer boost order for ".$amount." ".$currency;
			$headers='From:'.MAIN_EMAIL_NAME.' <'.MAIN_EMAIL.'>';
			$msg="Bank Transfer boost order request generated\n";			
			$msg.="Order ID:".$order_id."\n";	
			$msg.="Boost ".$days." days\n";	
			$msg.="Payment amount ".$amount." ".$currency."\n";	
			$msg.="Username ".$usrname."\n";	
			if($category_id==5){	 
				$msg.="Below is the link of profile.\n".SUB_URL."/events/".$sendid."/".friendly_seo_string($title);				
			}else{
				$msg.="Below is the link of profile.\n".SUB_URL."/user_detail/".$sendid."/".friendly_seo_string($title);				
			}
			mail($to,$subject,$msg,$headers);		
			
			//Send email to user regards Banking Information
			if(!empty($payer_email)){
				$to=$payer_email;
				$subject="Oplysninger om betaling af bankoverførsel";
				$headers='From:'.MAIN_EMAIL_NAME.' <'.MAIN_EMAIL.'>';
				$msg= "Kære ".$usrname."\n";
				$msg.="Nedenfor finder du betalingsoplysningerne for at fuldføre din bankoverførsel!\n\n";
				$msg.="VIGTIGT!\n";
				$msg.="Indtast kun Ordre ID i kommentarsektionen med din bank, når du foretager overførslen.\n";
				$msg.="Hvis du ikke inkluderer dette Ordre ID nedenfor, kan vi ikke godkende din overførsel.\n\n";
				$msg.="Ordre ID: ".$order_id."\n";	
				$msg.="Beløb: ".$amount." ".$currency."\n";										
				$msg.="Plan: Boost ".$days." dage\n\n";	
				$msg.="Brug venligst bankoplysningerne nedenfor til at behandle din transaktion.\n\n";	
				$msg.="Kontooplysninger\n";	
				$msg.="".$setting['account_title']."\n";	
				$msg.="IBAN: ".$setting['account_iban']."\n";
				$msg.="BIC/SWIFT: ".$setting['account_swift']."\n\n";
				$msg.="Bankoplysninger\n";
				$msg.="".$setting['bank_title']."\n";
				$msg.="".$setting['bank_address1']."\n";
				$msg.="".$setting['bank_address2']."\n";
				$msg.="".$setting['bank_address3']."\n";
				mail($to,$subject,$msg,$headers);
			}
			?>
 

				<span class="col-xs-12 payment-errors text-center">VIGTIGT!<br>Indtast kun Ordre ID i kommentarsektionen med din bank, når du foretager overførslen.<br>Hvis du ikke inkluderer dette Ordre ID nedenfor, kan vi ikke godkende din overførsel.</span> 

				<div class="form-group col-md-12 col-xs-12 text-center">
				<div class="col-md-6 col-sm-6 col-xs-12 mt-10 text-center">
					 
					<div class="amount-placeholder">
						<span>
							Beløb, der skal overføres
						</span>
						<span>
							<?php echo $amount ?>
						</span>
						<span>
							<?php echo $currency ?>
						</span>
					</div>
				</div>
				<div class="col-md-6 col-sm-6 col-xs-12 mt-10 text-center">
					<h2>Ordre ID # <?php echo $order_id;?></h2>
				</div>
				</div>
				<div class="form-group col-md-12 col-xs-12 text-center">
				 <hr class="hr_lines">
				 </div>
				 
				 
				
				 
				<div class="form-group col-md-12 col-xs-12 text-center">
				 
					        <p class="mb-40 nomargin" >Brug venligst bankoplysningerne nedenfor til at behandle din transaktion.</p>	
							 
							<address>
									<p class="nomargin"><strong>Kontooplysninger</strong></p>
									<p class="nomargin"></p>
									<p class="nomargin"></p>
									<p class="nomargin"><?=$setting['account_title']?></p>
									<p class="nomargin"><strong>IBAN:</strong> <?=$setting['account_iban']?></p>
									<p class="nomargin"><strong>BIC/SWIFT:</strong> <?=$setting['account_swift']?> </p>
								</address>
								<hr class="hr_lines">								 
								<address>
									<p class="nomargin"><strong>Bankoplysninger</strong></p>
									<p class="nomargin"><?=$setting['bank_title']?></p>
									<p class="nomargin"><?=$setting['bank_address1']?></p>
									<p class="nomargin"><?=$setting['bank_address2']?></p>
									<p class="nomargin"><?=$setting['bank_address3']?></p>
								</address>
							
				</div>
				<div class="form-group col-md-12 col-xs-12 text-center">
				<div class="col-md-6 col-sm-6 col-xs-12 mt-10 text-center">
					 
					<div class="amount-placeholder">
						<span>
							Beløb, der skal overføres
						</span>
						<span>
							<?php echo $amount ?>
						</span>
						<span>
							<?php echo $currency ?>
						</span>
					</div>
				</div>
				<div class="col-md-6 col-sm-6 col-xs-12 mt-10 text-center">
					<h2>Ordre ID # <?php echo $order_id;?></h2>
				</div>
				</div>
				<span class="col-xs-12 payment-errors text-center">VIGTIGT!<br>Indtast kun Ordre ID i kommentarsektionen med din bank, når du foretager overførslen.<br>Hvis du ikke inkluderer dette Order ID ovenfor, kan vi ikke godkende din overførsel.</span>
			<?php else: ?>
				<form action="" method="POST" id="payment-form">
				
								
				
				<input type="hidden" value="<?php echo $payment_option ?>" id="payment_option" name="payment_option" />
				<input type="hidden" value="<?php echo $ad_id ?>" id="ad_id" name="ad_id" />
				<input type="hidden" value="<?php echo $boost_id ?>" id="boost_id" name="boost_id" />
				
				<div class="form-group col-md-6 col-sm-6 col-xs-12 mt-10">
					<label for="PaymentAmount">
						BELØB AT OVERFØRE
					</label>
					<div class="amount-placeholder">
						<span>
							<?php echo $amount ?>
						</span>
						<span>
							<?php echo $currency ?>
						</span>
					</div>
				</div>
				<div class="form-group col-md-6 col-sm-6 col-xs-12 mt-10">
					<img class="stripe_pay_card" src="<?php echo MAIN_URL ?>/images/bank_transfer-512.png" />
				</div>
				<div class="form-group col-md-12 col-xs-12">
					 <p>Bankoverførsel (Tager 1-3 arbejdsdage) Konto til konto, fra din bank til vores bank. Brug denne mulighed, hvis du ønsker at overføre penge til os fra din egen bankkonto ved hjælp af SWIFT og IBAN. </p>
					 
					 <p class="text-danger">For at betale via bankoverførsel skal du overføre penge manuelt. Klik på Betal Nu for at placere ordren og se vores bankoplysninger.</p>
					 
				</div>
				 
				 
				
				<div class="security-code-group form-group col-md-12 col-xs-12">
					<!--<input type="submit" id="PayButton" class="submit btn btn-block btn-success submit-button" value="Betal Nu">-->
					
					<button type="button" id="btn_finishing_boost" class="submit btn btn-block btn-success step step-4" data-step="4" onclick="sendEvent('#boostModal', 5)">Betal Nu</button>
					
					 
					
					
				</div>
				
				
			</form>			
			<?php endif ;?>			
			
		<?php 
		}elseif($payment_option==4){
		?>
		
		<?php		
		}
	}
?>

Al-HUWAITI Shell