ACC SHELL
<?php session_start();
include "_config.php";
include "_konstanty.php";
include "_funkce.php";
// include "_promenne.php";
// include "_seo.php";
include "classes/calendar.class.php";
include "classes/loger.class.php";
$calendarik= new Calendar($pcalendar);
$log = new Loger($LOGER);
if(!empty($savesablonu)) {
include $cesta = "scripty/sablony/".$sablona."_save.php";
}
//Eshop
//include "eshop/eshop.php";
if(!empty($specialnizmena)) {
include $cesta = "scripty/".$specialnizmena.".php";
}
if(isset($_GET["odhlasit"]) && ($_GET["odhlasit"] == 1)) {
foreach ($_SESSION as $idecko => $kolik) {
unset($_SESSION[$idecko]);
}
}
if(!isset($_SESSION[$NAZEV_PROJEKTU."lang"])) {
$_SESSION[$NAZEV_PROJEKTU."lang"] = "cz";
}
if (isset($_GET["jazyk"])) {
$_SESSION[$NAZEV_PROJEKTU."lang"] = $_GET["jazyk"]; unset($_SESSION["systemwordsadmin"]);
}
if (isset($_SESSION["iduzivateleregistred"]) && $_SESSION["iduzivateleregistred"] == 3 ) $_SESSION[$NAZEV_PROJEKTU."lang"] = "sk";
if(!isset($_SESSION["systemwordsadmin"])) {
//$namesouboru = "systemwords/".$_SESSION[$NAZEV_PROJEKTU."lang"]."admin.txt"; //bude nacitat verzi dle zvoleneho jazyku
$namesouboru = "systemwords/czadmin.txt"; //nacita nyni jen CZ verzi
$_SESSION["systemwordsadmin"] = @file($namesouboru);
for($i=0;$i<count($_SESSION["systemwordsadmin"]);$i++) { //odstrani cisla pred textem
if($i<10) {$nacistod = 3;}
elseif($i<100) {$nacistod = 4;}
elseif($i<1000) {$nacistod = 5;}
$pomoc = substr($_SESSION["systemwordsadmin"][$i], $nacistod);
$_SESSION["systemwordsadmin"][$i] = trim($pomoc);
}
}
?>
<?php if ($_SESSION[$NAZEV_PROJEKTU."prihlasen"] == "ano"): ?>
<?php
// inicializace promenych
if(!isset($menu)) {
if(isset($_GET["menu"])) {$menu = $_GET["menu"];}
elseif(isset($_POST["menu"])) {$menu = $_POST["menu"];}
else {$menu = 0;}
}
if($idspecialni == 100) {if($pomocnemenu == 0) {$menu = 0;}}
include "adminzjisteninazvumenu.php";
include "adminzjistenistrukturymenu.php";
include "zjistiobdobi.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?include "head.php";?>
</head>
<body>
<?php include "index".$CONF['LAYOUT'].".php"; ?>
</body>
</html>
<?php else: ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Refresh" content="0; URL=index.php?neniopravneni=1">
</head>
</html>
<?php endif; ?>
ACC SHELL 2018