|
@@ -38,6 +38,7 @@ $v_lname = $data[$v_username]['LNAME'];
|
|
|
$v_shell = $data[$v_username]['SHELL'];
|
|
$v_shell = $data[$v_username]['SHELL'];
|
|
|
$v_twofa = $data[$v_username]['TWOFA'];
|
|
$v_twofa = $data[$v_username]['TWOFA'];
|
|
|
$v_qrcode = $data[$v_username]['QRCODE'];
|
|
$v_qrcode = $data[$v_username]['QRCODE'];
|
|
|
|
|
+$v_phpcli = $data[$v_username]['PHPCLI'];
|
|
|
$v_ns = $data[$v_username]['NS'];
|
|
$v_ns = $data[$v_username]['NS'];
|
|
|
$nameservers = explode(",", $v_ns);
|
|
$nameservers = explode(",", $v_ns);
|
|
|
$v_ns1 = $nameservers[0];
|
|
$v_ns1 = $nameservers[0];
|
|
@@ -73,6 +74,14 @@ exec (HESTIA_CMD."v-list-sys-shells json", $output, $return_var);
|
|
|
$shells = json_decode(implode('', $output), true);
|
|
$shells = json_decode(implode('', $output), true);
|
|
|
unset($output);
|
|
unset($output);
|
|
|
|
|
|
|
|
|
|
+//List PHP Versions
|
|
|
|
|
+// List supported php versions
|
|
|
|
|
+exec (HESTIA_CMD."v-list-sys-php json", $output, $return_var);
|
|
|
|
|
+$php_versions = json_decode(implode('', $output), true);
|
|
|
|
|
+unset($output);
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
// Are you admin?
|
|
// Are you admin?
|
|
|
|
|
|
|
|
// Check POST request
|
|
// Check POST request
|
|
@@ -131,6 +140,14 @@ if (!empty($_POST['save'])) {
|
|
|
unset($output);
|
|
unset($output);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // Change phpcli (admin only)
|
|
|
|
|
+ if (($v_phpcli != $_POST['v_phpcli']) && ($_SESSION['user'] == 'admin') && (empty($_SESSION['error_msg']))) {
|
|
|
|
|
+ $v_phpcli = escapeshellarg($_POST['v_phpcli']);
|
|
|
|
|
+ exec (HESTIA_CMD."v-change-user-php-cli ".escapeshellarg($v_username)." ".$v_phpcli, $output, $return_var);
|
|
|
|
|
+ check_return_code($return_var,$output);
|
|
|
|
|
+ unset($output);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// Change language
|
|
// Change language
|
|
|
if (($v_language != $_POST['v_language']) && (empty($_SESSION['error_msg']))) {
|
|
if (($v_language != $_POST['v_language']) && (empty($_SESSION['error_msg']))) {
|
|
|
$v_language = escapeshellarg($_POST['v_language']);
|
|
$v_language = escapeshellarg($_POST['v_language']);
|