DisplayMode = 'FEEdit'; } if ($_GET['Live2'] == 'y') { $_SESSION['live'] = true; header('Location: '. $Config['DocRoot']); //die(); } if ($_SESSION['live'] != true) { // require('index.html'); // die(); } if (!is_array($_SESSION['Cart'])) $_SESSION['Cart'] = array(); /* classes */ $System->LoadClass('Cache'); $System->LoadClass('Device'); $System->LoadClass('Search'); $Cache = new Cache(); $Device = new Device(); $Search = new Search(); $Search->Init(); $Valid = false; require('media/dispatch.php'); if ($Item) $Valid = true; if ($Area[2] == 'article' || $Area[2] == 'newsletter') { $Valid = true; $Item['cTemplate'] = 'newsletter'; } if ($Valid == false) { if ($Area[1] != 'book') { if (strlen($Area[1]) > 0) { header("HTTP/1.0 404 Not Found"); require('media/templates/404.php'); die(); } } } $Template = $Item['cTemplate']; if (strlen($Template) == 0) $Template = 'basic'; $L = $XMS->ListTextKeys($Area['Lang'],'Name'); foreach ($L as $V => $X) { $L[$V] = ($X); } if ($Item){ $Item = $XMS->Translate($Item); } $Device->Check(); ob_start(); if ($Device->Type == 'mobile') { require($Config['IncPath']. 'media/layout/mobile.php'); } else { require($Config['IncPath']. 'media/layout/web.php'); } $BufferContent = ob_get_contents(); ob_end_flush(); $Search->Store($BufferContent); ?>