| Server IP : 104.21.21.239 / Your IP : 216.73.216.11 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/tgnewdev/mod/ |
Upload File : |
<?php require('_mod_security.php'); ?>
<?php
$slug = parse_uri('slug', 0, 'home', true);
$preview = ($_SESSION['logged_in'] ?? false) && ($_GET['preview'] ?? '') === 'true';
$sql = "SELECT * FROM articles WHERE slug = :slug AND (post_status = 1 OR TRUE = :preview) ORDER BY post_date DESC";
$stmt = $db->prepare($sql);
$stmt->execute([
':slug' => $slug,
':preview' => $preview,
]);
if ($row = $stmt->fetch(PDO::FETCH_OBJ)) :
set_analytics_reference('article', $row->id);
echo '<div class="' . ($row->show_sidebar ? 'content_left' : 'content_full') . '">';
add_seo_page_header($row->post_title, curr_page_url(), $row->html, image_url_fix($row->featured_image, 'img/content/', true));
if (!empty($row->custom_css)) :
add_custom_css($row->custom_css);
endif;
echo '<h1>' . $row->post_title . '</h1>';
if (!empty($row->featured_image)) :
echo '<img src="' . image_url_fix($row->featured_image, 'img/content/') . '" alt="' . $row->post_title . '">';
endif;
echo '<div class="post_content content_html">' . apply_shortcodes(format_html($row->html)) . '</div>';
include('_subscribe_link.php');
echo '</div>'; // content_left / full
if ($row->show_sidebar) :
include_once('sidebar.php');
endif;
echo '<div class="cleardiv"> </div>';
else :
return(page_404());
endif;