$current_dir = ".";
$dir[0]= opendir($current_dir);
$i=0;
$folderarray = array();
while ($dir_name = readdir($dir[0])){
if (($dir_name != ".") && ($dir_name !="..") && eregi("(19|20)([0-9]{4})(.+)" ,$dir_name)){
//$name_temp = preg_replace("/(19|20)(\d{2})(\d{2})(\d{2})_(.+)/","\\4-\\3-\\1\\2 \\5",$dir_name);
if(file_exists($dir_name."/desc.js")){
$name_temp = preg_replace("/(19|20)(\d{2})(\d{2})(\d{2})_(.+)/","\\4-\\3-\\1\\2 \\5",$dir_name);
array_push($folderarray,$dir_name."^".$name_temp);
//echo "
• | $name_temp |
";
}
}
}
rsort($folderarray);
for($i=0;$i• | $tmp_str[1] | ";
}
closedir($dir[0]);
?>