Index pour serveur local

Download | Vote Up (0) | Vote Down (0)
Index pour serveur LOCAL

#Auteur: Mentalistos
#Dévellopé pour: XAMPP
#Site:www.security-hackers.com
#Langage:PHP

<html>
<head>
<style type="text/css">
body{color:white;}
#conteneur{background:grey;border-radius:5px;margin-right:auto;margin-left:auto;width:500px;}
li{list-style-type:none;color:white}
a:link{color:skyblue;text-decoration:none;-webkit-transition: all .3s;-moz-transition: all .3s;font-weight:bold; }
a:hover{color:green;font-weight:bold;-webkit-transition: all .3s;-moz-transition: all .3s;}
a:visited{color:skyblue;font-weight:bold;}
</style>
</head>
<body>
<div id="conteneur">
<?php $rep = "./../htdocs/";
$dir = opendir($rep); 

 function dd($date) {
   return date("d/m/Y H:i:s",$date);
}

while ($ra = readdir($dir)) {
   if(is_dir($rep.$ra)) {
      echo "<li>Nom :<a href=\"$ra\"> ".$ra. "</a>";
      echo "<li>Taille : ".filesize($rep.$ra)." octets";
      echo "<li>Cr&eacute;ation : ".dd(filectime($rep.$ra));
      echo "<li>Modification : ".dd(filemtime($rep.$ra));
      echo "<li>Dernier acc&egrave;s : ".dd(fileatime($rep.$ra));
      echo "<br><br>";
   }
} ?>

</div>
</body>
</html>

Mentalistos


Be the first to give feedback !

Please login to comment !