read isodir corrected

This commit is contained in:
mad 2018-08-12 16:01:51 +02:00
parent 5bb915576f
commit 8cef3b2202
1 changed files with 1 additions and 2 deletions

View File

@ -81,8 +81,7 @@ for ($col=0; $col <count($arrColnames); $col++){
echo "<div class=row><div class=col-md-1 style=text-align:right>cdrom</div><div class=col-md-2><div class=dropdown><button class=\"btn btn-secondary dropdown-toggle\" type=button id=cdrombutton data-toggle=dropdown aria-haspopup=true aria-expanded=false>$val</button>";
echo "<div class=dropdown-menu aria-labelledby=cdrombutton>";
$files = array_diff(scandir($config['ISODIRECTORY']), array('.', '..'));
// print_r($files);
// echo $config['ISODIRECTORY'];
$files = array_values(array_filter($files));
for ($f=0; $f<=count($files); $f++){
if ((preg_match('/iso/', $files[$f]))||(preg_match('/ISO/', $files[$f]))){
echo "<a class=dropdown-item href=\"javascript:dropdown('cdrombutton','$files[$f]')\">$files[$f]</a>";