diff -r 74a6a363ff9e -r e6abafe31efb php/heslo/lib/funkce.inc.php --- a/php/heslo/lib/funkce.inc.php Tue May 05 17:08:09 2009 +0200 +++ b/php/heslo/lib/funkce.inc.php Tue May 05 17:29:29 2009 +0200 @@ -12,13 +12,6 @@ set_exception_handler('exception_handler'); -session_set_cookie_params(0, $NASTAVENI['cookie_cesta']); -session_start(); - - -$strankaP = split('/', $_SERVER['REQUEST_URI']); -$stranka = $strankaP[count($strankaP)-1]; - if (empty($_SERVER['HTTP_ACCEPT'])) { $mimeTyp = 'application/xhtml+xml'; @@ -26,15 +19,10 @@ $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' ); } header("Content-Type: $mimeTyp"); -//header("Content-Type: text/html"); -//header("Content-Type: application/xhtml+xml"); /** $nadpis = titulek stránky + h1 */ -function zahlavi($nadpis, $autorizace = true) { +function zahlavi($nadpis) { global $mimeTyp; - if ($autorizace) { - overPristup(); - } html(' @@ -51,44 +39,12 @@
Uživatel: ' . $_SESSION['login'] . '
'); -} } -/** $zobrazitNabidku = zobrazí postranní menu */ -function zapati($zobrazitNabidku = true) { - if ($zobrazitNabidku) { - html('