session_start(); $pozice = "../"; $cesta = ""; $script = ""; ////////////////////////////////////////////// include($pozice."inc/inc.php"); ////////////////////////////////////////////// /******* PROVADENI HLAVNICH AKCI *******/ ////////////////////////////////////////////// if ($_SERVER[REQUEST_URI][strlen($_SERVER[REQUEST_URI]) - 1] !== "/") { $_SERVER[REQUEST_URI] = $_SERVER[REQUEST_URI][0] == "/" ? substr($_SERVER[REQUEST_URI],1) : $_SERVER[REQUEST_URI]; header("HTTP/1.1 301 Moved Permanently"); header("Location: ".SERVER.$_SERVER[REQUEST_URI]."/"); header("Connection: close"); die; } PHP_zapisStat(); ////////////////////////////////////////////// $title = $TITLE." - Aktuality"; $sql = "((zob_od='0000-00-00' and zob_do='0000-00-00')"; $sql .= " or (("; $sql .= "(zob_od<='".date("Y-m-d")."' and zob_do='0000-00-00')"; $sql .= " or (zob_od='0000-00-00' and zob_do>='".date("Y-m-d")."')"; $sql .= " or (zob_od<='".date("Y-m-d")."' and zob_do>='".date("Y-m-d")."')"; $sql .= ")))"; $dot_akt = MySQL_Query("Select * from aktuality_akt Where aktualita='ACTIVE' and $sql ORDER BY zob_od, zob_do, ID"); ////////////////////////////////////////////// /******* HLAVNI TELO DOKUMENTU *******/ /* $html .= "
"; $html .= "Cesta: "; $html .= "Funatic » "; $html .= "Aktuality » "; $html .= "«zpět"; $html .= "
"; $html .= "