Location: PHPKode > projects > PuszForum > puszforum/phpPuszAdmin/menu.php
<? session_start(); ?>
<? if($dane!="ok") {echo "<h4>You dont heave premision to see this page</h4></body></html>"; exit;}  ?>
<html>
<head>
<LINK REL="stylesheet" HREF="style.css" TYPE="text/css">
</head>

<body>
<?
include "conf.php";
if (!isset($_SESSION['url']))  {session_register('url'); $url=$path_to_base;} 
if($newurl) $url = $newurl;
$u=explode("/",$url);

for($i=0; $i < count($u) -2; $i++) $upurl = $upurl.$u[$i]."/"; 
//$upurl = substr($upurl,0,strlen($upurl) -1);

?>
<table cellpadding="0" cellspacing="0" width="95" border="0">
<tr>
	<td >
	<A HREF="main.php" target="main"><FONT cOLOR="white">Tables</FONT></A>
	<br><br>
	</td>
</tr>

<? if($url != $path_to_base) { ?>
<tr>
	<td >
	
	<A HREF="menu.php?newurl=<? echo $upurl ?>"><FONT cOLOR="white">Up dir!</FONT></A>
	<br><br>
	</td>
</tr>
<? } ?>
<?
$kat=opendir("$url");
while (false !== ($nzw=readdir($kat)))
	{ 
	if ($nzw=="." || $nzw=="..") { continue; }
	$nz=explode(".",$nzw);
	
	if(is_dir($url."/".$nzw)) 
		{
		$nazwa = "+ ".$nz[0];
	?>
	<tr>
		<td>
		<a href='menu.php?newurl=<? echo $url.$nz[0]."/" ?>'><? echo $nazwa ?></a>
		</td>

	</tr>
	<?
		}
	else
		{
	?>
	<tr>
		<td>
		<a href='showtable.php?nzw=<? echo $nzw ?>&na=<? echo $nz[0] ?>' target=main><? echo $nz[0] ?></a>
		</td>

	</tr>
	<?
		}
	}

closedir($kat);
?>
<tr>
	<td>
	<br>
	<br>
	<br>

<A HREF="menu.php">Refresh menu</A>
	</td>
</tr>
</table>

</body>
</html>
Return current item: PuszForum