////////////////////////////////////////////////////////////////
////////// CZƦà GŁÓWNA ////////////////////////////////////////
?>
////////////// PASEK NAWIGACJI /////////////////////////////////
/* if( isset($str) or isset($id) )
{
print("
");
} */
?>
////////// JEŻELI BRAK STR MENU ID STRONY POKAŻ GŁÓWNˇ /////////////////////////
// if( !isset($str) and !isset($id) )
// {
// $pom1 = mysql_query("select * from strony where menu = 0 and pozycja = 0");
//
// include("strony/glowna.php");
// }
////////// JEŻELI JEST STR MENU A NIE MA ID POKAŻ POZYCJE MENU//////////////////
if(!isset($str))
{
$str_pom = mysql_query("select * from menu where menu = 0 and pozycja = 0");
$str_wiersz = mysql_fetch_array($str_pom);
$str = $str_wiersz['id'];
}
if(!isset($id))
{
$wynik_menu = mysql_query("select * from menu where id = ".$str);
$wiersz_menu = mysql_fetch_array($wynik_menu);
if ($wiersz_menu['typ'] == 'plik')
include("strony/".$wiersz_menu['plik']);
else
{
$wynik_strona = mysql_query("select * from strony where menu = ".$wiersz_menu['id']);
if (mysql_num_rows($wynik_strona) < 1)
{ print("Strona o podanym adresie nie istnieje :("); }
else
{
// print("
");
$wiersz_strona = mysql_fetch_array($wynik_strona);
print($wiersz_strona['tresc']);
}
}
}
/////////// JEŻELI NIE MA STR MENU A JEST ID STRONY POKAŻ STRONĘ ///////////////
else
{
$wynik = mysql_query("select * from strony where id = ".$id);
$wiersz = mysql_fetch_array($wynik);
print("
".$wiersz['tytul']."
");
print("
".$wiersz['tresc']."
");
}
//////////////////// KONIEC CZʦCI GŁÓWNEJ /////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
?>
////////////////////////////////////////////////////////////////////////////////
////////////////////// CZƦà PRAWA /////////////////////////////////////////////
include("strony/prawa.php");
?>