mirror of
https://github.com/unraid/webgui.git
synced 2026-05-06 20:30:50 -05:00
Update Libre and OpenELEC Templates.
This commit is contained in:
@@ -293,6 +293,7 @@ $hdrXML = "<?xml version='1.0' encoding='UTF-8'?>\n"; // XML encoding declaratio
|
||||
if (isset($_POST['shares'][0]['source'])) {
|
||||
@mkdir($_POST['shares'][0]['source'], 0777, true);
|
||||
}
|
||||
$_POST['clock'] = $arrDefaultClocks["other"] ;
|
||||
if ($lv->domain_new($_POST)){
|
||||
$reply = ['success' => true];
|
||||
} else {
|
||||
@@ -376,6 +377,7 @@ $hdrXML = "<?xml version='1.0' encoding='UTF-8'?>\n"; // XML encoding declaratio
|
||||
if (isset($_POST['shares'][0]['source'])) {
|
||||
@mkdir($_POST['shares'][0]['source'], 0777, true);
|
||||
}
|
||||
$_POST['clock'] = $arrDefaultClocks["other"] ;
|
||||
$arrExistingConfig = custom::createArray('domain',$strXML);
|
||||
$arrUpdatedConfig = custom::createArray('domain',$lv->config_to_xml($_POST));
|
||||
array_update_recursive($arrExistingConfig, $arrUpdatedConfig);
|
||||
|
||||
@@ -292,6 +292,7 @@ $hdrXML = "<?xml version='1.0' encoding='UTF-8'?>\n"; // XML encoding declaratio
|
||||
if (isset($_POST['shares'][0]['source'])) {
|
||||
@mkdir($_POST['shares'][0]['source'], 0777, true);
|
||||
}
|
||||
$_POST['clock'] = $arrDefaultClocks["other"] ;
|
||||
if ($lv->domain_new($_POST)){
|
||||
$reply = ['success' => true];
|
||||
} else {
|
||||
@@ -375,6 +376,7 @@ $hdrXML = "<?xml version='1.0' encoding='UTF-8'?>\n"; // XML encoding declaratio
|
||||
if (isset($_POST['shares'][0]['source'])) {
|
||||
@mkdir($_POST['shares'][0]['source'], 0777, true);
|
||||
}
|
||||
$_POST['clock'] = $arrDefaultClocks["other"] ;
|
||||
$arrExistingConfig = custom::createArray('domain',$strXML);
|
||||
$arrUpdatedConfig = custom::createArray('domain',$lv->config_to_xml($_POST));
|
||||
array_update_recursive($arrExistingConfig, $arrUpdatedConfig);
|
||||
|
||||
Reference in New Issue
Block a user