mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
password transmission via tmp files
This commit is contained in:
parent
1021bd4ab2
commit
1a7612cc66
14 changed files with 172 additions and 87 deletions
|
@ -87,7 +87,6 @@ if (!empty($_POST['ok_acc'])) {
|
|||
$v_domain = escapeshellarg($_POST['v_domain']);
|
||||
$v_domain = strtolower($v_domain);
|
||||
$v_account = escapeshellarg($_POST['v_account']);
|
||||
$v_password = escapeshellarg($_POST['v_password']);
|
||||
$v_quota = escapeshellarg($_POST['v_quota']);
|
||||
$v_aliases = $_POST['v_aliases'];
|
||||
$v_fwd = $_POST['v_fwd'];
|
||||
|
@ -96,9 +95,15 @@ if (!empty($_POST['ok_acc'])) {
|
|||
|
||||
// Add Mail Account
|
||||
if (empty($_SESSION['error_msg'])) {
|
||||
$v_password = tempnam("/tmp","vst");
|
||||
$fp = fopen($v_password, "w");
|
||||
fwrite($fp, $_POST['v_password']."\n");
|
||||
fclose($fp);
|
||||
exec (VESTA_CMD."v-add-mail-account ".$user." ".$v_domain." ".$v_account." ".$v_password." ".$v_quota, $output, $return_var);
|
||||
check_return_code($return_var,$output);
|
||||
unset($output);
|
||||
unlink($v_password);
|
||||
$v_password = escapeshellarg($_POST['v_password']);
|
||||
}
|
||||
|
||||
// Add Aliases
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue