Location: PHPKode > scripts > filebase php tools (fpt) > filebase-php-tools-fpt/examples/wbDI.php
<?php
	# crap :) based on my old DirectoryIndex file. 
	require("/home/wb/programming/cvs/fpt/fpt.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta name="robots" content="noindex,nofollow">
<title><?php echo "DiretoryIndex for $server$uri (examples:wB!)"; ?></title>
</head>
<body bgcolor="#ffffff">
	<?php
		global $dir;$files;
		getfiles();
		sortarrays();
	?>		

<table border="0" cellpadding="0" cellspacing="5" width="100%">
<tr><td colspan="2" valign="top">
<?php 
	indexor("/usr/schattenreich/documents/","indexordelimiter","indexorlink"); 
?>
</td></tr>
<tr><td valign="top" width="25%">
<?php 
	$my_dir_icon="[DIR]";
	$my_file_icon="[FILE]";

	if(supershow($dir,"#eeeeee","#eeeeee",2,1,"","",0,"left","center","1","1","0","0","0"))
	{ 
		global $server;
		echo I("dir")." <a href=\"/\" class=\"indexorempty\">$server</a><br>";
		echo I("dir")." <a href=\"..\" class=\"indexorempty\">..</a>";
#		echo "keine unterver-<br>zeichnisse.";
	}
?>
</td>

<td valign="top" align="left" width="75%">
<?php 
	if(supershow($files,"#eeeeee","#eeeeee","1","2","tdclass","ueb",1,"left","center","1","1","0","1","0"))
	{
		echo "keine dateien.";
	}
?>
</td>
</tr>

</table>
</body>
</html>
Return current item: filebase php tools (fpt)