[divan] RSS, correction de la date ?

This commit is contained in:
Esenjin 2021-10-20 19:01:55 +02:00
parent e21eeae1ed
commit 9a9898a0a0

View File

@ -29,11 +29,14 @@ if($diradd) {
}
function scan_dir($dir) {
function scan_dir($dirscan, $dirscanadd) {
$files = array();
foreach (scandir($dir) as $file) {
foreach (scandir($dirscan) as $file) {
if(strpos($file, ".mp3")) {
if($dirscanadd) {
$file = $dirscanadd.'/'.$file;
}
$files[$file] = filectime($file);
}
}
@ -45,7 +48,7 @@ function scan_dir($dir) {
}
$array = scan_dir($dir);
$array = scan_dir($dir, $diradd);
$lastpubli = date('D, d M Y H:i:s', filectime($array[0]));