read isodir corrected
This commit is contained in:
parent
5bb915576f
commit
8cef3b2202
|
@ -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=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>";
|
echo "<div class=dropdown-menu aria-labelledby=cdrombutton>";
|
||||||
$files = array_diff(scandir($config['ISODIRECTORY']), array('.', '..'));
|
$files = array_diff(scandir($config['ISODIRECTORY']), array('.', '..'));
|
||||||
// print_r($files);
|
$files = array_values(array_filter($files));
|
||||||
// echo $config['ISODIRECTORY'];
|
|
||||||
for ($f=0; $f<=count($files); $f++){
|
for ($f=0; $f<=count($files); $f++){
|
||||||
if ((preg_match('/iso/', $files[$f]))||(preg_match('/ISO/', $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>";
|
echo "<a class=dropdown-item href=\"javascript:dropdown('cdrombutton','$files[$f]')\">$files[$f]</a>";
|
||||||
|
|
Loading…
Reference in New Issue