Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/monara/public_html/test.athavaneng.com/themes.php on line 99
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 226
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 227
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 228
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 229
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 230
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 231
tag.
// Add autoplay parameters if your provider supports them (e.g., ?autoplay=1)
$stream_url = "https://player.vimeo.com/video/76979871?h=8272103f6e&autoplay=1&muted=1";
// ==========================================
// 2. TIME CALCULATION LOGIC
// ==========================================
$current_time = time();
$target_time = strtotime($target_date);
// Check if the event has ALREADY started
$has_started = ($current_time >= $target_time);
// ==========================================
// PAGINATION LOGIC
// ==========================================
$page = isset($_GET['page']) ? (int)$_GET['page'] : 1;
if ($page < 1) $page = 1;
$items_per_page = 8;
$offset = ($page - 1) * $items_per_page;
$shorts = [];
$total_pages = 1;
try {
$count_stmt = $conn->query("SELECT COUNT(*) FROM youtube_shorts");
$total_items = $count_stmt->fetchColumn();
$total_pages = ceil($total_items / $items_per_page);
$stmt = $conn->prepare("SELECT * FROM youtube_shorts ORDER BY published_at DESC LIMIT :limit OFFSET :offset");
$stmt->bindValue(':limit', $items_per_page, PDO::PARAM_INT);
$stmt->bindValue(':offset', $offset, PDO::PARAM_INT);
$stmt->execute();
$shorts = $stmt->fetchAll(PDO::FETCH_ASSOC);
} catch (PDOException $e) {
error_log("DB Error: " . $e->getMessage());
}
?>
Live Stream Starts In
00Days
00Hrs
00Mins
00Secs
Latest Shorts
No shorts available yet. Please sync from Admin Dashboard.