Skip to content

Commit 4c4af55

Browse files
committed
Change VESTA_CMD to HESTIA_CMD.
1 parent 05dc601 commit 4c4af55

File tree

134 files changed

+439
-440
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+439
-440
lines changed

web/add/cron/autoupdate/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
77

88
if ($_SESSION['user'] == 'admin') {
9-
exec (VESTA_CMD."v-add-cron-hestia-autoupdate", $output, $return_var);
9+
exec (HESTIA_CMD."v-add-cron-hestia-autoupdate", $output, $return_var);
1010
$_SESSION['error_msg'] = __('Autoupdate has been successfully enabled');
1111
unset($output);
1212
}

web/add/cron/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
// Add cron job
4545
if (empty($_SESSION['error_msg'])) {
46-
exec (VESTA_CMD."v-add-cron-job ".$user." ".$v_min." ".$v_hour." ".$v_day." ".$v_month." ".$v_wday." ".$v_cmd, $output, $return_var);
46+
exec (HESTIA_CMD."v-add-cron-job ".$user." ".$v_min." ".$v_hour." ".$v_day." ".$v_month." ".$v_wday." ".$v_cmd, $output, $return_var);
4747
check_return_code($return_var,$output);
4848
unset($output);
4949
}

web/add/cron/reports/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
session_start();
66
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
77

8-
exec (VESTA_CMD."v-add-cron-reports ".$user, $output, $return_var);
8+
exec (HESTIA_CMD."v-add-cron-reports ".$user, $output, $return_var);
99
$_SESSION['error_msg'] = __('Cronjob email reporting has been successfully enabled');
1010
unset($output);
1111

web/add/db/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
$fp = fopen($v_password, "w");
6464
fwrite($fp, $_POST['v_password']."\n");
6565
fclose($fp);
66-
exec (VESTA_CMD."v-add-database ".$user." ".$v_database." ".$v_dbuser." ".$v_password." ".$v_type." ".$v_host." ".$v_charset, $output, $return_var);
66+
exec (HESTIA_CMD."v-add-database ".$user." ".$v_database." ".$v_dbuser." ".$v_password." ".$v_type." ".$v_host." ".$v_charset, $output, $return_var);
6767
check_return_code($return_var,$output);
6868
unset($output);
6969
unlink($v_password);
@@ -114,7 +114,7 @@
114114
$db_types = explode(',', $_SESSION['DB_SYSTEM']);
115115

116116
// List available database servers
117-
exec (VESTA_CMD."v-list-database-hosts json", $output, $return_var);
117+
exec (HESTIA_CMD."v-list-database-hosts json", $output, $return_var);
118118
$db_hosts_tmp1 = json_decode(implode('', $output), true);
119119
$db_hosts_tmp2 = array_map(function($host){return $host['HOST'];}, $db_hosts_tmp1);
120120
$db_hosts = array_values(array_unique($db_hosts_tmp2));

web/add/dns/index.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
// Add dns domain
4747
if (empty($_SESSION['error_msg'])) {
48-
exec (VESTA_CMD."v-add-dns-domain ".$user." ".$v_domain." ".$v_ip." ".$v_ns1." ".$v_ns2." ".$v_ns3." ".$v_ns4." ".$v_ns5." ".$v_ns6." ".$v_ns7." ".$v_ns8." no", $output, $return_var);
48+
exec (HESTIA_CMD."v-add-dns-domain ".$user." ".$v_domain." ".$v_ip." ".$v_ns1." ".$v_ns2." ".$v_ns3." ".$v_ns4." ".$v_ns5." ".$v_ns6." ".$v_ns7." ".$v_ns8." no", $output, $return_var);
4949
check_return_code($return_var,$output);
5050
unset($output);
5151
}
@@ -55,7 +55,7 @@
5555
if (empty($_SESSION['error_msg'])) {
5656
if ((!empty($_POST['v_exp'])) && ($_POST['v_exp'] != date('Y-m-d', strtotime('+1 year')))) {
5757
$v_exp = escapeshellarg($_POST['v_exp']);
58-
exec (VESTA_CMD."v-change-dns-domain-exp ".$user." ".$v_domain." ".$v_exp." no", $output, $return_var);
58+
exec (HESTIA_CMD."v-change-dns-domain-exp ".$user." ".$v_domain." ".$v_exp." no", $output, $return_var);
5959
check_return_code($return_var,$output);
6060
unset($output);
6161
}
@@ -65,15 +65,15 @@
6565
if (empty($_SESSION['error_msg'])) {
6666
if ((!empty($_POST['v_ttl'])) && ($_POST['v_ttl'] != '14400') && (empty($_SESSION['error_msg']))) {
6767
$v_ttl = escapeshellarg($_POST['v_ttl']);
68-
exec (VESTA_CMD."v-change-dns-domain-ttl ".$user." ".$v_domain." ".$v_ttl." no", $output, $return_var);
68+
exec (HESTIA_CMD."v-change-dns-domain-ttl ".$user." ".$v_domain." ".$v_ttl." no", $output, $return_var);
6969
check_return_code($return_var,$output);
7070
unset($output);
7171
}
7272
}
7373

7474
// Restart dns server
7575
if (empty($_SESSION['error_msg'])) {
76-
exec (VESTA_CMD."v-restart-dns", $output, $return_var);
76+
exec (HESTIA_CMD."v-restart-dns", $output, $return_var);
7777
check_return_code($return_var,$output);
7878
unset($output);
7979
}
@@ -120,7 +120,7 @@
120120

121121
// Add dns record
122122
if (empty($_SESSION['error_msg'])) {
123-
exec (VESTA_CMD."v-add-dns-record ".$user." ".$v_domain." ".$v_rec." ".$v_type." ".$v_val." ".$v_priority, $output, $return_var);
123+
exec (HESTIA_CMD."v-add-dns-record ".$user." ".$v_domain." ".$v_rec." ".$v_type." ".$v_val." ".$v_priority, $output, $return_var);
124124
check_return_code($return_var,$output);
125125
unset($output);
126126
$v_type = $_POST['v_type'];
@@ -153,7 +153,7 @@
153153
if (empty($v_ttl)) $v_ttl = 14400;
154154
if (empty($v_exp)) $v_exp = date('Y-m-d', strtotime('+1 year'));
155155
if (empty($v_ns1)) {
156-
exec (VESTA_CMD."v-list-user-ns ".$user." json", $output, $return_var);
156+
exec (HESTIA_CMD."v-list-user-ns ".$user." json", $output, $return_var);
157157
$nameservers = json_decode(implode('', $output), true);
158158
$v_ns1 = str_replace("'", "", $nameservers[0]);
159159
$v_ns2 = str_replace("'", "", $nameservers[1]);

web/add/favorite/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818

1919
$_SESSION['favourites'][strtoupper($_REQUEST['v_section'])][$_REQUEST['v_unit_id']] = 1;
2020

21-
exec (VESTA_CMD."v-add-user-favourites ".$_SESSION['user']." ".$v_section." ".$v_unit_id, $output, $return_var);
21+
exec (HESTIA_CMD."v-add-user-favourites ".$_SESSION['user']." ".$v_section." ".$v_unit_id, $output, $return_var);
2222
// check_return_code($return_var,$output);
2323
?>

web/add/firewall/banlist/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
// Add firewall ban
3737
if (empty($_SESSION['error_msg'])) {
38-
exec (VESTA_CMD."v-add-firewall-ban ".$v_ip." ".$v_chain, $output, $return_var);
38+
exec (HESTIA_CMD."v-add-firewall-ban ".$v_ip." ".$v_chain, $output, $return_var);
3939
check_return_code($return_var,$output);
4040
unset($output);
4141
}

web/add/firewall/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
// Add firewall rule
5151
if (empty($_SESSION['error_msg'])) {
52-
exec (VESTA_CMD."v-add-firewall-rule ".$v_action." ".$v_ip." ".$v_port." ".$v_protocol." ".$v_comment, $output, $return_var);
52+
exec (HESTIA_CMD."v-add-firewall-rule ".$v_action." ".$v_ip." ".$v_port." ".$v_protocol." ".$v_comment, $output, $return_var);
5353
check_return_code($return_var,$output);
5454
unset($output);
5555
}

web/add/ip/index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
// Add IP
5959
if (empty($_SESSION['error_msg'])) {
60-
exec (VESTA_CMD."v-add-sys-ip ".$v_ip." ".$v_netmask." ".$v_interface." ".$v_owner." '".$ip_status."' ".$v_name." ".$v_nat, $output, $return_var);
60+
exec (HESTIA_CMD."v-add-sys-ip ".$v_ip." ".$v_netmask." ".$v_interface." ".$v_owner." '".$ip_status."' ".$v_name." ".$v_nat, $output, $return_var);
6161
check_return_code($return_var,$output);
6262
unset($output);
6363
$v_owner = $_POST['v_owner'];
@@ -75,12 +75,12 @@
7575
}
7676

7777
// List network interfaces
78-
exec (VESTA_CMD."v-list-sys-interfaces 'json'", $output, $return_var);
78+
exec (HESTIA_CMD."v-list-sys-interfaces 'json'", $output, $return_var);
7979
$interfaces = json_decode(implode('', $output), true);
8080
unset($output);
8181

8282
// List users
83-
exec (VESTA_CMD."v-list-sys-users 'json'", $output, $return_var);
83+
exec (HESTIA_CMD."v-list-sys-users 'json'", $output, $return_var);
8484
$users = json_decode(implode('', $output), true);
8585
unset($output);
8686

web/add/mail/index.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
// Add mail domain
5959
if (empty($_SESSION['error_msg'])) {
60-
exec (VESTA_CMD."v-add-mail-domain ".$user." ".$v_domain." ".$v_antispam." ".$v_antivirus." ".$v_dkim, $output, $return_var);
60+
exec (HESTIA_CMD."v-add-mail-domain ".$user." ".$v_domain." ".$v_antispam." ".$v_antivirus." ".$v_dkim, $output, $return_var);
6161
check_return_code($return_var,$output);
6262
unset($output);
6363
}
@@ -119,7 +119,7 @@
119119
$fp = fopen($v_password, "w");
120120
fwrite($fp, $_POST['v_password']."\n");
121121
fclose($fp);
122-
exec (VESTA_CMD."v-add-mail-account ".$user." ".$v_domain." ".$v_account." ".$v_password." ".$v_quota, $output, $return_var);
122+
exec (HESTIA_CMD."v-add-mail-account ".$user." ".$v_domain." ".$v_account." ".$v_password." ".$v_quota, $output, $return_var);
123123
check_return_code($return_var,$output);
124124
unset($output);
125125
unlink($v_password);
@@ -136,7 +136,7 @@
136136
foreach ($aliases as $alias) {
137137
$alias = escapeshellarg($alias);
138138
if (empty($_SESSION['error_msg'])) {
139-
exec (VESTA_CMD."v-add-mail-account-alias ".$user." ".$v_domain." ".$v_account." ".$alias, $output, $return_var);
139+
exec (HESTIA_CMD."v-add-mail-account-alias ".$user." ".$v_domain." ".$v_account." ".$alias, $output, $return_var);
140140
check_return_code($return_var,$output);
141141
unset($output);
142142
}
@@ -153,7 +153,7 @@
153153
foreach ($fwd as $forward) {
154154
$forward = escapeshellarg($forward);
155155
if (empty($_SESSION['error_msg'])) {
156-
exec (VESTA_CMD."v-add-mail-account-forward ".$user." ".$v_domain." ".$v_account." ".$forward, $output, $return_var);
156+
exec (HESTIA_CMD."v-add-mail-account-forward ".$user." ".$v_domain." ".$v_account." ".$forward, $output, $return_var);
157157
check_return_code($return_var,$output);
158158
unset($output);
159159
}
@@ -162,7 +162,7 @@
162162

163163
// Add fwd_only flag
164164
if ((!empty($_POST['v_fwd_only'])) && (empty($_SESSION['error_msg']))) {
165-
exec (VESTA_CMD."v-add-mail-account-fwd-only ".$user." ".$v_domain." ".$v_account, $output, $return_var);
165+
exec (HESTIA_CMD."v-add-mail-account-fwd-only ".$user." ".$v_domain." ".$v_account, $output, $return_var);
166166
check_return_code($return_var,$output);
167167
unset($output);
168168
}

0 commit comments

Comments
 (0)