<?php
include_once('./_common.php');

header('Content-Type: text/html; charset=utf-8');

$is_lnb_shop_mode = isset($_GET['shop']) && $_GET['shop'] ? true : false;
$thema = isset($_GET['thema']) ? preg_replace('/[^a-zA-Z0-9_-]/', '', (string)$_GET['thema']) : '';

if (!$thema) {
	$thema = isset($config['as_'.MOBILE_.'thema']) && $config['as_'.MOBILE_.'thema'] ? $config['as_'.MOBILE_.'thema'] : 'Basic';
}

if (function_exists('thema_member')) {
	thema_member('cart');
}

$stats = function_exists('apms_stats') ? apms_stats() : array();

$lnb_partial_path = G5_PATH.'/thema/'.$thema.'/_lnb_right.php';
if (!is_file($lnb_partial_path)) {
	$lnb_partial_path = G5_PATH.'/thema/Basic/_lnb_right.php';
}

if (!is_file($lnb_partial_path)) {
	http_response_code(404);
	exit;
}

include($lnb_partial_path);
?>