mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
i18n integration
This commit is contained in:
parent
a8a86aced9
commit
fb216fc3ee
18 changed files with 288 additions and 225 deletions
|
@ -34,7 +34,7 @@ if ($_SESSION['user'] == 'admin') {
|
|||
$v_email = escapeshellarg($_POST['v_email']);
|
||||
$v_fname = escapeshellarg($_POST['v_fname']);
|
||||
$v_lname = escapeshellarg($_POST['v_lname']);
|
||||
if (empty($_POST['v_notify'])) $v_notify = 'off';
|
||||
$v_notify = $_POST['v_notify'];
|
||||
|
||||
// Validate email
|
||||
if (!filter_var($_POST['v_email'], FILTER_VALIDATE_EMAIL)) {
|
||||
|
@ -60,8 +60,8 @@ if ($_SESSION['user'] == 'admin') {
|
|||
if (empty($error)) $error = _('Error: vesta did not return any output.');
|
||||
$_SESSION['error_msg'] = $error;
|
||||
} else {
|
||||
if (empty($v_notify)) {
|
||||
$to = $_POST['v_email'];
|
||||
if (!empty($v_notify)) {
|
||||
$to = $_POST['v_notify'];
|
||||
$subject = _("Welcome to Vesta Control Panel");
|
||||
$hostname = exec('hostname');
|
||||
$from = _('MAIL_FROM',$hostname);
|
||||
|
@ -80,6 +80,7 @@ if ($_SESSION['user'] == 'admin') {
|
|||
unset($v_email);
|
||||
unset($v_fname);
|
||||
unset($v_lname);
|
||||
unset($v_notify);
|
||||
}
|
||||
unset($output);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue