mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
UI improvements
This commit is contained in:
parent
f11c778f13
commit
60f9f276b8
49 changed files with 256 additions and 125 deletions
|
@ -32,7 +32,7 @@ $data = json_decode(implode('', $output), true);
|
|||
unset($output);
|
||||
|
||||
// Parse user
|
||||
$v_password = "••••••••";
|
||||
$v_password = "";
|
||||
$v_email = $data[$v_username]['CONTACT'];
|
||||
$v_package = $data[$v_username]['PACKAGE'];
|
||||
$v_language = $data[$v_username]['LANGUAGE'];
|
||||
|
@ -75,7 +75,7 @@ unset($output);
|
|||
if (!empty($_POST['save'])) {
|
||||
|
||||
// Change password
|
||||
if (($v_password != $_POST['v_password']) && (empty($_SESSION['error_msg']))) {
|
||||
if ((!empty($_POST['v_password'])) && (empty($_SESSION['error_msg']))) {
|
||||
$v_password = tempnam("/tmp","vst");
|
||||
$fp = fopen($v_password, "w");
|
||||
fwrite($fp, $_POST['v_password']."\n");
|
||||
|
@ -84,7 +84,7 @@ if (!empty($_POST['save'])) {
|
|||
check_return_code($return_var,$output);
|
||||
unset($output);
|
||||
unlink($v_password);
|
||||
$v_password = "••••••••";
|
||||
$v_password = escapeshellarg($_POST['v_password']);
|
||||
}
|
||||
|
||||
// Change package (admin only)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue