<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?php
$directoryListing = "R&eacute;pertoire(s) &agrave; la racine du serveur (\"www\")";
$noDir = "aucun répertoire";
$presentation = "Cette page permet de visualiser les r&eacute;pertoires plac&eacute;s &agrave; la racine du serveur. Si vous souhaitez organiser autrement le r&eacute;pertoire &quot;www&quot;, vous pouvez effacer ce fichier. Il en existe une copie de sauvegarde dans le r&eacute;pertoire &quot;safe&quot; (index-safe.php).";
?>
<html>

<head>
	<title>[EasyPHP] - Web Local</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<style type="text/css">
		.text1 {
			font-family: Arial, Helvetica, sans-serif;
			font-size: 12px;
			color: White;
			text-align: left;
		}

		.text2 {
			font-family: Arial, Helvetica, sans-serif;
			font-size: 12px;
			color: Silver;
			text-align: left;
		}

		.titre1 {
			font-family: Arial, Helvetica, sans-serif;
			font-size: 12px;
			font-weight: bold;
			color: #FFFFFF;
		}

		.titre2 {
			font-family: Arial, Helvetica, sans-serif;
			font-size: 12px;
			font-weight: bold;
			color: #cccccc;
		}
	</style>
</head>

<body bgcolor="#525A73">

	<div align="center">
		<table width="400" cellspacing="0" cellpadding="0" border="0" align="center">
			<tr>
				<td>
					<a href="index.php"><img src="images_easyphp/titre_easyphp_weblocal.gif" width="387" height="116" border="0"></a>
				</td>
			</tr>
			<tr>
		</table>
	</div>

	<table width="500" border="0" cellspacing="4" cellpadding="0" align="center">
		<tr>
			<td><img src="images_easyphp/cube_rouge_small.gif" width="18" height="20"></td>
			<td width="100%" nowrap class="titre1">&nbsp;<? echo $directoryListing; ?>&nbsp;:</td>
		</tr>
	</table>

	<table width="500" border="0" cellspacing="2" cellpadding="0" align="center">
		<?php
		$rep = opendir('.');
		$bAuMoinsUnRepertoire = false;
		while ($file = readdir($rep)) {
			if ($file != '..' && $file != '.' && $file != '') {
				if (is_dir($file)) {
					$bAuMoinsUnRepertoire = true;
					print("<tr><td nowrap class='text1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>");
					print("<td width='100%' class='text1'>");
					print("&nbsp;&nbsp;<img src='images_easyphp/dossier.gif' width='23' height='16' align='absbottom'>&nbsp;");
					print("<a href='$file/' class='text1'>$file</a>");
					print("</td></tr>");
				}
			}
		}
		if ($bAuMoinsUnRepertoire == false) {
			print("<tr><td nowrap class='text1'><div align='center'>-&nbsp; $noDir &nbsp;-</div></td>");
			print("</td></tr>");
		}

		closedir($rep);
		clearstatcache();
		?>
	</table>

	<br>

	<table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
		<tr>
			<td class="text1">
				<?php echo $presentation ?>
			</td>
		</tr>
	</table>

</body>

</html>