Your IP : 3.144.7.9
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Mur MCDF</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="generator" content="HAPedit 3.1">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="generator" content="HAPedit 3.1">
<body bgcolor="#FF8000">
<center><a href="http://www.mehariclubdefrance.com/"><img src="/fait3-3/site_logo.gif" alt="MCDF" width="256" /></a></center>
<hr />
</head>
<?php
//diaporama
$diaporama="";
$old_time=0;
$dir = '../diaporama/upload';
$file = array_fill(0, 10000, array_fill(0, 2, 0));
$album = scandir($dir);
setlocale(LC_TIME, "fr_FR");
//var_dump($album);
for ($z=0; $z<count($album );$z++)
{
$entry=$album [$z];
if ($entry != "." && $entry != "..")
{
$file[$k][1]=$entry;
$file[$k][0]=filemtime("../diaporama/upload/".$entry."/data.html");
$k++;
}
}
// Sort the multidimensional array
usort($file, "custom_sort");
echo("<br>");
for($i=0;$i<10;$i++){
echo('<iframe src="/diaporama/upload/'.$file[$i][1].'/data.html"
width="100%" height="600" >
</iframe>');
echo( '<b><p align="center">'.strftime("%d/%m/%G", $file[$i][0]).' Nom Album : '.$file[$i][1]."</p></b>"); }
// Define the custom sort function
function custom_sort($a,$b) {
return $a[0]<$b[0];
}
//var_dump($file);
?>
</body>
</html>