[divan] RSS, correction de la date ?
This commit is contained in:
parent
e21eeae1ed
commit
9a9898a0a0
@ -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]));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user