ACC SHELL

Path : /srv/www/vhosts/bubbagump/
File Upload :
Current File : /srv/www/vhosts/bubbagump/index.php

<?php
session_start();
Header("Pragma: No-cache");
Header("Cache-Control: no-cache");
Header("Expires: " . GMDate("D, d M Y H:i:s") . "GMT");

include "_config.php";
include "_konstanty.php";
include "_funkce.php";

include "classes/calendar.class.php";
include "classes/loger.class.php";
include "classes/poptavka.class.php";

$calendarik = new Calendar($pcalendar);
$log = new Loger($LOGER);

ini_set('arg_separator.output', '&amp;');

if (isset($_GET["odhlasit"]) && ($_GET["odhlasit"] == 1)) {
    include "sitemapxml.php";
    $soubor = "posledniaktualizace.php";
    $fp = fopen($soubor, "w");
    fwrite($fp, Time());
    fclose($fp);
    $_SESSION[$NAZEV_PROJEKTU . "prihlasenpartner"] = false;
    foreach ($_SESSION as $idecko => $kolik) {
        unset($_SESSION[$idecko]);
    }
    session_destroy();
} else {
    if (isset($_POST["hsl"])) {
        include "zjistenihesla.php";
    }
    if (isset($_POST["hslpartneri"])) {
        if ($_POST["hslpartneri"] == "partner") {
            $_SESSION[$NAZEV_PROJEKTU . "prihlasenpartner"] = true;
        }
    }
}

//funkce pro rozeznani jazyka prohlizece
if (!isset($_SESSION[$NAZEV_PROJEKTU . "lang"])) {
    list($autojazyk) = Explode(",", $_SERVER["HTTP_ACCEPT_LANGUAGE"]);
    $znacka=Explode("-",$autojazyk);
    $pole = array("pl"=>"pl","ru"=>"ru","en"=>"en","es"=>"sp","cs"=>"cz","sk"=>"sk");
    $_SESSION[$NAZEV_PROJEKTU."lang"] = ($pole[$znacka[0]])? $pole[$znacka[0]]:"cz";
}
if(!in_array($_SESSION[$NAZEV_PROJEKTU . "lang"],$CONF["JAZYKVERZE"])) $_SESSION[$NAZEV_PROJEKTU . "lang"] = $CONF["JAZYKVERZE"][0];
if(in_array($_GET["jazyk"],$CONF["JAZYKVERZE"])) $_SESSION[$NAZEV_PROJEKTU . "lang"] = $_GET["jazyk"];

if (!isset($_SESSION[$NAZEV_PROJEKTU . "systemwords"]) || isset($_SESSION[$NAZEV_PROJEKTU . "lang"])) {
    $namesouboru = "systemwords/" . $_SESSION[$NAZEV_PROJEKTU . "lang"] . ".txt";
    $_SESSION[$NAZEV_PROJEKTU . "systemwords"] = @file($namesouboru);
    for ($i = 0; $i < count($_SESSION[$NAZEV_PROJEKTU . "systemwords"]); $i++) { //odstrani cisla pred textem
        if ($i < 10) 				$nacistod = 3;
        elseif ($i < 100) 	$nacistod = 4;
        elseif ($i < 1000) 	$nacistod = 5;
        $pomoc = substr($_SESSION[$NAZEV_PROJEKTU . "systemwords"][$i], $nacistod);
        $_SESSION[$NAZEV_PROJEKTU . "systemwords"][$i] = trim($pomoc);
    }
}

// inicializace menu
if (!$menu) {
    if (isset($_GET["menu"])) $menu = $_GET["menu"];
    else $menu = $MENU_DEFAULT;
}

//Eshop
//include "eshop/eshop.php";

include "zjistenistrukturymenu.php";
include "zjistiobdobi.php";

if (isset($_SESSION[$NAZEV_PROJEKTU . "prihlasen"]) && ($_SESSION[$NAZEV_PROJEKTU . "prihlasen"] == "ano")) {
    ?><!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=administrace.php">
        </head>
    </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>
    		<?php include "head.php"; ?>
    		
    		
      </head>
    	<body>
				<a name="zacatek"></a>
    		<?php include "index".$CONF['LAYOUT'].".php"; ?>
      </body>
    </html>
<?php } ?>

ACC SHELL 2018