Файловый менеджер - Редактировать - /www/wwwroot/gamenworld.store/xhr/loadmoreblogs.php
�азад
<?php require_once '../config.php'; require_once '../app/includes/constant.php'; require_once '../app/includes/app_start.php'; $perPage = 20; $page = isset($_GET['page']) ? (int)$_GET['page'] : 1; $offset = ($page - 1) * $perPage; if (isset($_GET['topic'])) { $topic = $_GET['topic']; // Fetch blogs by topic from the database $blogs = getBlogsByTopic($topic, $offset, $perPage); } else { // Fetch blogs from the database $blogs = getBlogs($offset, $perPage); } if (!empty($blogs)) { foreach ($blogs as $blog) { echo '<a class="content-card" href="'.$site_url . 'blog/' . makeSlug($blog['blog_title']) . '/'.$blog['id'] . '"> <div class="card-icon"> <img alt="" src="'. $blog['blog_image'] .'"> </div> <div class="card-main"> <h3 class="card-title">' . htmlspecialchars($blog['blog_title']) . '</h3> <p class="card-info">' . htmlspecialchars($blog['blog_date']) . '</p> </div> </a>'; } } else { echo '<p>No more news articles found.</p>'; } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.0.26 | Генераци� �траницы: 0 |
proxy
|
phpinfo
|
�а�тройка