|
90 | 90 | // Change domain IP |
91 | 91 | if (($v_ip != $_POST['v_ip']) && (empty($_SESSION['error_msg']))) { |
92 | 92 | $v_ip = escapeshellarg($_POST['v_ip']); |
93 | | - exec(HESTIA_CMD."v-change-dns-domain-ip ".$v_username." ".$v_domain." ".$v_ip." 'no'", $output, $return_var); |
| 93 | + exec(HESTIA_CMD."v-change-dns-domain-ip ".$user." ".$v_domain." ".$v_ip." 'no'", $output, $return_var); |
94 | 94 | check_return_code($return_var, $output); |
95 | 95 | $restart_dns = 'yes'; |
96 | 96 | unset($output); |
|
99 | 99 | // Change domain template |
100 | 100 | if (($v_template != $_POST['v_template']) && (empty($_SESSION['error_msg']))) { |
101 | 101 | $v_template = escapeshellarg($_POST['v_template']); |
102 | | - exec(HESTIA_CMD."v-change-dns-domain-tpl ".$v_username." ".$v_domain." ".$v_template." 'no'", $output, $return_var); |
| 102 | + exec(HESTIA_CMD."v-change-dns-domain-tpl ".$user." ".$v_domain." ".$v_template." 'no'", $output, $return_var); |
103 | 103 | check_return_code($return_var, $output); |
104 | 104 | unset($output); |
105 | 105 | $restart_dns = 'yes'; |
|
108 | 108 | // Change SOA record |
109 | 109 | if (($v_soa != $_POST['v_soa']) && (empty($_SESSION['error_msg']))) { |
110 | 110 | $v_soa = escapeshellarg($_POST['v_soa']); |
111 | | - exec(HESTIA_CMD."v-change-dns-domain-soa ".$v_username." ".$v_domain." ".$v_soa." 'no'", $output, $return_var); |
| 111 | + exec(HESTIA_CMD."v-change-dns-domain-soa ".$user." ".$v_domain." ".$v_soa." 'no'", $output, $return_var); |
112 | 112 | check_return_code($return_var, $output); |
113 | 113 | unset($output); |
114 | 114 | $restart_dns = 'yes'; |
|
117 | 117 | // Change expiriation date |
118 | 118 | if (($v_exp != $_POST['v_exp']) && (empty($_SESSION['error_msg']))) { |
119 | 119 | $v_exp = escapeshellarg($_POST['v_exp']); |
120 | | - exec(HESTIA_CMD."v-change-dns-domain-exp ".$v_username." ".$v_domain." ".$v_exp." 'no'", $output, $return_var); |
| 120 | + exec(HESTIA_CMD."v-change-dns-domain-exp ".$user." ".$v_domain." ".$v_exp." 'no'", $output, $return_var); |
121 | 121 | check_return_code($return_var, $output); |
122 | 122 | unset($output); |
123 | 123 | } |
124 | 124 |
|
125 | 125 | // Change domain ttl |
126 | 126 | if (($v_ttl != $_POST['v_ttl']) && (empty($_SESSION['error_msg']))) { |
127 | 127 | $v_ttl = escapeshellarg($_POST['v_ttl']); |
128 | | - exec(HESTIA_CMD."v-change-dns-domain-ttl ".$v_username." ".$v_domain." ".$v_ttl." 'no'", $output, $return_var); |
| 128 | + exec(HESTIA_CMD."v-change-dns-domain-ttl ".$user." ".$v_domain." ".$v_ttl." 'no'", $output, $return_var); |
129 | 129 | check_return_code($return_var, $output); |
130 | 130 | unset($output); |
131 | 131 | $restart_dns = 'yes'; |
|
161 | 161 | $v_val = escapeshellarg($_POST['v_val']); |
162 | 162 | $v_priority = escapeshellarg($_POST['v_priority']); |
163 | 163 | $v_ttl = escapeshellarg($_POST['v_ttl']); |
164 | | - exec(HESTIA_CMD."v-change-dns-record ".$v_username." ".$v_domain." ".$v_record_id." ".$v_rec." ".$v_type." ".$v_val." ".$v_priority." false ".$v_ttl, $output, $return_var); |
| 164 | + exec(HESTIA_CMD."v-change-dns-record ".$user." ".$v_domain." ".$v_record_id." ".$v_rec." ".$v_type." ".$v_val." ".$v_priority." false ".$v_ttl, $output, $return_var); |
165 | 165 | check_return_code($return_var, $output); |
166 | 166 | $v_rec = $_POST['v_rec']; |
167 | 167 | $v_type = $_POST['v_type']; |
|
174 | 174 | // Change dns record id |
175 | 175 | if (($_GET['record_id'] != $_POST['v_record_id']) && (empty($_SESSION['error_msg']))) { |
176 | 176 | $v_old_record_id = escapeshellarg($_GET['record_id']); |
177 | | - exec(HESTIA_CMD."v-change-dns-record-id ".$v_username." ".$v_domain." ".$v_old_record_id." ".$v_record_id, $output, $return_var); |
| 177 | + exec(HESTIA_CMD."v-change-dns-record-id ".$user." ".$v_domain." ".$v_old_record_id." ".$v_record_id, $output, $return_var); |
178 | 178 | check_return_code($return_var, $output); |
179 | 179 | unset($output); |
180 | 180 | $restart_dns = 'yes'; |
|
0 commit comments