mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
UI improvements
This commit is contained in:
parent
f11c778f13
commit
60f9f276b8
49 changed files with 256 additions and 125 deletions
|
@ -35,7 +35,7 @@ unset($output);
|
|||
$v_username = $user;
|
||||
$v_database = $_GET['database'];
|
||||
$v_dbuser = $data[$v_database]['DBUSER'];
|
||||
$v_password = "••••••••";
|
||||
$v_password = "";
|
||||
$v_host = $data[$v_database]['HOST'];
|
||||
$v_type = $data[$v_database]['TYPE'];
|
||||
$v_charset = $data[$v_database]['CHARSET'];
|
||||
|
@ -63,7 +63,7 @@ if (!empty($_POST['save'])) {
|
|||
}
|
||||
|
||||
// Change database 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");
|
||||
|
@ -72,7 +72,7 @@ if (!empty($_POST['save'])) {
|
|||
check_return_code($return_var,$output);
|
||||
unset($output);
|
||||
unlink($v_password);
|
||||
$v_password = "••••••••";
|
||||
$v_password = escapeshellarg($_POST['v_password']);
|
||||
}
|
||||
|
||||
// Set success message
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue