bootoption edit on db update

This commit is contained in:
mad 2018-08-12 16:05:37 +02:00
parent 8cef3b2202
commit 3224281ec4
1 changed files with 6 additions and 0 deletions

View File

@ -117,6 +117,9 @@ if(isset($_REQUEST['mode'])){
foreach(array_keys($_REQUEST) as $rkey){ foreach(array_keys($_REQUEST) as $rkey){
if ($rkey!="mode"){ if ($rkey!="mode"){
$rvalue = clean($_REQUEST[$rkey]); $rvalue = clean($_REQUEST[$rkey]);
if ($rvalue == "x86_64"){
$rvalue = "qemu-system-x86_64";
}
$sqlc .= "$rkey,"; $sqlc .= "$rkey,";
$sqlv .= "'$rvalue',"; $sqlv .= "'$rvalue',";
} }
@ -134,6 +137,9 @@ if(isset($_REQUEST['mode'])){
foreach(array_keys($_REQUEST) as $rkey){ foreach(array_keys($_REQUEST) as $rkey){
if (($rkey!="mode")&&($rkey!="editid")){ if (($rkey!="mode")&&($rkey!="editid")){
$rvalue = clean($_REQUEST[$rkey]); $rvalue = clean($_REQUEST[$rkey]);
if ($rvalue == "x86_64"){
$rvalue = "qemu-system-x86_64";
}
$sql .= " $rkey='$rvalue',"; $sql .= " $rkey='$rvalue',";
} }
} }