franta-hg@3: getMessage()); franta-hg@3: //header("Location: chyba_db.php"); franta-hg@3: exit(); franta-hg@3: } franta-hg@3: franta-hg@3: set_exception_handler('exception_handler'); franta-hg@3: franta-hg@3: session_set_cookie_params(0, $NASTAVENI['cookie_cesta']); franta-hg@3: session_start(); franta-hg@3: franta-hg@3: franta-hg@3: $strankaP = split('/', $_SERVER['REQUEST_URI']); franta-hg@3: $stranka = $strankaP[count($strankaP)-1]; franta-hg@3: franta-hg@3: franta-hg@3: if (empty($_SERVER['HTTP_ACCEPT'])) { franta-hg@3: $mimeTyp = 'application/xhtml+xml'; franta-hg@3: } else { franta-hg@3: $mimeTyp = (( stristr( $_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml' ) && !preg_match("/application\/xhtml\+xml;\s*q=0(\.0)?\s*(,|$)/",$_SERVER['HTTP_ACCEPT']) ) ? 'application/xhtml+xml' : 'text/html' ); franta-hg@3: } franta-hg@3: header("Content-Type: $mimeTyp"); franta-hg@3: //header("Content-Type: text/html"); franta-hg@3: //header("Content-Type: application/xhtml+xml"); franta-hg@3: franta-hg@3: /** $nadpis = titulek stránky + h1 */ franta-hg@3: function zahlavi($nadpis, $autorizace = true) { franta-hg@3: global $mimeTyp; franta-hg@3: if ($autorizace) { franta-hg@3: overPristup(); franta-hg@3: } franta-hg@3: franta-hg@3: html(' franta-hg@3: franta-hg@3: franta-hg@3:
franta-hg@3: franta-hg@3: franta-hg@3: franta-hg@3: franta-hg@3: franta-hg@3: franta-hg@3: franta-hg@3:Uživatel: ' . $_SESSION['login'] . '
'); franta-hg@3: } franta-hg@3: } franta-hg@3: franta-hg@3: /** $zobrazitNabidku = zobrazí postranní menu */ franta-hg@3: function zapati($zobrazitNabidku = true) { franta-hg@3: if ($zobrazitNabidku) { franta-hg@3: html('