
<?
if (($dzial=="." and $art="t_tekst") or $art=="../index" or $art=="t_tekst")
{
if (file_exists("xirus/index.php")){ include("xirus/index.php"); }
}
else
{
if ($dzial=="")
{
if (file_exists("xirus/index.php")){ include("xirus/index.php"); }
}
else
{
if (file_exists($dzial))
{
if($art=="")
{
$dzial = basename($_GET['dzial']);
if (file_exists("$dzial/index.php")){ include("$dzial/index.php"); }
}
else
{
$dzial = basename($_GET['dzial']);
$art = basename($_GET['art']);
if (file_exists("$dzial/$art.php")) { include("$dzial/$art.php"); }
}
}
else
{
if (file_exists("xirus/index.php")){ include("xirus/index.php"); }
}
}
}
?>