|
@@ -123,15 +123,14 @@ if (!empty($_POST['ok_rec'])) {
|
|
|
$v_val = escapeshellarg($_POST['v_val']);
|
|
$v_val = escapeshellarg($_POST['v_val']);
|
|
|
$v_priority = escapeshellarg($_POST['v_priority']);
|
|
$v_priority = escapeshellarg($_POST['v_priority']);
|
|
|
$v_ttl = escapeshellarg($_POST['v_ttl']);
|
|
$v_ttl = escapeshellarg($_POST['v_ttl']);
|
|
|
-
|
|
|
|
|
// Add dns record
|
|
// Add dns record
|
|
|
if (empty($_SESSION['error_msg'])) {
|
|
if (empty($_SESSION['error_msg'])) {
|
|
|
exec (HESTIA_CMD."v-add-dns-record ".$user." ".$v_domain." ".$v_rec." ".$v_type." ".$v_val." ".$v_priority." '' false ".$v_ttl, $output, $return_var);
|
|
exec (HESTIA_CMD."v-add-dns-record ".$user." ".$v_domain." ".$v_rec." ".$v_type." ".$v_val." ".$v_priority." '' false ".$v_ttl, $output, $return_var);
|
|
|
check_return_code($return_var,$output);
|
|
check_return_code($return_var,$output);
|
|
|
- unset($output);
|
|
|
|
|
- $v_type = $_POST['v_type'];
|
|
|
|
|
|
|
+ unset($output);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ $v_type = $_POST['v_type'];
|
|
|
|
|
+
|
|
|
// Flush field values on success
|
|
// Flush field values on success
|
|
|
if (empty($_SESSION['error_msg'])) {
|
|
if (empty($_SESSION['error_msg'])) {
|
|
|
$_SESSION['ok_msg'] = __('DNS_RECORD_CREATED_OK',htmlentities($_POST['v_rec']),htmlentities($_POST['v_domain']));
|
|
$_SESSION['ok_msg'] = __('DNS_RECORD_CREATED_OK',htmlentities($_POST['v_rec']),htmlentities($_POST['v_domain']));
|
|
@@ -179,7 +178,6 @@ if (empty($_GET['domain'])) {
|
|
|
render_page($user, $TAB, 'add_dns');
|
|
render_page($user, $TAB, 'add_dns');
|
|
|
} else {
|
|
} else {
|
|
|
// Display body for dns record
|
|
// Display body for dns record
|
|
|
-
|
|
|
|
|
$v_domain = $_GET['domain'];
|
|
$v_domain = $_GET['domain'];
|
|
|
render_page($user, $TAB, 'add_dns_rec');
|
|
render_page($user, $TAB, 'add_dns_rec');
|
|
|
}
|
|
}
|