Led'n'Ice
✖ZAVŘÍT "; echo "Přihlášen: "; echo $_SESSION['user']; echo "
"; echo 'Odhlásit'; } echo "
"; } ?>
Jméno:
'; $pg=false; } if($_GET['edit'] OR $_GET['new']){include('edit.php');$pg=false;} if($_GET['man']){include('man.php');$pg=false;} if($_GET['page']=="gb"){include('gb.php');$pg=false;} if($_GET['page']=="akce"){include('akce.php');$pg=false;} if($_GET['page']=="novinky"){include('news.php');$pg=false;} if($_GET['page']=="order"){include('order.php');$pg=false;} if($_GET['page']=="order_step2"){include('order_step2.php');$pg=false;} if($_GET['page']=="order_last"){include('order_last.php');$pg=false;} if($pg){ if(empty($_GET['page'])){ //index// $url = "index"; require_once "otevridb.php"; try { OtevriDB(); @$vysledek = mysql_query( " SELECT * FROM page WHERE url = '$url' "); if(!$vysledek) throw new Exception( mysql_errno() ); while($zaznam=mysql_Fetch_array($vysledek)) { echo "

"; echo $zaznam["nazev"]; if($admin_log)echo' - Upravit'; echo "

"; echo nl2br($zaznam["page"]); } } catch (Exception $e) { echo 'Interni chyba:', $e->getMessage(), "\n
"; } }else{ //zbytek// $url = $_GET['page']; require_once "otevridb.php"; try { OtevriDB(); @$vysledek = mysql_query( " SELECT * FROM page WHERE url = '$url' "); if(!$vysledek) throw new Exception( mysql_errno() ); while($zaznam=mysql_Fetch_array($vysledek)) { echo "

"; echo $zaznam["nazev"]; if($admin_log)echo' - Upravit'; echo "

"; echo nl2br($zaznam["page"]); } } catch (Exception $e) { echo 'Interni chyba:', $e->getMessage(), "\n
"; } } }?>