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/solarboardlimited.com/public_html/ |
<?php session_start();
$page_name = basename($_SERVER['PHP_SELF']);
include("header.php"); ?>
<?php $title = "Details"; ?>
<?php
if (isset($_GET['u'])){
$unique_id = mysqli_real_escape_string($con,$_GET['u']);
$title = mysqli_real_escape_string($con,$_GET['title']);
if($title !== "services" AND $title !== "projects"){
echo "<meta http-equiv=\"refresh\" content=\"0; url=index.php\">";exit();
}
if($title == "services"){$page_header = "services_header.jpg";}
if($title == "projects"){$page_header = "projects_header.jpg";}
$stmt = $con -> prepare("SELECT * FROM $title WHERE unique_id=?");
$stmt -> bind_param('s',$unique_id);
$stmt -> execute();
$stmt -> store_result();
$stmt -> bind_result($id,$u_id,$heading,$preamble,$body,$picture,$picture2,$picture3,$picture4);
$numrows = $stmt -> num_rows();
if($numrows > 0){
while ($stmt -> fetch()) { }
}
else{echo "<meta http-equiv=\"refresh\" content=\"0; url=index.php\">";exit();}
}
else{echo "<meta http-equiv=\"refresh\" content=\"0; url=index.php\">";exit();}
?>
<title><?php echo $company_name; ?> - <?php echo $heading ?></title>
<?php $page_title = $heading; ?>
<?php include("page_header.php"); ?>
<!-- portfolio single -->
<div class="portfolio-single py-120">
<div class="container">
<div class="portfolio-single-wrap">
<div class="row justify-content-center">
<div class="col-xl-8 col-lg-8">
<h3 class="mb-20"><?php echo $heading ?></h3>
<p class="mb-20"><?php echo $body; ?></p>
</div>
</div> <!-- Service Entry Content End -->
<br><br>
<div class="row justify-content-center">
<?php if($picture2 !==""){ ?>
<div class="col-4">
<img src="site_img/<?php echo $title; ?>/<?php echo $picture2 ?>" alt="">
</div>
<?php } ?>
<?php if($picture3 !==""){ ?>
<div class="col-4">
<img src="site_img/<?php echo $title; ?>/<?php echo $picture3 ?>" alt="">
</div>
<?php } ?>
<?php if($picture4 !==""){ ?>
<div class="col-4">
<img src="site_img/<?php echo $title; ?>/<?php echo $picture4 ?>" alt="">
</div>
<?php } ?>
</div></div></div></div>
</main>
<?php include("footer.php"); ?>