~ K A L I ~
UNAME : Linux web63.extendcp.co.uk 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64SERVER IP : 10.0.187.63 -________-
CLIENT IP : 216.73.216.59 MINI SHELL D ZAB '
Current File : /home/sites/blackstoneaccountants.co.uk/public_html/blog.php |
<?php
require_once('includes/connection.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Blackstone | Blogs</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Blogs">
<meta name="keywords" content="Blogs">
<meta name="author" content="Phoenix Developers & Designers">
<link href="images/icon.png" rel="icon">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/style.css">
<style>
.navbar-dark .navbar-nav .nav-link.blog{
color:#bd2130 !important;
font-weight: 700;
}
</style>
</head>
<body>
<?php require_once('includes/top-bar.php');?>
<div class="container-fluid header blog">
<div class="row header-row">
<div class="col-md-12 mt-5 pt-5 text-center text-light">
<h1>Blogs</h1>
</div>
</div>
<div class="row menu-bar m-0">
<?php require_once('includes/navbar.php')?>
</div>
</div>
<div class="container-fluid mt-5">
<div class="row about-us-section pb-5 mb-5">
<div class="container">
<div class="row">
<div class="col-md-8">
<div class="row blog-cards">
<div class="col-md-12 blog-card">
<?php
$res=mysqli_query($conn,"select * from blog order by id desc");
if(mysqli_num_rows($res) > 0){
while($row=mysqli_fetch_array($res)){
?>
<a href="blog-post.php?post-id=<?php echo $row['id'];?>" class="text-decoration-none">
<div class="row">
<div class="col-md-4">
<img src="images/post-images/<?php echo $row['image'];?>" title="<?php echo $row['title'];?>" alt="<?php echo $row['title'];?>" >
</div>
<div class="col-md-8">
<h3><?php echo substr(strip_tags(str_replace('>', '> ',$row['title'])),0,50);?></h3>
<p class="date text-danger"><span><b>Blackstone</b></span> - <span><?php echo date('F d, Y',strtotime($row['date_time']));?></span></p>
<p><?php echo substr(strip_tags(str_replace('>', '> ',$row['description'])),0,100).".....";?></p>
</div>
</div>
</a>
<?php
}
}
else{
echo"<h3>There is No Blog Post Yet</h3>";
}
?>
</div>
</div>
</div>
<div class="col-md-4 news-feed">
<div class="row">
<?php require_once 'includes/feed.php'; $rss = Feed::loadRss('http://feeds.bbci.co.uk/news/business/rss.xml?edition=uk'); ?>
<div class="col-md-12 text-light news-head">
<h3 class="bg-danger"><span><?php echo htmlSpecialChars($rss->title) ?></span></h3>
</div>
<div class="col-md-12 news-item">
<ul>
<?php foreach ($rss->item as $item): ?>
<li>
<a href="<?php echo htmlSpecialChars($item->link) ?>" target="_blank"><?php echo htmlSpecialChars($item->title) ?></a>
<p><?php echo date("F d,Y", (int) $item->timestamp).' at '.date("h:i a", (int) $item->timestamp) ?></p>
</li>
<?php endforeach ?>
</ul>
</div>
</div>
<div class="row mt-5">
<?php require_once 'includes/feed.php'; $rss = $atom = Feed::loadAtom('https://www.gov.uk/government/organisations/hm-revenue-customs.atom'); ?>
<div class="col-md-12 text-light news-head">
<h3 class="bg-danger"><span><?php echo htmlSpecialChars($rss->title) ?></span></h3>
</div>
<div class="col-md-12 news-item">
<ul>
<?php foreach ($atom->entry as $entry): ?>
<li>
<a href="<?php echo htmlSpecialChars($entry->link['href']) ?>" target="_blank"><?php echo htmlSpecialChars($entry->title) ?></a>
<p><?php echo date("F d,Y", (int) $entry->timestamp).' at '.date("h:i a", (int) $entry->timestamp) ?></p>
</li>
<?php endforeach ?>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid bg-dark footer text-light pt-5 pb-5 text-center">
<?php require_once('includes/footer.php')?>
</div>
<?php require_once('modals.php');?>
<script src="js/jquery.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/function.js"></script>
<!--Start of Tawk.to Script-->
<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/5e529a93a89cda5a188784aa/default';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
})();
</script>
<!--End of Tawk.to Script-->
</body>
</html>
Coded by KALI :v Greetz to DR HARD ../ kali.zbi@hotmail.com