bootoption edit on db update
This commit is contained in:
parent
8cef3b2202
commit
3224281ec4
|
@ -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',";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue