read isodir var from config
This commit is contained in:
parent
714882ba4c
commit
5bb915576f
|
@ -77,6 +77,18 @@ for ($col=0; $col <count($arrColnames); $col++){
|
|||
echo "<a class=dropdown-item href=\"javascript:dropdown('archbutton','x86_64')\">x86_64</a>";
|
||||
echo "</div></div></div></div><input type=hidden id=archbuttonh name=arch value=x86_64>";
|
||||
// echo "$arrColnames[$col] <select name=arch><option value=qemu-system-x86_64>x86_64</option></select></br>";
|
||||
} elseif ($arrColnames[$col] == "cdrom"){
|
||||
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'];
|
||||
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>";
|
||||
}
|
||||
}
|
||||
echo "</div></div></div></div><input type=hidden id=cdrombuttonh name=arch value=$val>";
|
||||
} else {
|
||||
if (isset($e[$arrColnames[$col]])){
|
||||
$val = $e[$arrColnames[$col]];
|
||||
|
|
Loading…
Reference in New Issue