PALANG -> LANG, pVar -> Var

This commit is contained in:
mischa 2022-09-03 09:30:40 +00:00
parent ea8336ce5c
commit 577680b10d
55 changed files with 627 additions and 628 deletions

View File

@ -41,11 +41,11 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$goto = filter_var($goto, FILTER_VALIDATE_EMAIL); $goto = filter_var($goto, FILTER_VALIDATE_EMAIL);
if ($list_domains[$domain_key]['alias_count'] < 0 || $list_domains[$domain_key]['alias_count'] >= $list_domains[$domain_key]['aliases']) { if ($list_domains[$domain_key]['alias_count'] < 0 || $list_domains[$domain_key]['alias_count'] >= $list_domains[$domain_key]['aliases']) {
$message = $PALANG['pCreate_alias_address_text_error2']; $message = $LANG['Create_alias_address_text_error2'];
} }
if (empty($address) || empty($goto)) { if (empty($address) || empty($goto)) {
$message = $PALANG['pCreate_alias_address_text_error1']; $message = $LANG['Create_alias_address_text_error1'];
} }
if (empty($message)) { if (empty($message)) {
@ -57,11 +57,11 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$sth->bindParam(3, $domain, PDO::PARAM_STR); $sth->bindParam(3, $domain, PDO::PARAM_STR);
$sth->execute(); $sth->execute();
logging(ADMIN_EMAIL, $domain, "create alias", "$from -> $goto"); logging(ADMIN_EMAIL, $domain, "create alias", "$from -> $goto");
$message = $PALANG['pCreate_alias_result_succes'] . "<br />($from -> $goto)</br />"; $message = $LANG['Create_alias_result_succes'] . "<br />($from -> $goto)</br />";
$address = ''; $address = '';
$goto = ''; $goto = '';
} catch(PDOException $e) { } catch(PDOException $e) {
$message = $PALANG['pCreate_alias_result_error'] . "<br />($from -> $goto) - $e<br />"; $message = $LANG['Create_alias_result_error'] . "<br />($from -> $goto) - $e<br />";
} }
} }
} }

View File

@ -42,15 +42,15 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$from = filter_var($username . '@' . $domain, FILTER_VALIDATE_EMAIL); $from = filter_var($username . '@' . $domain, FILTER_VALIDATE_EMAIL);
if ($list_domains[$domain_key]['mailbox_count'] < 0 || $list_domains[$domain_key]['mailbox_count'] >= $list_domains[$domain_key]['mailboxes']) { if ($list_domains[$domain_key]['mailbox_count'] < 0 || $list_domains[$domain_key]['mailbox_count'] >= $list_domains[$domain_key]['mailboxes']) {
$message = $PALANG['pCreate_mailbox_username_text_error3']; $message = $LANG['Create_mailbox_username_text_error3'];
} }
if (empty($username)) { if (empty($username)) {
$message = $PALANG['pCreate_mailbox_username_text_error1']; $message = $LANG['Create_mailbox_username_text_error1'];
} }
if (empty($password1) or ($password1 != $password2)) { if (empty($password1) or ($password1 != $password2)) {
$message = $PALANG['pCreate_mailbox_password_text_error']; $message = $LANG['Create_mailbox_password_text_error'];
} }
if (empty($message)) { if (empty($message)) {
@ -65,7 +65,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$sth->execute(); $sth->execute();
$username = ''; $username = '';
} catch(PDOException $e) { } catch(PDOException $e) {
$message = $PALANG['pCreate_alias_result_error'] . "<br />($from) - $e<br />"; $message = $LANG['Create_alias_result_error'] . "<br />($from) - $e<br />";
} }
try { try {
@ -78,11 +78,11 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$sth->bindParam(5, $domain, PDO::PARAM_STR); $sth->bindParam(5, $domain, PDO::PARAM_STR);
$sth->execute(); $sth->execute();
logging(ADMIN_EMAIL, $domain, "create mailbox", "$from"); logging(ADMIN_EMAIL, $domain, "create mailbox", "$from");
$message = $PALANG['pCreate_mailbox_result_succes'] . "<br />($from)"; $message = $LANG['Create_mailbox_result_succes'] . "<br />($from)";
$username = ''; $username = '';
$name = ''; $name = '';
} catch(PDOException $e) { } catch(PDOException $e) {
$message = $PALANG['pCreate_alias_result_error'] . "<br />($from) - $e<br />"; $message = $LANG['Create_alias_result_error'] . "<br />($from) - $e<br />";
} }
} }
} }

View File

@ -48,15 +48,15 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
if ($action == 'add') { if ($action == 'add') {
if (empty($username) || in_array($username, array_column($list_admins, 'username'))) { if (empty($username) || in_array($username, array_column($list_admins, 'username'))) {
$message = $PALANG['pAdminAdd_admin_username_error']; $message = $LANG['AdminAdd_admin_username_error'];
} }
if (empty($password1) || $password1 != $password2) { if (empty($password1) || $password1 != $password2) {
$message = $PALANG['pAdminAdd_admin_password_error']; $message = $LANG['AdminAdd_admin_password_error'];
} }
if (empty($domains['domains'])) { if (empty($domains['domains'])) {
$message = $PALANG['pAdminAdd_admin_domain_error']; $message = $LANG['AdminAdd_admin_domain_error'];
} }
if (empty($message)) { if (empty($message)) {
@ -73,16 +73,16 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$sth->bindParam(2, $row, PDO::PARAM_STR); $sth->bindParam(2, $row, PDO::PARAM_STR);
$sth->execute(); $sth->execute();
} }
$message = $PALANG['pAdminAdd_admin_result_succes'] . "<br />($username)</br />"; $message = $LANG['AdminAdd_admin_result_succes'] . "<br />($username)</br />";
} catch(PDOException $e) { } catch(PDOException $e) {
$message = $PALANG['pAdminAdd_admin_result_error'] . "<br />($username)<br />"; $message = $LANG['AdminAdd_admin_result_error'] . "<br />($username)<br />";
} }
} }
} }
if (in_array($username, array_column($list_admins, 'username')) && $action == 'edit') { if (in_array($username, array_column($list_admins, 'username')) && $action == 'edit') {
if ($password1 != $password2) { if ($password1 != $password2) {
$message = $PALANG['pAdminAdd_admin_password_error']; $message = $LANG['AdminAdd_admin_password_error'];
} }
if (empty($message)) { if (empty($message)) {
try { try {
@ -93,12 +93,12 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$sth->bindParam(2, $username, PDO::PARAM_STR); $sth->bindParam(2, $username, PDO::PARAM_STR);
$sth->execute(); $sth->execute();
} catch(PDOException $e) { } catch(PDOException $e) {
$message = $PALANG['pAdminEdit_admin_result_error'] . "<br />($username)<br />"; $message = $LANG['AdminEdit_admin_result_error'] . "<br />($username)<br />";
} }
} }
if (empty($domains['domains'])) { if (empty($domains['domains'])) {
$message = $PALANG['pAdminAdd_admin_domain_error']; $message = $LANG['AdminAdd_admin_domain_error'];
} }
if (empty($message)) { if (empty($message)) {
try { try {
@ -121,9 +121,9 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
} }
header("Location: list-admin.php"); header("Location: list-admin.php");
} catch (RuntimeException $e) { } catch (RuntimeException $e) {
$message = $PALANG['pAdminEdit_admin_result_error']; $message = $LANG['AdminEdit_admin_result_error'];
} catch (PDOException $e) { } catch (PDOException $e) {
$message = $PALANG['pAdminEdit_admin_result_error']; $message = $LANG['AdminEdit_admin_result_error'];
} }
} }
} }

View File

@ -153,9 +153,9 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") {
header("Location: list-virtual.php?domain=$domain"); header("Location: list-virtual.php?domain=$domain");
} catch (RuntimeException $e) { } catch (RuntimeException $e) {
$message = $PALANG['pDelete_delete_error'] . "<b>$delete</b> (" . $e->getMessage() . ")!</span>"; $message = $LANG['Delete_delete_error'] . "<b>$delete</b> (" . $e->getMessage() . ")!</span>";
} catch (PDOException $e) { } catch (PDOException $e) {
$message = $PALANG['pDelete_delete_error'] . "<b>$delete</b> (alias)!</span> " . $e-getMessage(); $message = $LANG['Delete_delete_error'] . "<b>$delete</b> (alias)!</span> " . $e-getMessage();
} }
try { try {
@ -176,9 +176,9 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") {
header("Location: list-virtual.php?domain=$domain"); header("Location: list-virtual.php?domain=$domain");
} catch (RuntimeException $e) { } catch (RuntimeException $e) {
$message = $PALANG['pDelete_delete_error'] . "<b>$delete</b> (" . $e->getMessage() . ")!</span>"; $message = $LANG['Delete_delete_error'] . "<b>$delete</b> (" . $e->getMessage() . ")!</span>";
} catch (PDOException $e) { } catch (PDOException $e) {
$message = $PALANG['pDelete_delete_error'] . "<b>$delete</b> (mailbox)!</span>"; $message = $LANG['Delete_delete_error'] . "<b>$delete</b> (mailbox)!</span>";
} }
} }
} }

View File

@ -57,12 +57,12 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$sth->bindParam(3, $aliases, PDO::PARAM_INT); $sth->bindParam(3, $aliases, PDO::PARAM_INT);
$sth->bindParam(4, $mailboxes, PDO::PARAM_INT); $sth->bindParam(4, $mailboxes, PDO::PARAM_INT);
$sth->execute(); $sth->execute();
$message = $PALANG['pAdminAdd_domain_result_succes'] . "<br />($domain)</br />"; $message = $LANG['AdminAdd_domain_result_succes'] . "<br />($domain)</br />";
} catch(PDOException $e) { } catch(PDOException $e) {
$message = $PALANG['pAdminAdd_domain_result_error'] . "<br />($domain)<br />"; $message = $LANG['AdminAdd_domain_result_error'] . "<br />($domain)<br />";
} }
} else { } else {
$message = $PALANG['pAdminAdd_domain_domain_text_error']; $message = $LANG['AdminAdd_domain_domain_text_error'];
} }
if (in_array($domain, array_column($list_domains, 'domain')) && $action == 'edit') { if (in_array($domain, array_column($list_domains, 'domain')) && $action == 'edit') {
@ -76,7 +76,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$sth->execute(); $sth->execute();
header("Location: list-domain.php"); header("Location: list-domain.php");
} catch(PDOException $e) { } catch(PDOException $e) {
$message = $PALANG['pAdminEdit_domain_result_error']; $message = $LANG['AdminEdit_domain_result_error'];
} }
} }
} }

View File

@ -32,12 +32,12 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") {
$row = db_array($result['result']); $row = db_array($result['result']);
$tGoto = $row['goto']; $tGoto = $row['goto'];
} else { } else {
$tMessage = $PALANG['pEdit_alias_address_error']; $tMessage = $LANG['Edit_alias_address_error'];
} }
} }
if ($_SERVER['REQUEST_METHOD'] == "POST") { if ($_SERVER['REQUEST_METHOD'] == "POST") {
$pEdit_alias_goto = $PALANG['pEdit_alias_goto']; $pEdit_alias_goto = $LANG['Edit_alias_goto'];
$fAddress = escape_string($_GET['address']); $fAddress = escape_string($_GET['address']);
$fAddress = strtolower($fAddress); $fAddress = strtolower($fAddress);
@ -48,7 +48,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
if (empty($fGoto)) { if (empty($fGoto)) {
$error = 1; $error = 1;
$tGoto = $fGoto; $tGoto = $fGoto;
$tMessage = $PALANG['pEdit_alias_goto_text_error1']; $tMessage = $LANG['Edit_alias_goto_text_error1'];
} }
$goto = preg_replace('/\\\r\\\n/', ',', $fGoto); $goto = preg_replace('/\\\r\\\n/', ',', $fGoto);
@ -64,14 +64,14 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
{ {
$error = 1; $error = 1;
$tGoto = $goto; $tGoto = $goto;
$tMessage = $PALANG['pEdit_alias_goto_text_error2'] . "$array[$i]</div>"; $tMessage = $LANG['Edit_alias_goto_text_error2'] . "$array[$i]</div>";
} }
} }
if ($error != 1) { if ($error != 1) {
$result = db_query("UPDATE alias SET goto='$goto',modified=NOW() WHERE address='$fAddress' AND domain='$fDomain'"); $result = db_query("UPDATE alias SET goto='$goto',modified=NOW() WHERE address='$fAddress' AND domain='$fDomain'");
if ($result['rows'] != 1) { if ($result['rows'] != 1) {
$tMessage = $PALANG['pEdit_alias_result_error']; $tMessage = $LANG['Edit_alias_result_error'];
} else { } else {
db_log($CONF['admin_email'], $fDomain, "edit alias", "$fAddress -> $goto"); db_log($CONF['admin_email'], $fDomain, "edit alias", "$fAddress -> $goto");

View File

@ -39,13 +39,13 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") {
$tQuota = $row['quota'] / $CONF['quota_multiplier']; $tQuota = $row['quota'] / $CONF['quota_multiplier'];
$tActive = $row['active']; $tActive = $row['active'];
} else { } else {
$tMessage = $PALANG['pEdit_mailbox_login_error']; $tMessage = $LANG['Edit_mailbox_login_error'];
} }
} }
if ($_SERVER['REQUEST_METHOD'] == "POST") { if ($_SERVER['REQUEST_METHOD'] == "POST") {
$pEdit_mailbox_password_text = $PALANG['pEdit_mailbox_password_text_error']; $pEdit_mailbox_password_text = $LANG['Edit_mailbox_password_text_error'];
$pEdit_mailbox_quota_text = $PALANG['pEdit_mailbox_quota_text']; $pEdit_mailbox_quota_text = $LANG['Edit_mailbox_quota_text'];
$fUsername = escape_string($_GET['username']); $fUsername = escape_string($_GET['username']);
$fUsername = strtolower($fUsername); $fUsername = strtolower($fUsername);
@ -63,7 +63,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$tName = $fName; $tName = $fName;
$tQuota = $fQuota; $tQuota = $fQuota;
$tActive = $fActive; $tActive = $fActive;
$pEdit_mailbox_password_text = $PALANG['pEdit_mailbox_password_text_error']; $pEdit_mailbox_password_text = $LANG['Edit_mailbox_password_text_error'];
} }
if ($CONF['quota'] == "YES") { if ($CONF['quota'] == "YES") {
@ -72,7 +72,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$tName = $fName; $tName = $fName;
$tQuota = $fQuota; $tQuota = $fQuota;
$tActive = $fActive; $tActive = $fActive;
$pEdit_mailbox_quota_text = $PALANG['pEdit_mailbox_quota_text_error']; $pEdit_mailbox_quota_text = $LANG['Edit_mailbox_quota_text_error'];
} }
} }
@ -97,7 +97,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
} }
if ($result['rows'] != 1) { if ($result['rows'] != 1) {
$tMessage = $PALANG['pEdit_mailbox_result_error']; $tMessage = $LANG['Edit_mailbox_result_error'];
} else { } else {
db_log($CONF['admin_email'], $fDomain, "edit mailbox", $fUsername); db_log($CONF['admin_email'], $fDomain, "edit mailbox", $fUsername);
header("Location: list-virtual.php?domain=$fDomain"); header("Location: list-virtual.php?domain=$fDomain");

View File

@ -31,13 +31,13 @@ $SESSID_USERNAME = check_session();
$list_domains = list_domains_for_admin($SESSID_USERNAME); $list_domains = list_domains_for_admin($SESSID_USERNAME);
if ($_SERVER['REQUEST_METHOD'] == "GET") { if ($_SERVER['REQUEST_METHOD'] == "GET") {
$pCreate_alias_goto_text = $PALANG['pCreate_alias_goto_text']; $pCreate_alias_goto_text = $LANG['Create_alias_goto_text'];
if (isset($_GET['domain'])) $tDomain = escape_string($_GET['domain']); if (isset($_GET['domain'])) $tDomain = escape_string($_GET['domain']);
} }
if ($_SERVER['REQUEST_METHOD'] == "POST") { if ($_SERVER['REQUEST_METHOD'] == "POST") {
$pCreate_alias_goto_text = $PALANG['pCreate_alias_goto_text']; $pCreate_alias_goto_text = $LANG['Create_alias_goto_text'];
$fAddress = escape_string($_POST['fAddress']) . "@" . escape_string($_POST['fDomain']); $fAddress = escape_string($_POST['fAddress']) . "@" . escape_string($_POST['fDomain']);
$fAddress = strtolower($fAddress); $fAddress = strtolower($fAddress);
@ -54,7 +54,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$tAddress = escape_string($_POST['fAddress']); $tAddress = escape_string($_POST['fAddress']);
$tGoto = $fGoto; $tGoto = $fGoto;
$tDomain = $fDomain; $tDomain = $fDomain;
$pCreate_alias_address_text = $PALANG['pCreate_alias_address_text_error1']; $pCreate_alias_address_text = $LANG['Create_alias_address_text_error1'];
} }
if (!check_alias($fDomain)) { if (!check_alias($fDomain)) {
@ -62,7 +62,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$tAddress = escape_string($_POST['fAddress']); $tAddress = escape_string($_POST['fAddress']);
$tGoto = $fGoto; $tGoto = $fGoto;
$tDomain = $fDomain; $tDomain = $fDomain;
$pCreate_alias_address_text = $PALANG['pCreate_alias_address_text_error3']; $pCreate_alias_address_text = $LANG['Create_alias_address_text_error3'];
} }
if (empty($fAddress) or !check_email($fAddress)) { if (empty($fAddress) or !check_email($fAddress)) {
@ -70,7 +70,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$tAddress = escape_string($_POST['fAddress']); $tAddress = escape_string($_POST['fAddress']);
$tGoto = $fGoto; $tGoto = $fGoto;
$tDomain = $fDomain; $tDomain = $fDomain;
$pCreate_alias_address_text = $PALANG['pCreate_alias_address_text_error1']; $pCreate_alias_address_text = $LANG['Create_alias_address_text_error1'];
} }
if (empty($fGoto) or !check_email($fGoto)) { if (empty($fGoto) or !check_email($fGoto)) {
@ -78,7 +78,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$tAddress = escape_string($_POST['fAddress']); $tAddress = escape_string($_POST['fAddress']);
$tGoto = $fGoto; $tGoto = $fGoto;
$tDomain = $fDomain; $tDomain = $fDomain;
$pCreate_alias_goto_text = $PALANG['pCreate_alias_goto_text_error']; $pCreate_alias_goto_text = $LANG['Create_alias_goto_text_error'];
} }
if (escape_string($_POST['fAddress']) == "*") $fAddress = "@" . escape_string($_POST['fDomain']); if (escape_string($_POST['fAddress']) == "*") $fAddress = "@" . escape_string($_POST['fDomain']);
@ -89,7 +89,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$tAddress = escape_string($_POST['fAddress']); $tAddress = escape_string($_POST['fAddress']);
$tGoto = $fGoto; $tGoto = $fGoto;
$tDomain = $fDomain; $tDomain = $fDomain;
$pCreate_alias_address_text = $PALANG['pCreate_alias_address_text_error2']; $pCreate_alias_address_text = $LANG['Create_alias_address_text_error2'];
} }
if ($error != 1) { if ($error != 1) {
@ -98,12 +98,12 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$result = db_query("INSERT INTO alias (address,goto,domain,created,modified) VALUES ('$fAddress','$fGoto','$fDomain',NOW(),NOW())"); $result = db_query("INSERT INTO alias (address,goto,domain,created,modified) VALUES ('$fAddress','$fGoto','$fDomain',NOW(),NOW())");
if ($result['rows'] != 1) { if ($result['rows'] != 1) {
$tDomain = $fDomain; $tDomain = $fDomain;
$tMessage = $PALANG['pCreate_alias_result_error'] . "<br />($fAddress -> $fGoto)<br />\n"; $tMessage = $LANG['Create_alias_result_error'] . "<br />($fAddress -> $fGoto)<br />\n";
} else { } else {
db_log($SESSID_USERNAME, $fDomain, "create alias", "$fAddress -> $fGoto"); db_log($SESSID_USERNAME, $fDomain, "create alias", "$fAddress -> $fGoto");
$tDomain = $fDomain; $tDomain = $fDomain;
$tMessage = $PALANG['pCreate_alias_result_succes'] . "<br />($fAddress -> $fGoto)<br />\n"; $tMessage = $LANG['Create_alias_result_succes'] . "<br />($fAddress -> $fGoto)<br />\n";
} }
} }
} }

View File

@ -39,17 +39,17 @@ $list_domains = list_domains_for_admin($SESSID_USERNAME);
if ($_SERVER['REQUEST_METHOD'] == "GET") { if ($_SERVER['REQUEST_METHOD'] == "GET") {
$tQuota = $CONF['maxquota']; $tQuota = $CONF['maxquota'];
$pCreate_mailbox_password_text = $PALANG['pCreate_mailbox_password_text']; $pCreate_mailbox_password_text = $LANG['Create_mailbox_password_text'];
$pCreate_mailbox_name_text = $PALANG['pCreate_mailbox_name_text']; $pCreate_mailbox_name_text = $LANG['Create_mailbox_name_text'];
$pCreate_mailbox_quota_text = $PALANG['pCreate_mailbox_quota_text']; $pCreate_mailbox_quota_text = $LANG['Create_mailbox_quota_text'];
if (isset($_GET['domain'])) $tDomain = escape_string($_GET['domain']); if (isset($_GET['domain'])) $tDomain = escape_string($_GET['domain']);
} }
if ($_SERVER['REQUEST_METHOD'] == "POST") { if ($_SERVER['REQUEST_METHOD'] == "POST") {
$pCreate_mailbox_password_text = $PALANG['pCreate_mailbox_password_text']; $pCreate_mailbox_password_text = $LANG['Create_mailbox_password_text'];
$pCreate_mailbox_name_text = $PALANG['pCreate_mailbox_name_text']; $pCreate_mailbox_name_text = $LANG['Create_mailbox_name_text'];
$pCreate_mailbox_quota_text = $PALANG['pCreate_mailbox_quota_text']; $pCreate_mailbox_quota_text = $LANG['Create_mailbox_quota_text'];
$fUsername = escape_string($_POST['fUsername']) . "@" . escape_string($_POST['fDomain']); $fUsername = escape_string($_POST['fUsername']) . "@" . escape_string($_POST['fDomain']);
$fUsername = strtolower($fUsername); $fUsername = strtolower($fUsername);
@ -67,7 +67,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$tName = $fName; $tName = $fName;
$tQuota = $fQuota; $tQuota = $fQuota;
$tDomain = $fDomain; $tDomain = $fDomain;
$pCreate_mailbox_username_text = $PALANG['pCreate_mailbox_username_text_error1']; $pCreate_mailbox_username_text = $LANG['Create_mailbox_username_text_error1'];
} }
if (!check_mailbox($fDomain)) { if (!check_mailbox($fDomain)) {
@ -76,7 +76,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$tName = $fName; $tName = $fName;
$tQuota = $fQuota; $tQuota = $fQuota;
$tDomain = $fDomain; $tDomain = $fDomain;
$pCreate_mailbox_username_text = $PALANG['pCreate_mailbox_username_text_error3']; $pCreate_mailbox_username_text = $LANG['Create_mailbox_username_text_error3'];
} }
if (empty($fUsername) or !check_email($fUsername)) { if (empty($fUsername) or !check_email($fUsername)) {
@ -85,7 +85,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$tName = $fName; $tName = $fName;
$tQuota = $fQuota; $tQuota = $fQuota;
$tDomain = $fDomain; $tDomain = $fDomain;
$pCreate_mailbox_username_text = $PALANG['pCreate_mailbox_username_text_error1']; $pCreate_mailbox_username_text = $LANG['Create_mailbox_username_text_error1'];
} }
if (empty($fPassword) or ($fPassword != $fPassword2)) { if (empty($fPassword) or ($fPassword != $fPassword2)) {
@ -97,7 +97,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$tName = $fName; $tName = $fName;
$tQuota = $fQuota; $tQuota = $fQuota;
$tDomain = $fDomain; $tDomain = $fDomain;
$pCreate_mailbox_password_text = $PALANG['pCreate_mailbox_password_text_error']; $pCreate_mailbox_password_text = $LANG['Create_mailbox_password_text_error'];
} }
} }
@ -108,7 +108,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$tName = $fName; $tName = $fName;
$tQuota = $fQuota; $tQuota = $fQuota;
$tDomain = $fDomain; $tDomain = $fDomain;
$pCreate_mailbox_quota_text = $PALANG['pCreate_mailbox_quota_text_error']; $pCreate_mailbox_quota_text = $LANG['Create_mailbox_quota_text_error'];
} }
} }
@ -119,7 +119,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$tName = $fName; $tName = $fName;
$tQuota = $fQuota; $tQuota = $fQuota;
$tDomain = $fDomain; $tDomain = $fDomain;
$pCreate_mailbox_username_text = $PALANG['pCreate_mailbox_username_text_error2']; $pCreate_mailbox_username_text = $LANG['Create_mailbox_username_text_error2'];
} }
if ($error != 1) { if ($error != 1) {
@ -150,18 +150,18 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$result = db_query("INSERT INTO alias (address,goto,domain,created,modified,active) VALUES ('$fUsername','vmail','$fDomain',NOW(),NOW(),'$fActive')"); $result = db_query("INSERT INTO alias (address,goto,domain,created,modified,active) VALUES ('$fUsername','vmail','$fDomain',NOW(),NOW(),'$fActive')");
if ($result['rows'] != 1) { if ($result['rows'] != 1) {
$tDomain = $fDomain; $tDomain = $fDomain;
$tMessage = $PALANG['pAlias_result_error'] . "<br />($fUsername -> $fUsername)</br />"; $tMessage = $LANG['Alias_result_error'] . "<br />($fUsername -> $fUsername)</br />";
} }
$result = db_query("INSERT INTO mailbox (username,password,name,maildir,quota,domain,created,modified,active) VALUES ('$fUsername','$password','$fName','$maildir','$quota','$fDomain',NOW(),NOW(),'$fActive')"); $result = db_query("INSERT INTO mailbox (username,password,name,maildir,quota,domain,created,modified,active) VALUES ('$fUsername','$password','$fName','$maildir','$quota','$fDomain',NOW(),NOW(),'$fActive')");
if ($result['rows'] != 1) { if ($result['rows'] != 1) {
$tDomain = $fDomain; $tDomain = $fDomain;
$tMessage .= $PALANG['pCreate_mailbox_result_error'] . "<br />($fUsername)<br />"; $tMessage .= $LANG['Create_mailbox_result_error'] . "<br />($fUsername)<br />";
} else { } else {
db_log($SESSID_USERNAME, $fDomain, "create mailbox", "$fUsername"); db_log($SESSID_USERNAME, $fDomain, "create mailbox", "$fUsername");
$tDomain = $fDomain; $tDomain = $fDomain;
$tMessage = $PALANG['pCreate_mailbox_result_succes'] . "<br />($fUsername"; $tMessage = $LANG['Create_mailbox_result_succes'] . "<br />($fUsername";
if ($CONF['generate_password'] == "YES") { if ($CONF['generate_password'] == "YES") {
$tMessage .= " / $fPassword)</br />"; $tMessage .= " / $fPassword)</br />";
} else { } else {
@ -172,15 +172,15 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
if ($fMail == "on") { if ($fMail == "on") {
$fTo = $fUsername; $fTo = $fUsername;
$fSubject = $PALANG['pSendmail_subject_text']; $fSubject = $LANG['Sendmail_subject_text'];
$fHeaders = "From: " . $SESSID_USERNAME . "\r\n"; $fHeaders = "From: " . $SESSID_USERNAME . "\r\n";
$fHeaders .= "Content-Type: text/plain; charset=utf-8\r\n"; $fHeaders .= "Content-Type: text/plain; charset=utf-8\r\n";
$fBody = $CONF['welcome_text']; $fBody = $CONF['welcome_text'];
if (!mail($fTo, $fSubject, $fBody, $fHeaders)) { if (!mail($fTo, $fSubject, $fBody, $fHeaders)) {
$tMessage .= "<br />" . $PALANG['pSendmail_result_error'] . "<br />"; $tMessage .= "<br />" . $LANG['Sendmail_result_error'] . "<br />";
} else { } else {
$tMessage .= "<br />" . $PALANG['pSendmail_result_succes'] . "<br />"; $tMessage .= "<br />" . $LANG['Sendmail_result_succes'] . "<br />";
} }
} }
} }

View File

@ -33,13 +33,13 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") {
if (in_array($_GET['domain'], array_column($list_domains, 'domain'))) { if (in_array($_GET['domain'], array_column($list_domains, 'domain'))) {
#if (!check_owner($SESSID_USERNAME, $fDomain)) { #if (!check_owner($SESSID_USERNAME, $fDomain)) {
$error = 1; $error = 1;
$tMessage = $PALANG['pDelete_domain_error'] . "<b>$fDomain</b>!</div>"; $tMessage = $LANG['Delete_domain_error'] . "<b>$fDomain</b>!</div>";
} else { } else {
$result = db_query("DELETE FROM alias WHERE address='$fDelete' AND domain='$fDomain'"); $result = db_query("DELETE FROM alias WHERE address='$fDelete' AND domain='$fDomain'");
if ($result['rows'] != 1) { if ($result['rows'] != 1) {
$error = 1; $error = 1;
$tMessage = $PALANG['pDelete_delete_error'] . "<b>$fDelete</b> (alias)!</div>"; $tMessage = $LANG['Delete_delete_error'] . "<b>$fDelete</b> (alias)!</div>";
} else { } else {
db_log($SESSID_USERNAME, $fDomain, "delete alias", $fDelete); db_log($SESSID_USERNAME, $fDomain, "delete alias", $fDelete);
} }
@ -49,7 +49,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") {
$result = db_query("DELETE FROM mailbox WHERE username='$fDelete' AND domain='$fDomain'"); $result = db_query("DELETE FROM mailbox WHERE username='$fDelete' AND domain='$fDomain'");
if ($result['rows'] != 1) { if ($result['rows'] != 1) {
$error = 1; $error = 1;
$tMessage = $PALANG['pDelete_delete_error'] . "<b>$fDelete</b> (mailbox)!</div>"; $tMessage = $LANG['Delete_delete_error'] . "<b>$fDelete</b> (mailbox)!</div>";
} else { } else {
db_query("DELETE FROM vacation WHERE email='$fDelete' AND domain='$fDomain'"); db_query("DELETE FROM vacation WHERE email='$fDelete' AND domain='$fDomain'");
db_log($SESSID_USERNAME, $fDomain, "delete mailbox", $fDelete); db_log($SESSID_USERNAME, $fDomain, "delete mailbox", $fDelete);

View File

@ -31,12 +31,12 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") {
if (!check_owner($SESSID_USERNAME, $fDomain)) { if (!check_owner($SESSID_USERNAME, $fDomain)) {
$error = 1; $error = 1;
$tMessage = $PALANG['pEdit_mailbox_domain_error'] . "<b>$fDomain</b>!</font>"; $tMessage = $LANG['Edit_mailbox_domain_error'] . "<b>$fDomain</b>!</font>";
} else { } else {
$result = db_query("UPDATE mailbox SET active=1-active WHERE username='$fUsername' AND domain='$fDomain'"); $result = db_query("UPDATE mailbox SET active=1-active WHERE username='$fUsername' AND domain='$fDomain'");
if ($result['rows'] != 1) { if ($result['rows'] != 1) {
$error = 1; $error = 1;
$tMessage = $PALANG['pEdit_mailbox_result_error']; $tMessage = $LANG['Edit_mailbox_result_error'];
} else { } else {
db_log($SESSID_USERNAME, $fDomain, "edit active", $fUsername); db_log($SESSID_USERNAME, $fDomain, "edit active", $fUsername);
} }

View File

@ -38,12 +38,12 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") {
$tGoto = $row['goto']; $tGoto = $row['goto'];
} }
} else { } else {
$tMessage = $PALANG['pEdit_alias_address_error']; $tMessage = $LANG['Edit_alias_address_error'];
} }
} }
if ($_SERVER['REQUEST_METHOD'] == "POST") { if ($_SERVER['REQUEST_METHOD'] == "POST") {
$pEdit_alias_goto = $PALANG['pEdit_alias_goto']; $pEdit_alias_goto = $LANG['Edit_alias_goto'];
$fAddress = escape_string($_GET['address']); $fAddress = escape_string($_GET['address']);
$fAddress = strtolower($fAddress); $fAddress = strtolower($fAddress);
@ -54,13 +54,13 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
if (!check_owner($SESSID_USERNAME, $fDomain)) { if (!check_owner($SESSID_USERNAME, $fDomain)) {
$error = 1; $error = 1;
$tGoto = $fGoto; $tGoto = $fGoto;
$tMessage = $PALANG['pEdit_alias_domain_error'] . "$fDomain</font>"; $tMessage = $LANG['Edit_alias_domain_error'] . "$fDomain</font>";
} }
if (empty($fGoto)) { if (empty($fGoto)) {
$error = 1; $error = 1;
$tGoto = $fGoto; $tGoto = $fGoto;
$tMessage = $PALANG['pEdit_alias_goto_text_error1']; $tMessage = $LANG['Edit_alias_goto_text_error1'];
} }
$goto = preg_replace('/\\\r\\\n/', ',', $fGoto); $goto = preg_replace('/\\\r\\\n/', ',', $fGoto);
@ -78,14 +78,14 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
{ {
$error = 1; $error = 1;
$tGoto = $goto; $tGoto = $goto;
$tMessage = $PALANG['pEdit_alias_goto_text_error2'] . "$array[$i]</div>"; $tMessage = $LANG['Edit_alias_goto_text_error2'] . "$array[$i]</div>";
} }
} }
if ($error != 1) { if ($error != 1) {
$result = db_query("UPDATE alias SET goto='$goto',modified=NOW() WHERE address='$fAddress' AND domain='$fDomain'"); $result = db_query("UPDATE alias SET goto='$goto',modified=NOW() WHERE address='$fAddress' AND domain='$fDomain'");
if ($result['rows'] != 1) { if ($result['rows'] != 1) {
$tMessage = $PALANG['pEdit_alias_result_error']; $tMessage = $LANG['Edit_alias_result_error'];
} else { } else {
db_log($SESSID_USERNAME, $fDomain, "edit alias", "$fAddress -> $goto"); db_log($SESSID_USERNAME, $fDomain, "edit alias", "$fAddress -> $goto");

View File

@ -45,7 +45,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") {
$tActive = $row['active']; $tActive = $row['active'];
} }
} else { } else {
$tMessage = $PALANG['pEdit_mailbox_login_error']; $tMessage = $LANG['Edit_mailbox_login_error'];
} }
include("./templates/header.tpl"); include("./templates/header.tpl");
@ -55,8 +55,8 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") {
} }
if ($_SERVER['REQUEST_METHOD'] == "POST") { if ($_SERVER['REQUEST_METHOD'] == "POST") {
$pEdit_mailbox_password_text = $PALANG['pEdit_mailbox_password_text_error']; $pEdit_mailbox_password_text = $LANG['Edit_mailbox_password_text_error'];
$pEdit_mailbox_quota_text = $PALANG['pEdit_mailbox_quota_text']; $pEdit_mailbox_quota_text = $LANG['Edit_mailbox_quota_text'];
$fUsername = escape_string($_GET['username']); $fUsername = escape_string($_GET['username']);
$fUsername = strtolower($fUsername); $fUsername = strtolower($fUsername);
@ -73,7 +73,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$tName = $fName; $tName = $fName;
$tQuota = $fQuota; $tQuota = $fQuota;
$tActive = $fActive; $tActive = $fActive;
$tMessage = $PALANG['pEdit_mailbox_domain_error'] . "$fDomain</font>"; $tMessage = $LANG['Edit_mailbox_domain_error'] . "$fDomain</font>";
} }
if ($fPassword != $fPassword2) { if ($fPassword != $fPassword2) {
@ -81,7 +81,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$tName = $fName; $tName = $fName;
$tQuota = $fQuota; $tQuota = $fQuota;
$tActive = $fActive; $tActive = $fActive;
$pEdit_mailbox_password_text = $PALANG['pEdit_mailbox_password_text_error']; $pEdit_mailbox_password_text = $LANG['Edit_mailbox_password_text_error'];
} }
if ($CONF['quota'] == "YES") { if ($CONF['quota'] == "YES") {
@ -90,7 +90,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$tName = $fName; $tName = $fName;
$tQuota = $fQuota; $tQuota = $fQuota;
$tActive = $fActive; $tActive = $fActive;
$pEdit_mailbox_quota_text = $PALANG['pEdit_mailbox_quota_text_error']; $pEdit_mailbox_quota_text = $LANG['Edit_mailbox_quota_text_error'];
} }
} }
@ -115,7 +115,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
} }
if ($result['rows'] != 1) { if ($result['rows'] != 1) {
$tMessage = $PALANG['pEdit_mailbox_result_error']; $tMessage = $LANG['Edit_mailbox_result_error'];
} else { } else {
db_log($SESSID_USERNAME, $fDomain, "edit mailbox", $fUsername); db_log($SESSID_USERNAME, $fDomain, "edit mailbox", $fUsername);

View File

@ -16,7 +16,6 @@ DEFINE("VERSION", "version 1.0.0");
DEFINE('ROOT_PATH', dirname(__FILE__) . '/'); DEFINE('ROOT_PATH', dirname(__FILE__) . '/');
require_once ROOT_PATH . 'conf.php'; require_once ROOT_PATH . 'conf.php';
require_once ROOT_PATH . 'config.inc.php'; require_once ROOT_PATH . 'config.inc.php';
require_once ROOT_PATH . 'variables.inc.php';
// //
// Check of debug is enabled or not // Check of debug is enabled or not

View File

@ -3,267 +3,267 @@
// Language file English // Language file English
// by Mischa <mischa at high5 dot nl> // by Mischa <mischa at high5 dot nl>
// //
$PALANG['YES'] = 'YES'; $LANG['YES'] = 'YES';
$PALANG['NO'] = 'NO'; $LANG['NO'] = 'NO';
$PALANG['edit'] = 'edit'; $LANG['edit'] = 'edit';
$PALANG['del'] = 'del'; $LANG['del'] = 'del';
$PALANG['confirm'] = 'Are you sure you want to delete this?'; $LANG['confirm'] = 'Are you sure you want to delete this?\n';
$PALANG['confirm_domain'] = 'Do you really want to delete all records for this domain? This can not be undone!'; $LANG['confirm_domain'] = 'Do you really want to delete all records for this domain?\nThis can not be undone! ';
$PALANG['check_update'] = 'Check for update'; $LANG['check_update'] = 'Check for update';
$PALANG['pLogin_welcome'] = 'Mail admins login here to administer your domain.'; $LANG['Login_welcome'] = 'Mail admins login here to administer your domain.';
$PALANG['pLogin_username'] = 'Login (email)'; $LANG['Login_username'] = 'Login (email)';
$PALANG['pLogin_password'] = 'Password'; $LANG['Login_password'] = 'Password';
$PALANG['pLogin_button'] = 'Login'; $LANG['Login_button'] = 'Login';
$PALANG['pLogin_username_incorrect'] = '<span class="error_msg">Your login is not correct. Make sure that you login with your email address.</span>'; $LANG['Login_username_incorrect'] = '<span class="error_msg">Your login is not correct. Make sure that you login with your email address.</span>';
$PALANG['pLogin_password_incorrect'] = '<span class="error_msg">Your password is not correct.</span>'; $LANG['Login_password_incorrect'] = '<span class="error_msg">Your password is not correct.</span>';
$PALANG['pLogin_login_users'] = 'Users click here to login to the user section.'; $LANG['Login_login_users'] = 'Users click here to login to the user section.';
$PALANG['pMenu_overview'] = 'Overview'; $LANG['Menu_overview'] = 'Overview';
$PALANG['pMenu_create_alias'] = 'Add Alias'; $LANG['Menu_create_alias'] = 'Add Alias';
$PALANG['pMenu_create_mailbox'] = 'Add Mailbox'; $LANG['Menu_create_mailbox'] = 'Add Mailbox';
$PALANG['pMenu_sendmail'] = 'Send Email'; $LANG['Menu_sendmail'] = 'Send Email';
$PALANG['pMenu_password'] = 'Password'; $LANG['Menu_password'] = 'Password';
$PALANG['pMenu_viewlog'] = 'View Log'; $LANG['Menu_viewlog'] = 'View Log';
$PALANG['pMenu_logout'] = 'Logout'; $LANG['Menu_logout'] = 'Logout';
$PALANG['pMain_welcome'] = 'Welcome to OpenSMTPD Admin!'; $LANG['Main_welcome'] = 'Welcome to OpenSMTPD Admin!';
$PALANG['pMain_overview'] = 'List your aliases and mailboxes. You can edit / delete them from here.'; $LANG['Main_overview'] = 'List your aliases and mailboxes. You can edit / delete them from here.';
$PALANG['pMain_create_alias'] = 'Create a new alias for your domain.'; $LANG['Main_create_alias'] = 'Create a new alias for your domain.';
$PALANG['pMain_create_mailbox'] = 'Create a new mailbox for your domain.'; $LANG['Main_create_mailbox'] = 'Create a new mailbox for your domain.';
$PALANG['pMain_sendmail'] = 'Send an email to one of your newly created mailboxes.'; $LANG['Main_sendmail'] = 'Send an email to one of your newly created mailboxes.';
$PALANG['pMain_password'] = 'Change the password for your admin account.'; $LANG['Main_password'] = 'Change the password for your admin account.';
$PALANG['pMain_viewlog'] = 'View the log files.'; $LANG['Main_viewlog'] = 'View the log files.';
$PALANG['pMain_logout'] = 'Logout from the system'; $LANG['Main_logout'] = 'Logout from the system';
$PALANG['pOverview_disabled'] = 'Disabled'; $LANG['Overview_disabled'] = 'Disabled';
$PALANG['pOverview_unlimited'] = 'Unlimited'; $LANG['Overview_unlimited'] = 'Unlimited';
$PALANG['pOverview_title'] = ':: Defined Domains'; $LANG['Overview_title'] = ':: Defined Domains';
$PALANG['pOverview_up_arrow'] = 'Go Top'; $LANG['Overview_up_arrow'] = 'Go Top';
$PALANG['pOverview_right_arrow'] = 'Next Page'; $LANG['Overview_right_arrow'] = 'Next Page';
$PALANG['pOverview_left_arrow'] = 'Previus Page'; $LANG['Overview_left_arrow'] = 'Previus Page';
$PALANG['pOverview_alias_title'] = ':: Alias'; $LANG['Overview_alias_title'] = ':: Alias';
$PALANG['pOverview_mailbox_title'] = ':: Mailboxes'; $LANG['Overview_mailbox_title'] = ':: Mailboxes';
$PALANG['pOverview_button'] = 'Go'; $LANG['Overview_button'] = 'Go';
$PALANG['pOverview_welcome'] = 'Overview for '; $LANG['Overview_welcome'] = 'Overview for ';
$PALANG['pOverview_alias_alias_count'] = 'Aliases'; $LANG['Overview_alias_alias_count'] = 'Aliases';
$PALANG['pOverview_alias_mailbox_count'] = 'Mailboxes'; $LANG['Overview_alias_mailbox_count'] = 'Mailboxes';
$PALANG['pOverview_alias_address'] = 'From'; $LANG['Overview_alias_address'] = 'From';
$PALANG['pOverview_alias_goto'] = 'To'; $LANG['Overview_alias_goto'] = 'To';
$PALANG['pOverview_alias_modified'] = 'Last Modified'; $LANG['Overview_alias_modified'] = 'Last Modified';
$PALANG['pOverview_mailbox_username'] = 'Email'; $LANG['Overview_mailbox_username'] = 'Email';
$PALANG['pOverview_mailbox_name'] = 'Name'; $LANG['Overview_mailbox_name'] = 'Name';
$PALANG['pOverview_mailbox_modified'] = 'Last Modified'; $LANG['Overview_mailbox_modified'] = 'Last Modified';
$PALANG['pOverview_mailbox_active'] = 'Active'; $LANG['Overview_mailbox_active'] = 'Active';
$PALANG['pOverview_get_domain'] = 'Domain'; $LANG['Overview_get_domain'] = 'Domain';
$PALANG['pOverview_get_aliases'] = 'Aliases'; $LANG['Overview_get_aliases'] = 'Aliases';
$PALANG['pOverview_get_mailboxes'] = 'Mailboxes'; $LANG['Overview_get_mailboxes'] = 'Mailboxes';
$PALANG['pOverview_get_modified'] = 'Last Modified'; $LANG['Overview_get_modified'] = 'Last Modified';
$PALANG['pDelete_delete_error'] = '<span class="error_msg">Unable to delete the entry '; $LANG['Delete_delete_error'] = '<span class="error_msg">Unable to delete the entry ';
$PALANG['pDelete_domain_error'] = '<span class="error_msg">This domain is not yours '; $LANG['Delete_domain_error'] = '<span class="error_msg">This domain is not yours ';
$PALANG['pCreate_alias_welcome'] = 'Create a new alias for your domain.'; $LANG['Create_alias_welcome'] = 'Create a new alias for your domain.';
$PALANG['pCreate_alias_address'] = 'Alias'; $LANG['Create_alias_address'] = 'Alias';
$PALANG['pCreate_alias_address_text_error1'] = '<span class="error_msg">The ALIAS or TO is not valid.</span>'; $LANG['Create_alias_address_text_error1'] = '<span class="error_msg">The ALIAS or TO is not valid.</span>';
$PALANG['pCreate_alias_address_text_error2'] = '<span class="error_msg">You have reached your limit to create aliases.</span>'; $LANG['Create_alias_address_text_error2'] = '<span class="error_msg">You have reached your limit to create aliases.</span>';
$PALANG['pCreate_alias_goto'] = 'To'; $LANG['Create_alias_goto'] = 'To';
$PALANG['pCreate_alias_button'] = 'Add Alias'; $LANG['Create_alias_button'] = 'Add Alias';
$PALANG['pCreate_alias_goto_text'] = 'Where the mail needs to be send to.'; $LANG['Create_alias_goto_text'] = 'Where the mail needs to be send to.';
$PALANG['pCreate_alias_result_error'] = '<span class="error_msg">This email address already exists, unable to add to the alias table.</span>'; $LANG['Create_alias_result_error'] = '<span class="error_msg">This email address already exists, unable to add to the alias table.</span>';
$PALANG['pCreate_alias_result_succes'] = 'The alias has been added to the alias table.'; $LANG['Create_alias_result_succes'] = 'The alias has been added to the alias table.';
$PALANG['pCreate_alias_catchall_text'] = 'To create a catch-all use an "*" as alias.<br />For domain to domain forwarding use "*@domain.tld" as to.'; $LANG['Create_alias_catchall_text'] = 'To create a catch-all use an "*" as alias.<br />For domain to domain forwarding use "*@domain.tld" as to.';
$PALANG['pEdit_alias_welcome'] = 'Edit an alias for your domain.<br />One entry per line.'; $LANG['Edit_alias_welcome'] = 'Edit an alias for your domain.<br />One entry per line.';
$PALANG['pEdit_alias_address'] = 'Alias'; $LANG['Edit_alias_address'] = 'Alias';
$PALANG['pEdit_alias_address_error'] = '<span class="error_msg">Unable to locate alias.</span>'; $LANG['Edit_alias_address_error'] = '<span class="error_msg">Unable to locate alias.</span>';
$PALANG['pEdit_alias_goto'] = 'To'; $LANG['Edit_alias_goto'] = 'To';
$PALANG['pEdit_alias_goto_text_error1'] = '<span class="error_msg">You didn\'t enter anything at To</span>'; $LANG['Edit_alias_goto_text_error1'] = '<span class="error_msg">You didn\'t enter anything at To</span>';
$PALANG['pEdit_alias_goto_text_error2'] = '<span class="error_msg">The email address that you have entered is not valid: '; $LANG['Edit_alias_goto_text_error2'] = '<span class="error_msg">The email address that you have entered is not valid: ';
$PALANG['pEdit_alias_domain_error'] = '<span class="error_msg">This domain is not yours: '; $LANG['Edit_alias_domain_error'] = '<span class="error_msg">This domain is not yours: ';
$PALANG['pEdit_alias_button'] = 'Edit Alias'; $LANG['Edit_alias_button'] = 'Edit Alias';
$PALANG['pEdit_alias_result_error'] = '<span class="error_msg">Unable to modify the alias.</span>'; $LANG['Edit_alias_result_error'] = '<span class="error_msg">Unable to modify the alias.</span>';
$PALANG['pCreate_mailbox_welcome'] = 'Create a new mailbox for your domain.'; $LANG['Create_mailbox_welcome'] = 'Create a new mailbox for your domain.';
$PALANG['pCreate_mailbox_username'] = 'Username'; $LANG['Create_mailbox_username'] = 'Username';
$PALANG['pCreate_mailbox_username_text_error1'] = '<span class="error_msg">The USERNAME is not valid.</span>'; $LANG['Create_mailbox_username_text_error1'] = '<span class="error_msg">The USERNAME is not valid.</span>';
$PALANG['pCreate_mailbox_username_text_error2'] = '<span class="error_msg">This email address already exists, please choose a different one.</span>'; $LANG['Create_mailbox_username_text_error2'] = '<span class="error_msg">This email address already exists, please choose a different one.</span>';
$PALANG['pCreate_mailbox_username_text_error3'] = '<span class="error_msg">You have reached your limit to create mailboxes.</span>'; $LANG['Create_mailbox_username_text_error3'] = '<span class="error_msg">You have reached your limit to create mailboxes.</span>';
$PALANG['pCreate_mailbox_password'] = 'Password'; $LANG['Create_mailbox_password'] = 'Password';
$PALANG['pCreate_mailbox_password2'] = 'Password (again)'; $LANG['Create_mailbox_password2'] = 'Password (again)';
$PALANG['pCreate_mailbox_password_text'] = 'Password for POP3/IMAP'; $LANG['Create_mailbox_password_text'] = 'Password for POP3/IMAP';
$PALANG['pCreate_mailbox_password_text_error'] = '<span class="error_msg">The passwords that you supplied don\'t match, or are empty.</span>'; $LANG['Create_mailbox_password_text_error'] = '<span class="error_msg">The passwords that you supplied don\'t match, or are empty.</span>';
$PALANG['pCreate_mailbox_name'] = 'Name'; $LANG['Create_mailbox_name'] = 'Name';
$PALANG['pCreate_mailbox_name_text'] = 'Full name'; $LANG['Create_mailbox_name_text'] = 'Full name';
$PALANG['pCreate_mailbox_active'] = 'Active'; $LANG['Create_mailbox_active'] = 'Active';
$PALANG['pCreate_mailbox_mail'] = 'Create mailbox'; $LANG['Create_mailbox_mail'] = 'Create mailbox';
$PALANG['pCreate_mailbox_button'] = 'Add Mailbox'; $LANG['Create_mailbox_button'] = 'Add Mailbox';
$PALANG['pCreate_mailbox_result_error'] = '<span class="error_msg">Unable to add the mailbox to the mailbox table.</span>'; $LANG['Create_mailbox_result_error'] = '<span class="error_msg">Unable to add the mailbox to the mailbox table.</span>';
$PALANG['pCreate_mailbox_result_succes'] = 'The mailbox has been added to the mailbox table.'; $LANG['Create_mailbox_result_succes'] = 'The mailbox has been added to the mailbox table.';
$PALANG['pEdit_mailbox_welcome'] = 'Edit a mailbox for your domain.'; $LANG['Edit_mailbox_welcome'] = 'Edit a mailbox for your domain.';
$PALANG['pEdit_mailbox_username'] = 'Username'; $LANG['Edit_mailbox_username'] = 'Username';
$PALANG['pEdit_mailbox_username_error'] = '<span class="error_msg">Unable to locate mailbox.</span>'; $LANG['Edit_mailbox_username_error'] = '<span class="error_msg">Unable to locate mailbox.</span>';
$PALANG['pEdit_mailbox_password'] = 'New Password'; $LANG['Edit_mailbox_password'] = 'New Password';
$PALANG['pEdit_mailbox_password2'] = 'New Password (again)'; $LANG['Edit_mailbox_password2'] = 'New Password (again)';
$PALANG['pEdit_mailbox_password_text_error'] = '<span class="error_msg">The passwords that you supplied don\'t match.</span>'; $LANG['Edit_mailbox_password_text_error'] = '<span class="error_msg">The passwords that you supplied don\'t match.</span>';
$PALANG['pEdit_mailbox_name'] = 'Name'; $LANG['Edit_mailbox_name'] = 'Name';
$PALANG['pEdit_mailbox_domain_error'] = '<span class="error_msg">This domain is not yours: '; $LANG['Edit_mailbox_domain_error'] = '<span class="error_msg">This domain is not yours: ';
$PALANG['pEdit_mailbox_button'] = 'Edit Mailbox'; $LANG['Edit_mailbox_button'] = 'Edit Mailbox';
$PALANG['pEdit_mailbox_result_error'] = '<span class="error_msg">Unable to modify the mailbox.</span>'; $LANG['Edit_mailbox_result_error'] = '<span class="error_msg">Unable to modify the mailbox.</span>';
$PALANG['pPassword_welcome'] = 'Change your login password.'; $LANG['Password_welcome'] = 'Change your login password.';
$PALANG['pPassword_admin'] = 'Login'; $LANG['Password_admin'] = 'Login';
$PALANG['pPassword_admin_text_error'] = '<span class="error_msg">The LOGIN that you supplied doesn\'t match a mailbox.</span>'; $LANG['Password_admin_text_error'] = '<span class="error_msg">The LOGIN that you supplied doesn\'t match a mailbox.</span>';
$PALANG['pPassword_password_current'] = 'Current Password'; $LANG['Password_password_current'] = 'Current Password';
$PALANG['pPassword_password_current_text_error'] = '<span class="error_msg">You didn\'t supply your current password.</span>'; $LANG['Password_password_current_text_error'] = '<span class="error_msg">You didn\'t supply your current password.</span>';
$PALANG['pPassword_password'] = 'New Password'; $LANG['Password_password'] = 'New Password';
$PALANG['pPassword_password2'] = 'New Password (again)'; $LANG['Password_password2'] = 'New Password (again)';
$PALANG['pPassword_password_text_error'] = '<span class="error_msg">The passwords that you supplied don\'t match, or are empty.</span>'; $LANG['Password_password_text_error'] = '<span class="error_msg">The passwords that you supplied don\'t match, or are empty.</span>';
$PALANG['pPassword_button'] = 'Change Password'; $LANG['Password_button'] = 'Change Password';
$PALANG['pPassword_result_error'] = '<span class="error_msg">Unable to change your password.</span>'; $LANG['Password_result_error'] = '<span class="error_msg">Unable to change your password.</span>';
$PALANG['pPassword_result_succes'] = 'Your password has been changed.'; $LANG['Password_result_succes'] = 'Your password has been changed.';
$PALANG['pViewlog_welcome'] = 'View the last 10 actions for '; $LANG['Viewlog_welcome'] = 'View the last 10 actions for ';
$PALANG['pViewlog_timestamp'] = 'Timestamp'; $LANG['Viewlog_timestamp'] = 'Timestamp';
$PALANG['pViewlog_username'] = 'Admin'; $LANG['Viewlog_username'] = 'Admin';
$PALANG['pViewlog_domain'] = 'Domain'; $LANG['Viewlog_domain'] = 'Domain';
$PALANG['pViewlog_action'] = 'Action'; $LANG['Viewlog_action'] = 'Action';
$PALANG['pViewlog_data'] = 'Data'; $LANG['Viewlog_data'] = 'Data';
$PALANG['pViewlog_button'] = 'Go'; $LANG['Viewlog_button'] = 'Go';
$PALANG['pViewlog_result_error'] = '<span class="error_msg">Unable to find the logs.</span>'; $LANG['Viewlog_result_error'] = '<span class="error_msg">Unable to find the logs.</span>';
$PALANG['pSendmail_welcome'] = 'Send an email.'; $LANG['Sendmail_welcome'] = 'Send an email.';
$PALANG['pSendmail_admin'] = 'From'; $LANG['Sendmail_admin'] = 'From';
$PALANG['pSendmail_to'] = 'To'; $LANG['Sendmail_to'] = 'To';
$PALANG['pSendmail_to_text_error'] = '<span class="error_msg">To is empty or is not a valid email address.</span>'; $LANG['Sendmail_to_text_error'] = '<span class="error_msg">To is empty or is not a valid email address.</span>';
$PALANG['pSendmail_subject'] = 'Subject'; $LANG['Sendmail_subject'] = 'Subject';
$PALANG['pSendmail_subject_text'] = 'Welcome'; $LANG['Sendmail_subject_text'] = 'Welcome';
$PALANG['pSendmail_body'] = 'Body'; $LANG['Sendmail_body'] = 'Body';
$PALANG['pSendmail_button'] = 'Send Message'; $LANG['Sendmail_button'] = 'Send Message';
$PALANG['pSendmail_result_error'] = '<span class="error_msg">Unable to create mailbox.</span>'; $LANG['Sendmail_result_error'] = '<span class="error_msg">Unable to create mailbox.</span>';
$PALANG['pSendmail_result_succes'] = 'The mailbox has been created.'; $LANG['Sendmail_result_succes'] = 'The mailbox has been created.';
$PALANG['pAdminMenu_list_admin'] = 'Admin List'; $LANG['AdminMenu_list_admin'] = 'Admin List';
$PALANG['pAdminMenu_list_domain'] = 'Domain List'; $LANG['AdminMenu_list_domain'] = 'Domain List';
$PALANG['pAdminMenu_list_virtual'] = 'Virtual List'; $LANG['AdminMenu_list_virtual'] = 'Virtual List';
$PALANG['pAdminMenu_viewlog'] = 'View Log'; $LANG['AdminMenu_viewlog'] = 'View Log';
$PALANG['pAdminMenu_backup'] = 'Backup'; $LANG['AdminMenu_backup'] = 'Backup';
$PALANG['pAdminMenu_create_domain_admins'] = 'Domain Admins'; $LANG['AdminMenu_create_domain_admins'] = 'Domain Admins';
$PALANG['pAdminMenu_create_admin'] = 'New Admin'; $LANG['AdminMenu_create_admin'] = 'New Admin';
$PALANG['pAdminMenu_create_domain'] = 'New Domain'; $LANG['AdminMenu_create_domain'] = 'New Domain';
$PALANG['pAdminMenu_create_alias'] = 'Add Alias'; $LANG['AdminMenu_create_alias'] = 'Add Alias';
$PALANG['pAdminMenu_create_mailbox'] = 'Add Mailbox'; $LANG['AdminMenu_create_mailbox'] = 'Add Mailbox';
$PALANG['pAdminList_admin_domain'] = 'Domain'; $LANG['AdminList_admin_domain'] = 'Domain';
$PALANG['pAdminList_admin_username'] = 'Admin'; $LANG['AdminList_admin_username'] = 'Admin';
$PALANG['pAdminList_admin_count'] = 'Domains'; $LANG['AdminList_admin_count'] = 'Domains';
$PALANG['pAdminList_admin_modified'] = 'Last Modified'; $LANG['AdminList_admin_modified'] = 'Last Modified';
$PALANG['pAdminList_admin_active'] = 'Active'; $LANG['AdminList_admin_active'] = 'Active';
$PALANG['pAdminList_domain_domain'] = 'Domain'; $LANG['AdminList_domain_domain'] = 'Domain';
$PALANG['pAdminList_domain_description'] = 'Description'; $LANG['AdminList_domain_description'] = 'Description';
$PALANG['pAdminList_domain_aliases'] = 'Aliases'; $LANG['AdminList_domain_aliases'] = 'Aliases';
$PALANG['pAdminList_domain_mailboxes'] = 'Mailboxes'; $LANG['AdminList_domain_mailboxes'] = 'Mailboxes';
$PALANG['pAdminList_domain_modified'] = 'Last Modified'; $LANG['AdminList_domain_modified'] = 'Last Modified';
$PALANG['pAdminList_domain_active'] = 'Active'; $LANG['AdminList_domain_active'] = 'Active';
$PALANG['pAdminList_virtual_button'] = 'Go'; $LANG['AdminList_virtual_button'] = 'Go';
$PALANG['pAdminList_virtual_welcome'] = 'Overview for '; $LANG['AdminList_virtual_welcome'] = 'Overview for ';
$PALANG['pAdminList_virtual_alias_alias_count'] = 'Aliases'; $LANG['AdminList_virtual_alias_alias_count'] = 'Aliases';
$PALANG['pAdminList_virtual_alias_mailbox_count'] = 'Mailboxes'; $LANG['AdminList_virtual_alias_mailbox_count'] = 'Mailboxes';
$PALANG['pAdminList_virtual_alias_address'] = 'From'; $LANG['AdminList_virtual_alias_address'] = 'From';
$PALANG['pAdminList_virtual_alias_goto'] = 'To'; $LANG['AdminList_virtual_alias_goto'] = 'To';
$PALANG['pAdminList_virtual_alias_modified'] = 'Last Modified'; $LANG['AdminList_virtual_alias_modified'] = 'Last Modified';
$PALANG['pAdminList_virtual_mailbox_username'] = 'Email'; $LANG['AdminList_virtual_mailbox_username'] = 'Email';
$PALANG['pAdminList_virtual_mailbox_name'] = 'Name'; $LANG['AdminList_virtual_mailbox_name'] = 'Name';
$PALANG['pAdminList_virtual_mailbox_modified'] = 'Last Modified'; $LANG['AdminList_virtual_mailbox_modified'] = 'Last Modified';
$PALANG['pAdminList_virtual_mailbox_active'] = 'Active'; $LANG['AdminList_virtual_mailbox_active'] = 'Active';
$PALANG['pAdminAdd_domain_welcome'] = 'Add a new domain'; $LANG['AdminAdd_domain_welcome'] = 'Add a new domain';
$PALANG['pAdminAdd_domain_domain'] = 'Domain'; $LANG['AdminAdd_domain_domain'] = 'Domain';
$PALANG['pAdminAdd_domain_domain_text_error'] = '<span class="error_msg">The domain already exists.</span>'; $LANG['AdminAdd_domain_domain_text_error'] = '<span class="error_msg">The domain already exists.</span>';
$PALANG['pAdminAdd_domain_description'] = 'Description'; $LANG['AdminAdd_domain_description'] = 'Description';
$PALANG['pAdminAdd_domain_aliases'] = 'Aliases'; $LANG['AdminAdd_domain_aliases'] = 'Aliases';
$PALANG['pAdminAdd_domain_aliases_text'] = '-1 = disable | 0 = unlimited'; $LANG['AdminAdd_domain_aliases_text'] = '-1 = disable | 0 = unlimited';
$PALANG['pAdminAdd_domain_mailboxes'] = 'Mailboxes'; $LANG['AdminAdd_domain_mailboxes'] = 'Mailboxes';
$PALANG['pAdminAdd_domain_mailboxes_text'] = '-1 = disable | 0 = unlimited'; $LANG['AdminAdd_domain_mailboxes_text'] = '-1 = disable | 0 = unlimited';
$PALANG['pAdminAdd_domain_button'] = 'Add Domain'; $LANG['AdminAdd_domain_button'] = 'Add Domain';
$PALANG['pAdminAdd_domain_result_error'] = '<span class="error_msg">Unable to add domain.</span>'; $LANG['AdminAdd_domain_result_error'] = '<span class="error_msg">Unable to add domain.</span>';
$PALANG['pAdminAdd_domain_result_succes'] = 'Domain has been added.'; $LANG['AdminAdd_domain_result_succes'] = 'Domain has been added.';
$PALANG['pAdminEdit_domain_welcome'] = 'Edit a domain'; $LANG['AdminEdit_domain_welcome'] = 'Edit a domain';
$PALANG['pAdminEdit_domain_domain'] = 'Domain'; $LANG['AdminEdit_domain_domain'] = 'Domain';
$PALANG['pAdminEdit_domain_description'] = 'Description'; $LANG['AdminEdit_domain_description'] = 'Description';
$PALANG['pAdminEdit_domain_aliases'] = 'Aliases'; $LANG['AdminEdit_domain_aliases'] = 'Aliases';
$PALANG['pAdminEdit_domain_aliases_text'] = '-1 = disable | 0 = unlimited'; $LANG['AdminEdit_domain_aliases_text'] = '-1 = disable | 0 = unlimited';
$PALANG['pAdminEdit_domain_mailboxes'] = 'Mailboxes'; $LANG['AdminEdit_domain_mailboxes'] = 'Mailboxes';
$PALANG['pAdminEdit_domain_mailboxes_text'] = '-1 = disable | 0 = unlimited'; $LANG['AdminEdit_domain_mailboxes_text'] = '-1 = disable | 0 = unlimited';
$PALANG['pAdminEdit_domain_active'] = 'Active'; $LANG['AdminEdit_domain_active'] = 'Active';
$PALANG['pAdminEdit_domain_button'] = 'Edit Domain'; $LANG['AdminEdit_domain_button'] = 'Edit Domain';
$PALANG['pAdminEdit_domain_result_error'] = '<span class="error_msg">Unable to modify domain.</span>'; $LANG['AdminEdit_domain_result_error'] = '<span class="error_msg">Unable to modify domain.</span>';
$PALANG['pAdminAdd_admin_welcome'] = 'Add a new domain admin'; $LANG['AdminAdd_admin_welcome'] = 'Add a new domain admin';
$PALANG['pAdminAdd_admin_username'] = 'Admin (email address)'; $LANG['AdminAdd_admin_username'] = 'Admin (email address)';
$PALANG['pAdminAdd_admin_username_error'] = '<span class="error_msg">Admin already exists or is not valid.</span>'; $LANG['AdminAdd_admin_username_error'] = '<span class="error_msg">Admin already exists or is not valid.</span>';
$PALANG['pAdminAdd_admin_password1'] = 'Password'; $LANG['AdminAdd_admin_password1'] = 'Password';
$PALANG['pAdminAdd_admin_password2'] = 'Password (again)'; $LANG['AdminAdd_admin_password2'] = 'Password (again)';
$PALANG['pAdminAdd_admin_password_error'] = '<span class="error_msg">The passwords you supplied don\'t match, or are empty.</span>'; $LANG['AdminAdd_admin_password_error'] = '<span class="error_msg">The passwords you supplied don\'t match, or are empty.</span>';
$PALANG['pAdminAdd_admin_domain_error'] = '<span class="error_msg">No domains selected.</span>'; $LANG['AdminAdd_admin_domain_error'] = '<span class="error_msg">No domains selected.</span>';
$PALANG['pAdminAdd_admin_button'] = 'Add Admin'; $LANG['AdminAdd_admin_button'] = 'Add Admin';
$PALANG['pAdminAdd_admin_result_error'] = '<span class="error_msg">Unable to add admin.</span>'; $LANG['AdminAdd_admin_result_error'] = '<span class="error_msg">Unable to add admin.</span>';
$PALANG['pAdminAdd_admin_result_succes'] = 'Admin has been added.'; $LANG['AdminAdd_admin_result_succes'] = 'Admin has been added.';
$PALANG['pAdminAdd_admin_address'] = 'Domain'; $LANG['AdminAdd_admin_address'] = 'Domain';
$PALANG['pAdminEdit_admin_welcome'] = 'Edit a domain admin'; $LANG['AdminEdit_admin_welcome'] = 'Edit a domain admin';
$PALANG['pAdminEdit_admin_username'] = 'Admin'; $LANG['AdminEdit_admin_username'] = 'Admin';
$PALANG['pAdminEdit_admin_password'] = 'Password'; $LANG['AdminEdit_admin_password'] = 'Password';
$PALANG['pAdminEdit_admin_password2'] = 'Password (again)'; $LANG['AdminEdit_admin_password2'] = 'Password (again)';
$PALANG['pAdminEdit_admin_password_text_error'] = '<span class="error_msg">The passwords that you supplied don\'t match, or are empty.</span>'; $LANG['AdminEdit_admin_password_text_error'] = '<span class="error_msg">The passwords that you supplied don\'t match, or are empty.</span>';
$PALANG['pAdminEdit_admin_active'] = 'Active'; $LANG['AdminEdit_admin_active'] = 'Active';
$PALANG['pAdminEdit_admin_button'] = 'Edit Admin'; $LANG['AdminEdit_admin_button'] = 'Edit Admin';
$PALANG['pAdminEdit_admin_result_error'] = '<span class="error_msg">Unable to modify admin.</span>'; $LANG['AdminEdit_admin_result_error'] = '<span class="error_msg">Unable to modify admin.</span>';
$PALANG['pAdminEdit_admin_result_succes'] = 'Admin has been modified.'; $LANG['AdminEdit_admin_result_succes'] = 'Admin has been modified.';
$PALANG['pUsersLogin_welcome'] = 'Mailbox users login to change your password and aliases.'; $LANG['UsersLogin_welcome'] = 'Mailbox users login to change your password and aliases.';
$PALANG['pUsersLogin_username'] = 'Login (email)'; $LANG['UsersLogin_username'] = 'Login (email)';
$PALANG['pUsersLogin_password'] = 'Password'; $LANG['UsersLogin_password'] = 'Password';
$PALANG['pUsersLogin_button'] = 'Login'; $LANG['UsersLogin_button'] = 'Login';
$PALANG['pUsersLogin_username_incorrect'] = 'Your login is not correct. Make sure that you login with your email address.'; $LANG['UsersLogin_username_incorrect'] = 'Your login is not correct. Make sure that you login with your email address.';
$PALANG['pUsersLogin_password_incorrect'] = 'Your password is not correct.'; $LANG['UsersLogin_password_incorrect'] = 'Your password is not correct.';
$PALANG['pUsersMenu_vacation'] = 'Auto Response'; $LANG['UsersMenu_vacation'] = 'Auto Response';
$PALANG['pUsersMenu_edit_alias'] = 'Change your forward'; $LANG['UsersMenu_edit_alias'] = 'Change your forward';
$PALANG['pUsersMenu_password'] = 'Change Password'; $LANG['UsersMenu_password'] = 'Change Password';
$PALANG['pUsersMain_vacation'] = 'Set an "out of office" message or auto responder for your mail.'; $LANG['UsersMain_vacation'] = 'Set an "out of office" message or auto responder for your mail.';
$PALANG['pUsersMain_edit_alias'] = 'Change your email forwarding.'; $LANG['UsersMain_edit_alias'] = 'Change your email forwarding.';
$PALANG['pUsersMain_password'] = 'Change your current password.'; $LANG['UsersMain_password'] = 'Change your current password.';
$PALANG['pUsersVacation_welcome'] = 'Auto Response.'; $LANG['UsersVacation_welcome'] = 'Auto Response.';
$PALANG['pUsersVacation_welcome_text'] = 'You already have an auto response configured.'; $LANG['UsersVacation_welcome_text'] = 'You already have an auto response configured.';
$PALANG['pUsersVacation_subject'] = 'Subject'; $LANG['UsersVacation_subject'] = 'Subject';
$PALANG['pUsersVacation_subject_text'] = 'Out of Office'; $LANG['UsersVacation_subject_text'] = 'Out of Office';
$PALANG['pUsersVacation_body'] = 'Body'; $LANG['UsersVacation_body'] = 'Body';
$PALANG['pUsersVacation_body_text'] = <<<EOM $LANG['UsersVacation_body_text'] = <<<EOM
I will be away from <date> until <date>. I will be away from <date> until <date>.
For urgent matters you can contact <contact person>. For urgent matters you can contact <contact person>.
EOM; EOM;
$PALANG['pUsersVacation_button_away'] = 'Going Away'; $LANG['UsersVacation_button_away'] = 'Going Away';
$PALANG['pUsersVacation_button_back'] = 'Coming Back'; $LANG['UsersVacation_button_back'] = 'Coming Back';
$PALANG['pUsersVacation_result_error'] = '<span class="error_msg">Unable to update your auto response settings.</span>'; $LANG['UsersVacation_result_error'] = '<span class="error_msg">Unable to update your auto response settings.</span>';
$PALANG['pUsersVacation_result_succes'] = 'Your auto response has been removed.'; $LANG['UsersVacation_result_succes'] = 'Your auto response has been removed.';
$PALANG['pCreate_dbLog_createmailbox'] = 'create mailbox'; $LANG['Create_dbLog_createmailbox'] = 'create mailbox';
$PALANG['pCreate_dbLog_createalias'] = 'create alias'; $LANG['Create_dbLog_createalias'] = 'create alias';
$PALANG['pDelete_dbLog_deletealias'] = 'delete alias'; $LANG['Delete_dbLog_deletealias'] = 'delete alias';
$PALANG['pDelete_dbLog_deletemailbox'] = 'delete mailbox'; $LANG['Delete_dbLog_deletemailbox'] = 'delete mailbox';
$PALANG['pEdit_dbLog_editactive'] = 'change active state'; $LANG['Edit_dbLog_editactive'] = 'change active state';
$PALANG['pEdit_dbLog_editalias'] = 'edit alias'; $LANG['Edit_dbLog_editalias'] = 'edit alias';
$PALANG['pEdit_dbLog_editmailbox'] = 'edit mailbox'; $LANG['Edit_dbLog_editmailbox'] = 'edit mailbox';
$PALANG['pSearch_welcome'] = 'Searching for: '; $LANG['Search_welcome'] = 'Searching for: ';
?> ?>

View File

@ -31,14 +31,14 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$result = db_query("SELECT password FROM admin WHERE username='$fUsername' AND active='1'"); $result = db_query("SELECT password FROM admin WHERE username='$fUsername' AND active='1'");
if ($result['rows'] == 1) { if ($result['rows'] == 1) {
$row = db_array($result['result']); $row = db_array($result['result']);
if (!password_verify($fPassword, $row['password'])) { if (!password_verify($fPassword, $row['assword'])) {
$error = 1; $error = 1;
$tMessage = $PALANG['pLogin_password_incorrect']; $tMessage = $LANG['Login_password_incorrect'];
$tUsername = $fUsername; $tUsername = $fUsername;
} }
} else { } else {
$error = 1; $error = 1;
$tMessage = $PALANG['pLogin_username_incorrect']; $tMessage = $LANG['Login_username_incorrect'];
} }
if ($error != 1) { if ($error != 1) {

View File

@ -36,28 +36,28 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$result = db_query("SELECT * FROM admin WHERE username='$username'"); $result = db_query("SELECT * FROM admin WHERE username='$username'");
if ($result['rows'] == 1) { if ($result['rows'] == 1) {
$row = db_array($result['result']); $row = db_array($result['result']);
if (!password_verify($fPassword_current, $row['password'])) { if (!password_verify($fPassword_current, $row['assword'])) {
$error = 1; $error = 1;
$pPassword_password_current_text = $PALANG['pPassword_password_current_text_error']; $pPassword_password_current_text = $LANG['Password_password_current_text_error'];
} }
} else { } else {
$error = 1; $error = 1;
$pPassword_email_text = $PALANG['pPassword_email_text_error']; $pPassword_email_text = $LANG['Password_email_text_error'];
} }
if (empty($fPassword) or ($fPassword != $fPassword2)) if (empty($fPassword) or ($fPassword != $fPassword2))
{ {
$error = 1; $error = 1;
$pPassword_password_text = $PALANG['pPassword_password_text_error']; $pPassword_password_text = $LANG['Password_password_text_error'];
} }
if ($error != 1) { if ($error != 1) {
$password = pacrypt($fPassword); $password = pacrypt($fPassword);
$result = db_query("UPDATE admin SET password='$password',modified=NOW() WHERE username='$username'"); $result = db_query("UPDATE admin SET password='$password',modified=NOW() WHERE username='$username'");
if ($result['rows'] == 1) { if ($result['rows'] == 1) {
$tMessage = $PALANG['pPassword_result_succes']; $tMessage = $LANG['Password_result_succes'];
} else { } else {
$tMessage = $PALANG['pPassword_result_error']; $tMessage = $LANG['Password_result_error'];
} }
} }
} }

View File

@ -41,14 +41,14 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$tTo = escape_string($_POST['fTo']); $tTo = escape_string($_POST['fTo']);
$tSubject = escape_string($_POST['fSubject']); $tSubject = escape_string($_POST['fSubject']);
$tBody = escape_string($_POST['fBody']); $tBody = escape_string($_POST['fBody']);
$tMessage = $PALANG['pSendmail_to_text_error']; $tMessage = $LANG['Sendmail_to_text_error'];
} }
if ($error != 1) { if ($error != 1) {
if (!mail($fTo, $fSubject, $fBody, $fHeaders)) { if (!mail($fTo, $fSubject, $fBody, $fHeaders)) {
$tMessage .= $PALANG['pSendmail_result_error']; $tMessage .= $LANG['Sendmail_result_error'];
} else { } else {
$tMessage .= $PALANG['pSendmail_result_succes']; $tMessage .= $LANG['Sendmail_result_succes'];
} }
} }
} }

View File

@ -2,10 +2,10 @@
<form name="create_alias" method="post"> <form name="create_alias" method="post">
<table> <table>
<tr> <tr>
<td colspan="3"><h3><?php echo $PALANG['pCreate_alias_welcome']; ?></h3></td> <td colspan="3"><h3><?php echo $LANG['Create_alias_welcome']; ?></h3></td>
</tr> </tr>
<tr> <tr>
<td><?php echo $PALANG['pCreate_alias_address']; ?></td> <td><?php echo $LANG['Create_alias_address']; ?></td>
<td><input class="flat" type="text" name="address" value="<?php echo $address ?? ''; ?>" /></td> <td><input class="flat" type="text" name="address" value="<?php echo $address ?? ''; ?>" /></td>
<td> <td>
<select name="domain"> <select name="domain">
@ -20,12 +20,12 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td><?php echo $PALANG['pCreate_alias_goto'] . ":"; ?></td> <td><?php echo $LANG['Create_alias_goto'] . ":"; ?></td>
<td><input class="flat" type="text" name="goto" value="<?php echo $goto ?? ''; ?>" /></td> <td><input class="flat" type="text" name="goto" value="<?php echo $goto ?? ''; ?>" /></td>
<td><?php echo $PALANG['pCreate_alias_goto_text']; ?></td> <td><?php echo $LANG['Create_alias_goto_text']; ?></td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php echo $PALANG['pCreate_alias_button']; ?>" /></td> <td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php echo $LANG['Create_alias_button']; ?>" /></td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="standout"><?php echo $message ?? '&nbsp;'; ?></td> <td colspan="3" class="standout"><?php echo $message ?? '&nbsp;'; ?></td>

View File

@ -2,10 +2,10 @@
<form name="create_mailbox" method="post"> <form name="create_mailbox" method="post">
<table> <table>
<tr> <tr>
<td colspan="3"><h3><?php print $PALANG['pCreate_mailbox_welcome']; ?></h3></td> <td colspan="3"><h3><?php print $LANG['Create_mailbox_welcome']; ?></h3></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pCreate_mailbox_username'] . ":"; ?></td> <td><?php print $LANG['Create_mailbox_username'] . ":"; ?></td>
<td><input class="flat" type="text" name="username" value="<?php print $username ?? ''; ?>" /></td> <td><input class="flat" type="text" name="username" value="<?php print $username ?? ''; ?>" /></td>
<td> <td>
<select name="domain"> <select name="domain">
@ -20,22 +20,22 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pCreate_mailbox_password'] . ":"; ?></td> <td><?php print $LANG['Create_mailbox_password'] . ":"; ?></td>
<td><input class="flat" type="password" name="password1" /></td> <td><input class="flat" type="password" name="password1" /></td>
<td><?php print $PALANG['pCreate_mailbox_password_text']; ?></td> <td><?php print $LANG['Create_mailbox_password_text']; ?></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pCreate_mailbox_password2'] . ":"; ?></td> <td><?php print $LANG['Create_mailbox_password2'] . ":"; ?></td>
<td><input class="flat" type="password" name="password2" /></td> <td><input class="flat" type="password" name="password2" /></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pCreate_mailbox_name'] . ":"; ?></td> <td><?php print $LANG['Create_mailbox_name'] . ":"; ?></td>
<td><input class="flat" type="text" name="name" value="<?php print $name ?? ''; ?>" /></td> <td><input class="flat" type="text" name="name" value="<?php print $name ?? ''; ?>" /></td>
<td><?php print $PALANG['pCreate_mailbox_name_text']; ?></td> <td><?php print $LANG['Create_mailbox_name_text']; ?></td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $PALANG['pCreate_mailbox_button']; ?>" /></td> <td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $LANG['Create_mailbox_button']; ?>" /></td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="standout"><?php print $message ?? '&nbsp'; ?></td> <td colspan="3" class="standout"><?php print $message ?? '&nbsp'; ?></td>

View File

@ -3,13 +3,13 @@
<table> <table>
<tr> <tr>
<?php if ($action == 'edit') { ?> <?php if ($action == 'edit') { ?>
<td colspan="2"><h3><?php echo $PALANG['pAdminEdit_admin_welcome']; ?></h3></td> <td colspan="2"><h3><?php echo $LANG['AdminEdit_admin_welcome']; ?></h3></td>
<?php } else { ?> <?php } else { ?>
<td colspan="2"><h3><?php echo $PALANG['pAdminAdd_admin_welcome']; ?></h3></td> <td colspan="2"><h3><?php echo $LANG['AdminAdd_admin_welcome']; ?></h3></td>
<?php } ?> <?php } ?>
</tr> </tr>
<tr> <tr>
<td><?php echo $PALANG['pAdminAdd_admin_username'] . ":"; ?></td> <td><?php echo $LANG['AdminAdd_admin_username'] . ":"; ?></td>
<?php if ($action == 'edit') { ?> <?php if ($action == 'edit') { ?>
<td><input class="flat" type="hidden" name="username" value="<?php echo $username; ?>" /><?php print $username; ?></td> <td><input class="flat" type="hidden" name="username" value="<?php echo $username; ?>" /><?php print $username; ?></td>
<?php } else { ?> <?php } else { ?>
@ -17,15 +17,15 @@
<?php } ?> <?php } ?>
</tr> </tr>
<tr> <tr>
<td><?php echo $PALANG['pAdminAdd_admin_password1'] . ":"; ?></td> <td><?php echo $LANG['AdminAdd_admin_password1'] . ":"; ?></td>
<td><input class="flat" type="password" name="password1" /></td> <td><input class="flat" type="password" name="password1" /></td>
</tr> </tr>
<tr> <tr>
<td><?php echo $PALANG['pAdminAdd_admin_password2'] . ":"; ?></td> <td><?php echo $LANG['AdminAdd_admin_password2'] . ":"; ?></td>
<td><input class="flat" type="password" name="password2" /></td> <td><input class="flat" type="password" name="password2" /></td>
</tr> </tr>
<tr> <tr>
<td><?php echo $PALANG['pAdminAdd_admin_address'] . ":"; ?></td> <td><?php echo $LANG['AdminAdd_admin_address'] . ":"; ?></td>
<td> <td>
<select name="domains[]" size="10" multiple="multiple"> <select name="domains[]" size="10" multiple="multiple">
<?php <?php
@ -39,7 +39,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php echo $PALANG['pAdminAdd_admin_button']; ?>" /></td> <td colspan="2" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php echo $LANG['AdminAdd_admin_button']; ?>" /></td>
</tr> </tr>
<tr> <tr>
<td colspan="2" class="standout"><?php echo $message ?? '&nbsp;'; ?></td> <td colspan="2" class="standout"><?php echo $message ?? '&nbsp;'; ?></td>

View File

@ -3,13 +3,13 @@
<table> <table>
<tr> <tr>
<?php if ($action == 'edit') { ?> <?php if ($action == 'edit') { ?>
<td colspan="3"><h3><?php print $PALANG['pAdminEdit_domain_welcome']; ?></h3></td> <td colspan="3"><h3><?php print $LANG['AdminEdit_domain_welcome']; ?></h3></td>
<?php } else { ?> <?php } else { ?>
<td colspan="3"><h3><?php echo $PALANG['pAdminAdd_domain_welcome']; ?></h3></td> <td colspan="3"><h3><?php echo $LANG['AdminAdd_domain_welcome']; ?></h3></td>
<?php } ?> <?php } ?>
</tr> </tr>
<tr> <tr>
<td><?php echo $PALANG['pAdminAdd_domain_domain'] . ":"; ?></td> <td><?php echo $LANG['AdminAdd_domain_domain'] . ":"; ?></td>
<?php if ($action == 'edit') { ?> <?php if ($action == 'edit') { ?>
<td><input class="flat" type="hidden" name="domain" value="<?php echo $domain; ?>" /><?php print $domain; ?></td> <td><input class="flat" type="hidden" name="domain" value="<?php echo $domain; ?>" /><?php print $domain; ?></td>
<?php } else { ?> <?php } else { ?>
@ -18,22 +18,22 @@
<?php } ?> <?php } ?>
</tr> </tr>
<tr> <tr>
<td><?php echo $PALANG['pAdminAdd_domain_description'] . ":"; ?></td> <td><?php echo $LANG['AdminAdd_domain_description'] . ":"; ?></td>
<td><input class="flat" type="text" name="description" value="<?php echo $description ?? ''; ?>" /></td> <td><input class="flat" type="text" name="description" value="<?php echo $description ?? ''; ?>" /></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td><?php echo $PALANG['pAdminAdd_domain_aliases'] . ":"; ?></td> <td><?php echo $LANG['AdminAdd_domain_aliases'] . ":"; ?></td>
<td><input class="flat" type="text" name="aliases" value="<?php echo $aliases ?? ALIASES; ?>" /></td> <td><input class="flat" type="text" name="aliases" value="<?php echo $aliases ?? ALIASES; ?>" /></td>
<td><?php echo $PALANG['pAdminAdd_domain_aliases_text']; ?></td> <td><?php echo $LANG['AdminAdd_domain_aliases_text']; ?></td>
</tr> </tr>
<tr> <tr>
<td><?php echo $PALANG['pAdminAdd_domain_mailboxes'] . ":"; ?></td> <td><?php echo $LANG['AdminAdd_domain_mailboxes'] . ":"; ?></td>
<td><input class="flat" type="text" name="mailboxes" value="<?php echo $mailboxes ?? MAILBOXES; ?>" /></td> <td><input class="flat" type="text" name="mailboxes" value="<?php echo $mailboxes ?? MAILBOXES; ?>" /></td>
<td><?php echo $PALANG['pAdminAdd_domain_mailboxes_text']; ?></td> <td><?php echo $LANG['AdminAdd_domain_mailboxes_text']; ?></td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php echo $PALANG['pAdminAdd_domain_button']; ?>" /></td> <td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php echo $LANG['AdminAdd_domain_button']; ?>" /></td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="standout"><?php echo $message ?? '&nbsp;'; ?></td> <td colspan="3" class="standout"><?php echo $message ?? '&nbsp;'; ?></td>

View File

@ -3,9 +3,9 @@ if (count($list_admins) > 0) {
echo "<table id=\"admin_table\">\n"; echo "<table id=\"admin_table\">\n";
echo " <tr class=\"header\">\n"; echo " <tr class=\"header\">\n";
echo " <td>" . $PALANG['pAdminList_admin_username'] . "</td>\n"; echo " <td>" . $LANG['AdminList_admin_username'] . "</td>\n";
echo " <td>" . $PALANG['pAdminList_admin_count'] . "</td>\n"; echo " <td>" . $LANG['AdminList_admin_count'] . "</td>\n";
echo " <td>" . $PALANG['pAdminList_admin_modified'] . "</td>\n"; echo " <td>" . $LANG['AdminList_admin_modified'] . "</td>\n";
echo " <td colspan=\"2\">&nbsp;</td>\n"; echo " <td colspan=\"2\">&nbsp;</td>\n";
echo " </tr>\n"; echo " </tr>\n";
@ -15,8 +15,8 @@ if (count($list_admins) > 0) {
echo " <td><a href=\"list-domain.php?username=" . $row['username'] . "\">" . $row['username'] . "</a></td>"; echo " <td><a href=\"list-domain.php?username=" . $row['username'] . "\">" . $row['username'] . "</a></td>";
echo " <td>" . $row['domain_count'] . "</td>"; echo " <td>" . $row['domain_count'] . "</td>";
echo " <td>" . $row['modified'] . "</td>"; echo " <td>" . $row['modified'] . "</td>";
echo " <td><a href=\"admin.php?action=edit&username=" . $row['username'] . "\">" . $PALANG['edit'] . "</a></td>"; echo " <td><a href=\"admin.php?action=edit&username=" . $row['username'] . "\">" . $LANG['edit'] . "</a></td>";
echo " <td><a href=\"delete.php?table=admin&where=username&delete=" . $row['username'] . "\" onclick=\"return confirm ('" . $PALANG['confirm'] . $PALANG['pAdminList_admin_username'] . ": " . $row['username'] . "')\">" . $PALANG['del'] . "</a></td>"; echo " <td><a href=\"delete.php?table=admin&where=username&delete=" . $row['username'] . "\" onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['AdminList_admin_username'] . ": " . $row['username'] . "')\">" . $LANG['del'] . "</a></td>";
echo " </tr>\n"; echo " </tr>\n";
} }
echo "</table>\n"; echo "</table>\n";

View File

@ -11,7 +11,7 @@ if (count($list_admins) > 0) {
} }
?> ?>
</select> </select>
<input class="button" type="submit" name="go" value="<?php echo $PALANG['pOverview_button']; ?>" /> <input class="button" type="submit" name="go" value="<?php echo $LANG['Overview_button']; ?>" />
</form> </form>
<form name="search" method="post" action="search.php"> <form name="search" method="post" action="search.php">
<input type="textbox" name="search" size="25"> <input type="textbox" name="search" size="25">
@ -21,11 +21,11 @@ if (count($list_admins) > 0) {
if (count($list_domains) > 0) { if (count($list_domains) > 0) {
echo "<table id=\"admin_table\">\n"; echo "<table id=\"admin_table\">\n";
echo " <tr class=\"header\">\n"; echo " <tr class=\"header\">\n";
echo " <td>" . $PALANG['pAdminList_domain_domain'] . "</td>\n"; echo " <td>" . $LANG['AdminList_domain_domain'] . "</td>\n";
echo " <td>" . $PALANG['pAdminList_domain_description'] . "</td>\n"; echo " <td>" . $LANG['AdminList_domain_description'] . "</td>\n";
echo " <td>" . $PALANG['pAdminList_domain_aliases'] . "</td>\n"; echo " <td>" . $LANG['AdminList_domain_aliases'] . "</td>\n";
echo " <td>" . $PALANG['pAdminList_domain_mailboxes'] . "</td>\n"; echo " <td>" . $LANG['AdminList_domain_mailboxes'] . "</td>\n";
echo " <td>" . $PALANG['pAdminList_domain_modified'] . "</td>\n"; echo " <td>" . $LANG['AdminList_domain_modified'] . "</td>\n";
echo " <td colspan=\"2\">&nbsp;</td>\n"; echo " <td colspan=\"2\">&nbsp;</td>\n";
echo " </tr>\n"; echo " </tr>\n";
foreach ($list_domains as $row) { foreach ($list_domains as $row) {
@ -35,8 +35,8 @@ if (count($list_domains) > 0) {
echo "<td>" . $row['alias_count'] . " / " . $row['aliases'] . "</td>"; echo "<td>" . $row['alias_count'] . " / " . $row['aliases'] . "</td>";
echo "<td>" . $row['mailbox_count'] . " / " . $row['mailboxes'] . "</td>"; echo "<td>" . $row['mailbox_count'] . " / " . $row['mailboxes'] . "</td>";
echo "<td>" . $row['modified'] . "</td>"; echo "<td>" . $row['modified'] . "</td>";
echo "<td><a href=\"domain.php?action=edit&domain=" . $row['domain'] . "\">" . $PALANG['edit'] . "</a></td>"; echo "<td><a href=\"domain.php?action=edit&domain=" . $row['domain'] . "\">" . $LANG['edit'] . "</a></td>";
echo "<td><a href=\"delete.php?table=domain&domain=" . $row['domain'] . "\" onclick=\"return confirm ('" . $PALANG['confirm_domain'] . $PALANG['pAdminList_admin_domain'] . ": " . $row['domain'] . "')\">" . $PALANG['del'] . "</a></td>"; echo "<td><a href=\"delete.php?table=domain&domain=" . $row['domain'] . "\" onclick=\"return confirm ('" . $LANG['confirm_domain'] . $LANG['AdminList_admin_domain'] . ": " . $row['domain'] . "')\">" . $LANG['del'] . "</a></td>";
echo "</tr>\n"; echo "</tr>\n";
} }

View File

@ -12,12 +12,12 @@ if (count($list_domains) > 0) {
?> ?>
</select> </select>
<input type="hidden" name="limit" value="0"> <input type="hidden" name="limit" value="0">
<input type="submit" name="go" value="<?php print $PALANG['pAdminList_virtual_button']; ?>" /> <input type="submit" name="go" value="<?php print $LANG['AdminList_virtual_button']; ?>" />
</form> </form>
<h4><?php print $PALANG['pAdminList_virtual_welcome'] . $domain; ?></h4> <h4><?php print $LANG['AdminList_virtual_welcome'] . $domain; ?></h4>
<p><?php print $PALANG['pAdminList_virtual_alias_alias_count'] . ": " . $list_domains[$selected_domain]['alias_count'] . " / " . $list_domains[$selected_domain]['aliases']; ?></p> <p><?php print $LANG['AdminList_virtual_alias_alias_count'] . ": " . $list_domains[$selected_domain]['alias_count'] . " / " . $list_domains[$selected_domain]['aliases']; ?></p>
<p><?php print $PALANG['pAdminList_virtual_alias_mailbox_count'] . ": " . $list_domains[$selected_domain]['mailbox_count'] . " / " . $list_domains[$selected_domain]['mailboxes']; ?></p> <p><?php print $LANG['AdminList_virtual_alias_mailbox_count'] . ": " . $list_domains[$selected_domain]['mailbox_count'] . " / " . $list_domains[$selected_domain]['mailboxes']; ?></p>
<form name="search" method="post" action="search.php"> <form name="search" method="post" action="search.php">
<input type="textbox" name="search" size="25"> <input type="textbox" name="search" size="25">
@ -29,26 +29,26 @@ if ($list_domains[$selected_domain]['alias_count'] > $limit || $list_domains[$se
echo "<div id=\"nav_bar\">\n"; echo "<div id=\"nav_bar\">\n";
if ($offset >= $limit) { if ($offset >= $limit) {
echo "<a href=\"list-virtual.php?domain=" . $list_domains[$selected_domain]['domain'] . "&offset=" . ($offset - $limit) . "\"><img border=\"0\" src=\"../images/arrow-l.png\" title=\"" . $PALANG['pOverview_left_arrow'] . "\"></a>\n"; echo "<a href=\"list-virtual.php?domain=" . $list_domains[$selected_domain]['domain'] . "&offset=" . ($offset - $limit) . "\"><img border=\"0\" src=\"../images/arrow-l.png\" title=\"" . $LANG['Overview_left_arrow'] . "\"></a>\n";
} }
if (($list_domains[$selected_domain]['alias_count'] > $limit) || ($list_domains[$selected_domain]['mailbox_count'] > $limit)) { if (($list_domains[$selected_domain]['alias_count'] > $limit) || ($list_domains[$selected_domain]['mailbox_count'] > $limit)) {
echo "<a href=\"list-virtual.php?domain=" . $list_domains[$selected_domain]['domain'] . "&offset=0\"><img border=\"0\" src=\"../images/arrow-u.png\" title=\"" . $PALANG['pOverview_up_arrow'] . "\"></a>\n"; echo "<a href=\"list-virtual.php?domain=" . $list_domains[$selected_domain]['domain'] . "&offset=0\"><img border=\"0\" src=\"../images/arrow-u.png\" title=\"" . $LANG['Overview_up_arrow'] . "\"></a>\n";
} }
if ((($offset + $limit) < $list_domains[$selected_domain]['alias_count']) || (($offset + $limit) < $list_domains[$selected_domain]['mailbox_count'])) { if ((($offset + $limit) < $list_domains[$selected_domain]['alias_count']) || (($offset + $limit) < $list_domains[$selected_domain]['mailbox_count'])) {
echo "<a href=\"list-virtual.php?domain=" . $list_domains[$selected_domain]['domain'] . "&offset=" . ($offset + $limit) . "\"><img border=\"0\" src=\"../images/arrow-r.png\" title=\"" . $PALANG['pOverview_right_arrow'] . "\"></a>\n"; echo "<a href=\"list-virtual.php?domain=" . $list_domains[$selected_domain]['domain'] . "&offset=" . ($offset + $limit) . "\"><img border=\"0\" src=\"../images/arrow-r.png\" title=\"" . $LANG['Overview_right_arrow'] . "\"></a>\n";
} }
echo "</div>\n"; echo "</div>\n";
} }
if (count($list_alias) > 0) { if (count($list_alias) > 0) {
print "<table id=\"alias_table\">\n"; print "<table id=\"alias_table\">\n";
print " <tr>\n"; print " <tr>\n";
print " <td colspan=\"5\"><h3>" . $PALANG['pOverview_alias_title'] . "</h3></td>"; print " <td colspan=\"5\"><h3>" . $LANG['Overview_alias_title'] . "</h3></td>";
print " </tr>"; print " </tr>";
print " <tr class=\"header\">\n"; print " <tr class=\"header\">\n";
print " <td>" . $PALANG['pAdminList_virtual_alias_address'] . "</td>\n"; print " <td>" . $LANG['AdminList_virtual_alias_address'] . "</td>\n";
print " <td>" . $PALANG['pAdminList_virtual_alias_goto'] . "</td>\n"; print " <td>" . $LANG['AdminList_virtual_alias_goto'] . "</td>\n";
print " <td>" . $PALANG['pAdminList_virtual_alias_modified'] . "</td>\n"; print " <td>" . $LANG['AdminList_virtual_alias_modified'] . "</td>\n";
print " <td colspan=\"2\">&nbsp;</td>\n"; print " <td colspan=\"2\">&nbsp;</td>\n";
print " </tr>\n"; print " </tr>\n";
@ -57,8 +57,8 @@ if (count($list_alias) > 0) {
print " <td>" . $row['address'] . "</td>\n"; print " <td>" . $row['address'] . "</td>\n";
print " <td>" . preg_replace("/,/", "<br>", $row['goto']) . "</td>\n"; print " <td>" . preg_replace("/,/", "<br>", $row['goto']) . "</td>\n";
print " <td>" . $row['modified'] . "</td>\n"; print " <td>" . $row['modified'] . "</td>\n";
print " <td><a href=\"edit-alias.php?address=" . $row['address'] . "&domain=" . $list_domains[$selected_domain]['domain'] . "\">" . $PALANG['edit'] . "</a></td>\n"; print " <td><a href=\"edit-alias.php?address=" . $row['address'] . "&domain=" . $list_domains[$selected_domain]['domain'] . "\">" . $LANG['edit'] . "</a></td>\n";
print " <td><a href=\"delete.php?table=alias" . "&delete=" . $row['address'] . "&domain=" . $list_domains[$selected_domain]['domain'] . "\"onclick=\"return confirm ('" . $PALANG['confirm'] . $PALANG['pOverview_get_aliases'] . ": ". $row['address'] . "')\">" . $PALANG['del'] . "</a></td>\n"; print " <td><a href=\"delete.php?table=alias" . "&delete=" . $row['address'] . "&domain=" . $list_domains[$selected_domain]['domain'] . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['Overview_get_aliases'] . ": ". $row['address'] . "')\">" . $LANG['del'] . "</a></td>\n";
print " </tr>\n"; print " </tr>\n";
} }
print "</table>\n"; print "</table>\n";
@ -67,12 +67,12 @@ if (count($list_alias) > 0) {
if (count($list_mailbox) > 0) { if (count($list_mailbox) > 0) {
print "<table id=\"mailbox_table\">\n"; print "<table id=\"mailbox_table\">\n";
print " <tr>\n"; print " <tr>\n";
print " <td colspan=\"7\"><h3>" . $PALANG['pOverview_mailbox_title'] . "</h3></td>"; print " <td colspan=\"7\"><h3>" . $LANG['Overview_mailbox_title'] . "</h3></td>";
print " </tr>"; print " </tr>";
print " <tr class=\"header\">\n"; print " <tr class=\"header\">\n";
print " <td>" . $PALANG['pAdminList_virtual_mailbox_username'] . "</td>\n"; print " <td>" . $LANG['AdminList_virtual_mailbox_username'] . "</td>\n";
print " <td>" . $PALANG['pAdminList_virtual_mailbox_name'] . "</td>\n"; print " <td>" . $LANG['AdminList_virtual_mailbox_name'] . "</td>\n";
print " <td>" . $PALANG['pAdminList_virtual_mailbox_modified'] . "</td>\n"; print " <td>" . $LANG['AdminList_virtual_mailbox_modified'] . "</td>\n";
print " <td colspan=\"2\">&nbsp;</td>\n"; print " <td colspan=\"2\">&nbsp;</td>\n";
print " </tr>\n"; print " </tr>\n";
@ -81,8 +81,8 @@ if (count($list_mailbox) > 0) {
print " <td>" . $row['username'] . "</td>\n"; print " <td>" . $row['username'] . "</td>\n";
print " <td>" . $row['name'] . "</td>\n"; print " <td>" . $row['name'] . "</td>\n";
print " <td>" . $row['modified'] . "</td>\n"; print " <td>" . $row['modified'] . "</td>\n";
print " <td><a href=\"edit-mailbox.php?username=" . $row['username'] . "&domain=" . $list_domains[$selected_domain]['domain'] . "\">" . $PALANG['edit'] . "</a></td>\n"; print " <td><a href=\"edit-mailbox.php?username=" . $row['username'] . "&domain=" . $list_domains[$selected_domain]['domain'] . "\">" . $LANG['edit'] . "</a></td>\n";
print " <td><a href=\"delete.php?table=mailbox" . "&delete=" . $row['username'] . "&domain=" . $list_domains[$selected_domain]['domain'] . "\"onclick=\"return confirm ('" . $PALANG['confirm'] . $PALANG['pOverview_get_mailboxes'] . ": ". $row['username'] . "')\">" . $PALANG['del'] . "</a></td>\n"; print " <td><a href=\"delete.php?table=mailbox" . "&delete=" . $row['username'] . "&domain=" . $list_domains[$selected_domain]['domain'] . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['Overview_get_mailboxes'] . ": ". $row['username'] . "')\">" . $LANG['del'] . "</a></td>\n";
print " </tr>\n"; print " </tr>\n";
} }
print "</table>\n"; print "</table>\n";

View File

@ -1,13 +1,13 @@
<div id="menu"> <div id="menu">
<ul> <ul>
<li><a target="_top" href="list-admin.php"><?php echo $PALANG['pAdminMenu_list_admin']; ?></a></li> <li><a target="_top" href="list-admin.php"><?php echo $LANG['AdminMenu_list_admin']; ?></a></li>
<li><a target="_top" href="list-domain.php"><?php echo $PALANG['pAdminMenu_list_domain']; ?></a></li> <li><a target="_top" href="list-domain.php"><?php echo $LANG['AdminMenu_list_domain']; ?></a></li>
<li><a target="_top" href="list-virtual.php"><?php echo $PALANG['pAdminMenu_list_virtual']; ?></a></li> <li><a target="_top" href="list-virtual.php"><?php echo $LANG['AdminMenu_list_virtual']; ?></a></li>
<li><a target="_top" href="viewlog.php"><?php echo $PALANG['pAdminMenu_viewlog']; ?></a></li> <li><a target="_top" href="viewlog.php"><?php echo $LANG['AdminMenu_viewlog']; ?></a></li>
<li><a target="_top" href="backup.php"><?php echo $PALANG['pAdminMenu_backup']; ?></a></li> <li><a target="_top" href="backup.php"><?php echo $LANG['AdminMenu_backup']; ?></a></li>
<li><a target="_top" href="domain.php"><?php echo $PALANG['pAdminMenu_create_domain']; ?></a></li> <li><a target="_top" href="domain.php"><?php echo $LANG['AdminMenu_create_domain']; ?></a></li>
<li><a target="_top" href="admin.php"><?php echo $PALANG['pAdminMenu_create_admin']; ?></a></li> <li><a target="_top" href="admin.php"><?php echo $LANG['AdminMenu_create_admin']; ?></a></li>
<li><a target="_top" href="add-alias.php<?php if (isset($domain)) echo '?domain=' . $domain; ?>"><?php echo $PALANG['pAdminMenu_create_alias']; ?></a></li> <li><a target="_top" href="add-alias.php<?php if (isset($domain)) echo '?domain=' . $domain; ?>"><?php echo $LANG['AdminMenu_create_alias']; ?></a></li>
<li><a target="_top" href="add-mailbox.php<?php if (isset($domain)) echo '?domain=' . $domain; ?>"><?php echo $PALANG['pAdminMenu_create_mailbox']; ?></a></li> <li><a target="_top" href="add-mailbox.php<?php if (isset($domain)) echo '?domain=' . $domain; ?>"><?php echo $LANG['AdminMenu_create_mailbox']; ?></a></li>
</ul> </ul>
</div> </div>

View File

@ -1,5 +1,5 @@
<div id="overview"> <div id="overview">
<h4><?php print $PALANG['pSearch_welcome'] . $search; ?></h4> <h4><?php print $LANG['Search_welcome'] . $search; ?></h4>
<form name="search" method="post" action="search.php"> <form name="search" method="post" action="search.php">
<input type="textbox" name="search"> <input type="textbox" name="search">
</form> </form>
@ -8,12 +8,12 @@
if (count($list_alias) > 0) { if (count($list_alias) > 0) {
print "<table id=\"alias_table\">\n"; print "<table id=\"alias_table\">\n";
print " <tr>\n"; print " <tr>\n";
print " <td colspan=\"5\"><h3>".$PALANG['pOverview_alias_title']."</h3></td>"; print " <td colspan=\"5\"><h3>".$LANG['Overview_alias_title']."</h3></td>";
print " </tr>"; print " </tr>";
print " <tr class=\"header\">\n"; print " <tr class=\"header\">\n";
print " <td>" . $PALANG['pOverview_alias_address'] . "</td>\n"; print " <td>" . $LANG['Overview_alias_address'] . "</td>\n";
print " <td>" . $PALANG['pOverview_alias_goto'] . "</td>\n"; print " <td>" . $LANG['Overview_alias_goto'] . "</td>\n";
print " <td>" . $PALANG['pOverview_alias_modified'] . "</td>\n"; print " <td>" . $LANG['Overview_alias_modified'] . "</td>\n";
print " <td colspan=\"2\">&nbsp;</td>\n"; print " <td colspan=\"2\">&nbsp;</td>\n";
print " </tr>\n"; print " </tr>\n";
@ -22,8 +22,8 @@ if (count($list_alias) > 0) {
print " <td>" . $row['address'] . "</td>\n"; print " <td>" . $row['address'] . "</td>\n";
print " <td>" . preg_replace("/,/", "<br>", $row['goto']) . "</td>\n"; print " <td>" . preg_replace("/,/", "<br>", $row['goto']) . "</td>\n";
print " <td>" . $row['modified'] . "</td>\n"; print " <td>" . $row['modified'] . "</td>\n";
print " <td><a href=\"edit-alias.php?action=edit&address=" . $row['address'] . "&domain=" . $row['domain'] . "\">" . $PALANG['edit'] . "</a></td>\n"; print " <td><a href=\"edit-alias.php?action=edit&address=" . $row['address'] . "&domain=" . $row['domain'] . "\">" . $LANG['edit'] . "</a></td>\n";
print " <td><a href=\"delete.php?table=alias&delete=" . $row['address'] . "&domain=" . $row['domain'] . "\"onclick=\"return confirm ('" . $PALANG['confirm'] . $PALANG['pOverview_get_aliases'] . ": ". $row['address'] . "')\">" . $PALANG['del'] . "</a></td>\n"; print " <td><a href=\"delete.php?table=alias&delete=" . $row['address'] . "&domain=" . $row['domain'] . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['Overview_get_aliases'] . ": ". $row['address'] . "')\">" . $LANG['del'] . "</a></td>\n";
print " </tr>\n"; print " </tr>\n";
} }
print "</table>\n"; print "</table>\n";
@ -32,12 +32,12 @@ if (count($list_alias) > 0) {
if (count($list_mailbox) > 0) { if (count($list_mailbox) > 0) {
print "<table id=\"mailbox_table\">\n"; print "<table id=\"mailbox_table\">\n";
print " <tr>\n"; print " <tr>\n";
print " <td colspan=\"7\"><h3>".$PALANG['pOverview_mailbox_title']."</h3></td>"; print " <td colspan=\"7\"><h3>".$LANG['Overview_mailbox_title']."</h3></td>";
print " </tr>"; print " </tr>";
print " <tr class=\"header\">\n"; print " <tr class=\"header\">\n";
print " <td>" . $PALANG['pOverview_mailbox_username'] . "</td>\n"; print " <td>" . $LANG['Overview_mailbox_username'] . "</td>\n";
print " <td>" . $PALANG['pOverview_mailbox_name'] . "</td>\n"; print " <td>" . $LANG['Overview_mailbox_name'] . "</td>\n";
print " <td>" . $PALANG['pOverview_mailbox_modified'] . "</td>\n"; print " <td>" . $LANG['Overview_mailbox_modified'] . "</td>\n";
print " <td colspan=\"2\">&nbsp;</td>\n"; print " <td colspan=\"2\">&nbsp;</td>\n";
print " </tr>\n"; print " </tr>\n";
@ -45,8 +45,8 @@ if (count($list_mailbox) > 0) {
print " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">\n"; print " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">\n";
print " <td>" . $row['username'] . "</td>\n"; print " <td>" . $row['username'] . "</td>\n";
print " <td>" . $row['name'] . "</td>\n"; print " <td>" . $row['name'] . "</td>\n";
print " <td><a href=\"edit-mailbox.php?action=edit&username=" . $row['username'] . "&domain=" . $row['domain'] . "\">" . $PALANG['edit'] . "</a></td>\n"; print " <td><a href=\"edit-mailbox.php?action=edit&username=" . $row['username'] . "&domain=" . $row['domain'] . "\">" . $LANG['edit'] . "</a></td>\n";
print " <td><a href=\"delete.php?table=mailbox&delete=" . $row['username'] . "&domain=" . $row['domain'] . "\"onclick=\"return confirm ('" . $PALANG['confirm'] . $PALANG['pOverview_get_mailboxes'] . ": ". $row['username'] . "')\">" . $PALANG['del'] . "</a></td>\n"; print " <td><a href=\"delete.php?table=mailbox&delete=" . $row['username'] . "&domain=" . $row['domain'] . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['Overview_get_mailboxes'] . ": ". $row['username'] . "')\">" . $LANG['del'] . "</a></td>\n";
print " </tr>\n"; print " </tr>\n";
} }
print "</table>\n"; print "</table>\n";

View File

@ -2,10 +2,10 @@
<form name="create_alias" method="post"> <form name="create_alias" method="post">
<table> <table>
<tr> <tr>
<td colspan="3"><h3><?php echo $PALANG['pCreate_alias_welcome']; ?></h3></td> <td colspan="3"><h3><?php echo $LANG['Create_alias_welcome']; ?></h3></td>
</tr> </tr>
<tr> <tr>
<td><?php echo $PALANG['pCreate_alias_address']; ?></td> <td><?php echo $LANG['Create_alias_address']; ?></td>
<td><input class="flat" type="text" name="address" value="<?php echo $address ?? ''; ?>" /></td> <td><input class="flat" type="text" name="address" value="<?php echo $address ?? ''; ?>" /></td>
<td> <td>
<select class="flat" name="domain"> <select class="flat" name="domain">
@ -21,12 +21,12 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td><?php echo $PALANG['pCreate_alias_goto'] . ":"; ?></td> <td><?php echo $LANG['Create_alias_goto'] . ":"; ?></td>
<td><input class="flat" type="text" name="goto" value="<?php echo $goto ?? ''; ?>" /></td> <td><input class="flat" type="text" name="goto" value="<?php echo $goto ?? ''; ?>" /></td>
<td><?php echo $PALANG['pCreate_alias_goto_text']; ?></td> <td><?php echo $LANG['Create_alias_goto_text']; ?></td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php echo $PALANG['pCreate_alias_button']; ?>" /></td> <td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php echo $LANG['Create_alias_button']; ?>" /></td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="standout"><?php echo $message ?? '&nbsp;'; ?></td> <td colspan="3" class="standout"><?php echo $message ?? '&nbsp;'; ?></td>

View File

@ -2,10 +2,10 @@
<form name="create_mailbox" method="post"> <form name="create_mailbox" method="post">
<table> <table>
<tr> <tr>
<td colspan="3"><h3><?php print $PALANG['pCreate_mailbox_welcome']; ?></h3></td> <td colspan="3"><h3><?php print $LANG['Create_mailbox_welcome']; ?></h3></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pCreate_mailbox_username'] . ":"; ?></td> <td><?php print $LANG['Create_mailbox_username'] . ":"; ?></td>
<td><input class="flat" type="text" name="fUsername" value="<?php print $tUsername; ?>" /></td> <td><input class="flat" type="text" name="fUsername" value="<?php print $tUsername; ?>" /></td>
<td> <td>
<select name="fDomain"> <select name="fDomain">
@ -23,39 +23,39 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pCreate_mailbox_password'] . ":"; ?></td> <td><?php print $LANG['Create_mailbox_password'] . ":"; ?></td>
<td><input class="flat" type="password" name="fPassword" /></td> <td><input class="flat" type="password" name="fPassword" /></td>
<td><?php print $pCreate_mailbox_password_text; ?></td> <td><?php print $pCreate_mailbox_password_text; ?></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pCreate_mailbox_password2'] . ":"; ?></td> <td><?php print $LANG['Create_mailbox_password2'] . ":"; ?></td>
<td><input class="flat" type="password" name="fPassword2" /></td> <td><input class="flat" type="password" name="fPassword2" /></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pCreate_mailbox_name'] . ":"; ?></td> <td><?php print $LANG['Create_mailbox_name'] . ":"; ?></td>
<td><input class="flat" type="text" name="fName" value="<?php print $tName; ?>" /></td> <td><input class="flat" type="text" name="fName" value="<?php print $tName; ?>" /></td>
<td><?php print $pCreate_mailbox_name_text; ?></td> <td><?php print $pCreate_mailbox_name_text; ?></td>
</tr> </tr>
<?php if ($CONF['quota'] == 'YES') { ?> <?php if ($CONF['quota'] == 'YES') { ?>
<tr> <tr>
<td><?php print $PALANG['pCreate_mailbox_quota'] . ":"; ?></td> <td><?php print $LANG['Create_mailbox_quota'] . ":"; ?></td>
<td><input type="text" name="fQuota" value="<?php print $tQuota; ?>" /></td> <td><input type="text" name="fQuota" value="<?php print $tQuota; ?>" /></td>
<td><?php print $pCreate_mailbox_quota_text; ?></td> <td><?php print $pCreate_mailbox_quota_text; ?></td>
<tr> <tr>
<?php } ?> <?php } ?>
<tr> <tr>
<td><?php print $PALANG['pCreate_mailbox_active'] . ":"; ?></td> <td><?php print $LANG['Create_mailbox_active'] . ":"; ?></td>
<td><input class="flat" type="checkbox" name="fActive" checked /></td> <td><input class="flat" type="checkbox" name="fActive" checked /></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pCreate_mailbox_mail'] . ":"; ?></td> <td><?php print $LANG['Create_mailbox_mail'] . ":"; ?></td>
<td><input class="flat" type="checkbox" name="fMail" checked /></td> <td><input class="flat" type="checkbox" name="fMail" checked /></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $PALANG['pCreate_mailbox_button']; ?>" /></td> <td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $LANG['Create_mailbox_button']; ?>" /></td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="standout"><?php print $tMessage; ?></td> <td colspan="3" class="standout"><?php print $tMessage; ?></td>

View File

@ -2,15 +2,15 @@
<form name="edit_alias" method="post"> <form name="edit_alias" method="post">
<table> <table>
<tr> <tr>
<td colspan="3"><h3><?php print $PALANG['pEdit_alias_welcome']; ?></h3></td> <td colspan="3"><h3><?php print $LANG['Edit_alias_welcome']; ?></h3></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pEdit_alias_address'] . ":"; ?></td> <td><?php print $LANG['Edit_alias_address'] . ":"; ?></td>
<td><?php print $fAddress; ?></td> <td><?php print $fAddress; ?></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pEdit_alias_goto'] . ":"; ?></td> <td><?php print $LANG['Edit_alias_goto'] . ":"; ?></td>
<td> <td>
<textarea class="flat" rows="10" cols="60" name="fGoto"> <textarea class="flat" rows="10" cols="60" name="fGoto">
<?php <?php
@ -25,7 +25,7 @@ for ($i = 0 ; $i < count($array) ; $i++) {
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $PALANG['pEdit_alias_button']; ?>" /></td> <td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $LANG['Edit_alias_button']; ?>" /></td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="standout"><?php print $tMessage; ?></td> <td colspan="3" class="standout"><?php print $tMessage; ?></td>

View File

@ -2,42 +2,42 @@
<form name="edit_mailbox" method="post"> <form name="edit_mailbox" method="post">
<table> <table>
<tr> <tr>
<td colspan="3"><h3><?php print $PALANG['pEdit_mailbox_welcome']; ?></h3></td> <td colspan="3"><h3><?php print $LANG['Edit_mailbox_welcome']; ?></h3></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pEdit_mailbox_username']; ?></td> <td><?php print $LANG['Edit_mailbox_username']; ?></td>
<td><?php print $fUsername; ?></td> <td><?php print $fUsername; ?></td>
<td><?php print $pEdit_mailbox_username_text; ?></td> <td><?php print $pEdit_mailbox_username_text; ?></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pEdit_mailbox_password'] . ":"; ?></td> <td><?php print $LANG['Edit_mailbox_password'] . ":"; ?></td>
<td><input class="flat" type="password" name="fPassword" /></td> <td><input class="flat" type="password" name="fPassword" /></td>
<td><?php print $pEdit_mailbox_password_text; ?></td> <td><?php print $pEdit_mailbox_password_text; ?></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pEdit_mailbox_password2'] . ":"; ?></td> <td><?php print $LANG['Edit_mailbox_password2'] . ":"; ?></td>
<td><input class="flat" type="password" name="fPassword2" /></td> <td><input class="flat" type="password" name="fPassword2" /></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pEdit_mailbox_name'] . ":"; ?></td> <td><?php print $LANG['Edit_mailbox_name'] . ":"; ?></td>
<td><input class="flat" type="text" name="fName" value="<?php print htmlspecialchars($tName,ENT_QUOTES); ?>" /></td> <td><input class="flat" type="text" name="fName" value="<?php print htmlspecialchars($tName,ENT_QUOTES); ?>" /></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<?php if ($CONF['quota'] == 'YES') { ?> <?php if ($CONF['quota'] == 'YES') { ?>
<tr> <tr>
<td><?php print $PALANG['pEdit_mailbox_quota'] . ":"; ?></td> <td><?php print $LANG['Edit_mailbox_quota'] . ":"; ?></td>
<td><input class="flat" type="text" name="fQuota" value="<?php print $tQuota; ?>" /></td> <td><input class="flat" type="text" name="fQuota" value="<?php print $tQuota; ?>" /></td>
<td><?php print $pEdit_mailbox_quota_text; ?></td> <td><?php print $pEdit_mailbox_quota_text; ?></td>
</tr> </tr>
<?php } ?> <?php } ?>
<tr> <tr>
<td><?php print $PALANG['pCreate_mailbox_active'] . ":"; ?></td> <td><?php print $LANG['Create_mailbox_active'] . ":"; ?></td>
<td><input class="flat" type="checkbox" name="fActive" <?php print (!empty($tActive)) ? 'checked' : '' ?> ></td> <td><input class="flat" type="checkbox" name="fActive" <?php print (!empty($tActive)) ? 'checked' : '' ?> ></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="hlp_center"><input class="flat" type="submit" name="submit" value="<?php print $PALANG['pEdit_mailbox_button']; ?>" ></td> <td colspan="3" class="hlp_center"><input class="flat" type="submit" name="submit" value="<?php print $LANG['Edit_mailbox_button']; ?>" ></td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="standout"><?php print $tMessage; ?></td> <td colspan="3" class="standout"><?php print $tMessage; ?></td>

View File

@ -8,7 +8,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php print isset($PALANG['charset']) ? $PALANG['charset'] : 'iso-8859-1' ?>" /> <meta http-equiv="Content-Type" content="text/html; charset=<?php print isset($LANG['charset']) ? $LANG['charset'] : 'iso-8859-1' ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<?php <?php
if (file_exists(realpath("./stylesheet.css"))) print "<link rel=\"stylesheet\" href=\"stylesheet.css\">\n"; if (file_exists(realpath("./stylesheet.css"))) print "<link rel=\"stylesheet\" href=\"stylesheet.css\">\n";

View File

@ -6,18 +6,18 @@ Search: <input type="textbox" name="search" size="25">
<?php <?php
echo "<table id=\"overview_table\">\n"; echo "<table id=\"overview_table\">\n";
echo " <tr>\n"; echo " <tr>\n";
echo " <td colspan=\"5\"><h3>".$PALANG['pOverview_title']."</h3></td>"; echo " <td colspan=\"5\"><h3>".$LANG['Overview_title']."</h3></td>";
echo " </tr>"; echo " </tr>";
echo " <tr class=\"header\">\n"; echo " <tr class=\"header\">\n";
echo " <td>" . $PALANG['pOverview_get_domain'] . "</td>\n"; echo " <td>" . $LANG['Overview_get_domain'] . "</td>\n";
echo " <td>" . $PALANG['pOverview_get_aliases'] . "</td>\n"; echo " <td>" . $LANG['Overview_get_aliases'] . "</td>\n";
echo " <td>" . $PALANG['pOverview_get_mailboxes'] . "</td>\n"; echo " <td>" . $LANG['Overview_get_mailboxes'] . "</td>\n";
echo " </tr>\n"; echo " </tr>\n";
foreach ($list_domains as $row) { foreach ($list_domains as $row) {
if ($row['aliases'] == 0) $row['aliases'] = $PALANG['pOverview_unlimited']; if ($row['aliases'] == 0) $row['aliases'] = $LANG['Overview_unlimited'];
if ($row['mailboxes'] == 0) $row['mailboxes'] = $PALANG['pOverview_unlimited']; if ($row['mailboxes'] == 0) $row['mailboxes'] = $LANG['Overview_unlimited'];
if ($row['aliases'] < 0) $row['aliases'] = $PALANG['pOverview_disabled']; if ($row['aliases'] < 0) $row['aliases'] = $LANG['Overview_disabled'];
if ($row['mailboxes'] < 0) $row['mailboxes'] = $PALANG['pOverview_disabled']; if ($row['mailboxes'] < 0) $row['mailboxes'] = $LANG['Overview_disabled'];
echo " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">\n"; echo " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">\n";
echo " <td><a href=\"list-virtuals.php?domain=" . $row['domain'] . "\">" . $row['domain'] . "</a></td>\n"; echo " <td><a href=\"list-virtuals.php?domain=" . $row['domain'] . "\">" . $row['domain'] . "</a></td>\n";
echo " <td>" . $row['alias_count'] . " / " . $row['aliases'] . "</td>\n"; echo " <td>" . $row['alias_count'] . " / " . $row['aliases'] . "</td>\n";

View File

@ -9,21 +9,21 @@ if (count($list_domains) > 0) {
echo ">" . $row['domain'] . "</option>\n"; echo ">" . $row['domain'] . "</option>\n";
} }
} }
if ($list_domains[$domain_key]['aliases'] == 0) $list_domains[$domain_key]['aliases'] = $PALANG['pOverview_unlimited']; if ($list_domains[$domain_key]['aliases'] == 0) $list_domains[$domain_key]['aliases'] = $LANG['Overview_unlimited'];
if ($list_domains[$domain_key]['aliases'] < 0) $list_domains[$domain_key]['aliases'] = $PALANG['pOverview_disabled']; if ($list_domains[$domain_key]['aliases'] < 0) $list_domains[$domain_key]['aliases'] = $LANG['Overview_disabled'];
if ($list_domains[$domain_key]['mailboxes'] == 0) $list_domains[$domain_key]['mailboxes'] = $PALANG['pOverview_unlimited']; if ($list_domains[$domain_key]['mailboxes'] == 0) $list_domains[$domain_key]['mailboxes'] = $LANG['Overview_unlimited'];
if ($list_domains[$domain_key]['mailboxes'] < 0) $list_domains[$domain_key]['mailboxes'] = $PALANG['pOverview_disabled']; if ($list_domains[$domain_key]['mailboxes'] < 0) $list_domains[$domain_key]['mailboxes'] = $LANG['Overview_disabled'];
if ($list_domains[$domain_key]['maxquota'] == 0) $list_domains[$domain_key]['maxquota'] = $PALANG['pOverview_unlimited']; if ($list_domains[$domain_key]['maxquota'] == 0) $list_domains[$domain_key]['maxquota'] = $LANG['Overview_unlimited'];
if ($list_domains[$domain_key]['maxquota'] < 0) $list_domains[$domain_key]['maxquota'] = $PALANG['pOverview_disabled']; if ($list_domains[$domain_key]['maxquota'] < 0) $list_domains[$domain_key]['maxquota'] = $LANG['Overview_disabled'];
?> ?>
</select> </select>
<input type="hidden" name="offset" value="0"> <input type="hidden" name="offset" value="0">
<input class="button" type="submit" name="go" value="<?php echo $PALANG['pOverview_button']; ?>" /> <input class="button" type="submit" name="go" value="<?php echo $LANG['Overview_button']; ?>" />
</form> </form>
<h4><?php echo $PALANG['pOverview_welcome'] . $domain; ?></h4> <h4><?php echo $LANG['Overview_welcome'] . $domain; ?></h4>
<p><?php echo $PALANG['pOverview_alias_alias_count'] . ": " . $list_domains[$domain_key]['alias_count'] . " / " . $list_domains[$domain_key]['aliases']; ?></p> <p><?php echo $LANG['Overview_alias_alias_count'] . ": " . $list_domains[$domain_key]['alias_count'] . " / " . $list_domains[$domain_key]['aliases']; ?></p>
<p><?php echo $PALANG['pOverview_alias_mailbox_count'] . ": " . $list_domains[$domain_key]['mailbox_count'] . " / " . $list_domains[$domain_key]['mailboxes']; ?></p> <p><?php echo $LANG['Overview_alias_mailbox_count'] . ": " . $list_domains[$domain_key]['mailbox_count'] . " / " . $list_domains[$domain_key]['mailboxes']; ?></p>
<form name="search" method="post" action="search.php"> <form name="search" method="post" action="search.php">
<input type="textbox" name="search" size="25"> <input type="textbox" name="search" size="25">
@ -34,14 +34,14 @@ if ($list_domains[$domain_key]['alias_count'] > $limit || $list_domains[$domain_
echo "<div id=\"nav_bar\">\n"; echo "<div id=\"nav_bar\">\n";
if ($offset >= $limit) { if ($offset >= $limit) {
echo "<a href=\"overview.php?domain=" . $_GET['domain'] . "&offset=" . ($offset - $limit) . "\"><img border=\"0\" src=\"images/arrow-l.png\" title=\"" . $PALANG['pOverview_left_arrow'] . "\"></a>\n"; echo "<a href=\"overview.php?domain=" . $_GET['domain'] . "&offset=" . ($offset - $limit) . "\"><img border=\"0\" src=\"images/arrow-l.png\" title=\"" . $LANG['Overview_left_arrow'] . "\"></a>\n";
} }
if (($list_domains[$domain_key]['alias_count'] > $limit) || ($list_domains[$domain_key]['mailbox_count'] > $limit)) { if (($list_domains[$domain_key]['alias_count'] > $limit) || ($list_domains[$domain_key]['mailbox_count'] > $limit)) {
echo "<a href=\"overview.php?domain=" . $_GET['domain'] . "&offset=0\"><img border=\"0\" src=\"images/arrow-u.png\" title=\"" . $PALANG['pOverview_up_arrow'] . "\"></a>\n"; echo "<a href=\"overview.php?domain=" . $_GET['domain'] . "&offset=0\"><img border=\"0\" src=\"images/arrow-u.png\" title=\"" . $LANG['Overview_up_arrow'] . "\"></a>\n";
} }
if ((($offset + $limit) < $list_domains[$domain_key]['alias_count']) || (($offset + $limit) < $list_domains[$domain_key]['mailbox_count'])) { if ((($offset + $limit) < $list_domains[$domain_key]['alias_count']) || (($offset + $limit) < $list_domains[$domain_key]['mailbox_count'])) {
echo "<a href=\"overview.php?domain=" . $_GET['domain'] . "&offset=" . ($offset + $limit) . "\"><img border=\"0\" src=\"images/arrow-r.png\" title=\"" . $PALANG['pOverview_right_arrow'] . "\"></a>\n"; echo "<a href=\"overview.php?domain=" . $_GET['domain'] . "&offset=" . ($offset + $limit) . "\"><img border=\"0\" src=\"images/arrow-r.png\" title=\"" . $LANG['Overview_right_arrow'] . "\"></a>\n";
} }
echo "</div>\n"; echo "</div>\n";
} }
@ -49,12 +49,12 @@ if ($list_domains[$domain_key]['alias_count'] > $limit || $list_domains[$domain_
if (count($list_alias) > 0) { if (count($list_alias) > 0) {
echo "<table id=\"alias_table\">\n"; echo "<table id=\"alias_table\">\n";
echo " <tr>\n"; echo " <tr>\n";
echo " <td colspan=\"5\"><h3>".$PALANG['pOverview_alias_title']."</h3></td>"; echo " <td colspan=\"5\"><h3>".$LANG['Overview_alias_title']."</h3></td>";
echo " </tr>"; echo " </tr>";
echo " <tr class=\"header\">\n"; echo " <tr class=\"header\">\n";
echo " <td>" . $PALANG['pOverview_alias_address'] . "</td>\n"; echo " <td>" . $LANG['Overview_alias_address'] . "</td>\n";
echo " <td>" . $PALANG['pOverview_alias_goto'] . "</td>\n"; echo " <td>" . $LANG['Overview_alias_goto'] . "</td>\n";
echo " <td>" . $PALANG['pOverview_alias_modified'] . "</td>\n"; echo " <td>" . $LANG['Overview_alias_modified'] . "</td>\n";
echo " <td colspan=\"2\">&nbsp;</td>\n"; echo " <td colspan=\"2\">&nbsp;</td>\n";
echo " </tr>\n"; echo " </tr>\n";
@ -65,12 +65,12 @@ if (count($list_alias) > 0) {
echo " <td>" . $row['modified'] . "</td>\n"; echo " <td>" . $row['modified'] . "</td>\n";
if ($CONF['special_alias_control'] == 'YES') { if ($CONF['special_alias_control'] == 'YES') {
echo " <td><a href=\"edit-alias.php?address=" . $row['address'] . "&domain=" . $list_domains[$domain_key]['domain'] . "\">" . $PALANG['edit'] . "</a></td>\n"; echo " <td><a href=\"edit-alias.php?address=" . $row['address'] . "&domain=" . $list_domains[$domain_key]['domain'] . "\">" . $LANG['edit'] . "</a></td>\n";
echo " <td><a href=\"delete.php?delete=" . $row['address'] . "&domain=" . $list_domains[$domain_key]['domain'] . "\"onclick=\"return confirm ('" . $PALANG['confirm'] . $PALANG['pOverview_get_aliases'] . ": ". $row['address'] . "')\">" . $PALANG['del'] . "</a></td>\n"; echo " <td><a href=\"delete.php?delete=" . $row['address'] . "&domain=" . $list_domains[$domain_key]['domain'] . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['Overview_get_aliases'] . ": ". $row['address'] . "')\">" . $LANG['del'] . "</a></td>\n";
} else { } else {
if (!in_array($row['goto'], $CONF['default_aliases'])) { if (!in_array($row['goto'], $CONF['default_aliases'])) {
echo " <td><a href=\"edit-alias.php?address=" . $row['address'] . "&domain=" . $row['domain'] . "\">" . $PALANG['edit'] . "</a></td>\n"; echo " <td><a href=\"edit-alias.php?address=" . $row['address'] . "&domain=" . $row['domain'] . "\">" . $LANG['edit'] . "</a></td>\n";
echo " <td><a href=\"delete.php?delete=" . $row['address'] . "&domain=" . $row['domain'] . "\"onclick=\"return confirm ('" . $PALANG['confirm'] . $PALANG['pOverview_get_aliases'] . ": ". $row['address'] . "')\">" . $PALANG['del'] . "</a></td>\n"; echo " <td><a href=\"delete.php?delete=" . $row['address'] . "&domain=" . $row['domain'] . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['Overview_get_aliases'] . ": ". $row['address'] . "')\">" . $LANG['del'] . "</a></td>\n";
} else { } else {
echo " <td>&nbsp;</td>\n"; echo " <td>&nbsp;</td>\n";
echo " <td>&nbsp;</td>\n"; echo " <td>&nbsp;</td>\n";
@ -85,13 +85,13 @@ if (count($list_alias) > 0) {
if (count($list_mailbox) > 0) { if (count($list_mailbox) > 0) {
echo "<table id=\"mailbox_table\">\n"; echo "<table id=\"mailbox_table\">\n";
echo " <tr>\n"; echo " <tr>\n";
echo " <td colspan=\"7\"><h3>".$PALANG['pOverview_mailbox_title']."</h3></td>"; echo " <td colspan=\"7\"><h3>".$LANG['Overview_mailbox_title']."</h3></td>";
echo " </tr>"; echo " </tr>";
echo " <tr class=\"header\">\n"; echo " <tr class=\"header\">\n";
echo " <td>" . $PALANG['pOverview_mailbox_username'] . "</td>\n"; echo " <td>" . $LANG['Overview_mailbox_username'] . "</td>\n";
echo " <td>" . $PALANG['pOverview_mailbox_name'] . "</td>\n"; echo " <td>" . $LANG['Overview_mailbox_name'] . "</td>\n";
echo " <td>" . $PALANG['pOverview_mailbox_modified'] . "</td>\n"; echo " <td>" . $LANG['Overview_mailbox_modified'] . "</td>\n";
echo " <td>" . $PALANG['pOverview_mailbox_active'] . "</td>\n"; echo " <td>" . $LANG['Overview_mailbox_active'] . "</td>\n";
echo " <td colspan=\"2\">&nbsp;</td>\n"; echo " <td colspan=\"2\">&nbsp;</td>\n";
echo " </tr>\n"; echo " </tr>\n";
@ -100,8 +100,8 @@ if (count($list_mailbox) > 0) {
echo " <td>" . $row['username'] . "</td>\n"; echo " <td>" . $row['username'] . "</td>\n";
echo " <td>" . $row['name'] . "</td>\n"; echo " <td>" . $row['name'] . "</td>\n";
echo " <td>" . $row['modified'] . "</td>\n"; echo " <td>" . $row['modified'] . "</td>\n";
echo " <td><a href=\"edit-mailbox.php?username=" . $row['username'] . "&domain=$fDomain" . "\">" . $PALANG['edit'] . "</a></td>\n"; echo " <td><a href=\"edit-mailbox.php?username=" . $row['username'] . "&domain=$fDomain" . "\">" . $LANG['edit'] . "</a></td>\n";
echo " <td><a href=\"delete.php?delete=" . $row['username'] . "&domain=$fDomain" . "\"onclick=\"return confirm ('" . $PALANG['confirm'] . $PALANG['pOverview_get_mailboxes'] . ": ". $row['username'] . "')\">" . $PALANG['del'] . "</a></td>\n"; echo " <td><a href=\"delete.php?delete=" . $row['username'] . "&domain=$fDomain" . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['Overview_get_mailboxes'] . ": ". $row['username'] . "')\">" . $LANG['del'] . "</a></td>\n";
echo " </tr>\n"; echo " </tr>\n";
} }
echo "</table>\n"; echo "</table>\n";

View File

@ -2,24 +2,24 @@
<form name="login" method="post"> <form name="login" method="post">
<table id="login_table" cellspacing="10"> <table id="login_table" cellspacing="10">
<tr> <tr>
<td colspan="2"><h4><?php print $PALANG['pLogin_welcome']; ?></h4></td> <td colspan="2"><h4><?php print $LANG['Login_welcome']; ?></h4></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pLogin_username'] . ":"; ?></td> <td><?php print $LANG['Login_username'] . ":"; ?></td>
<td><input class="flat" type="text" name="fUsername" value="<?php print $tUsername; ?>" /></td> <td><input class="flat" type="text" name="fUsername" value="<?php print $tUsername; ?>" /></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pLogin_password'] . ":"; ?></td> <td><?php print $LANG['Login_password'] . ":"; ?></td>
<td><input class="flat" type="password" name="fPassword" /></td> <td><input class="flat" type="password" name="fPassword" /></td>
</tr> </tr>
<tr> <tr>
<td colspan="2" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $PALANG['pLogin_button']; ?>" /></td> <td colspan="2" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $LANG['Login_button']; ?>" /></td>
</tr> </tr>
<tr> <tr>
<td colspan="2" class="standout"><?php print $tMessage; ?></td> <td colspan="2" class="standout"><?php print $tMessage; ?></td>
</tr> </tr>
<tr> <tr>
<td colspan="2"><a href="users/"><?php print $PALANG['pLogin_login_users']; ?></a></td> <td colspan="2"><a href="users/"><?php print $LANG['Login_login_users']; ?></a></td>
</tr> </tr>
</table> </table>
</form> </form>

View File

@ -1,32 +1,32 @@
<div id="main_menu"> <div id="main_menu">
<table> <table>
<tr> <tr>
<td nowrap><a target="_top" href="list-domains.php"><?php print $PALANG['pMenu_overview']; ?></a></td> <td nowrap><a target="_top" href="list-domains.php"><?php print $LANG['Menu_overview']; ?></a></td>
<td><?php print $PALANG['pMain_overview']; ?></td> <td><?php print $LANG['Main_overview']; ?></td>
</tr> </tr>
<tr> <tr>
<td nowrap><a target="_top" href="create-alias.php"><?php print $PALANG['pMenu_create_alias']; ?></a></td> <td nowrap><a target="_top" href="create-alias.php"><?php print $LANG['Menu_create_alias']; ?></a></td>
<td><?php print $PALANG['pMain_create_alias']; ?></td> <td><?php print $LANG['Main_create_alias']; ?></td>
</tr> </tr>
<tr> <tr>
<td nowrap><a target="_top" href="create-mailbox.php"><?php print $PALANG['pMenu_create_mailbox']; ?></a></td> <td nowrap><a target="_top" href="create-mailbox.php"><?php print $LANG['Menu_create_mailbox']; ?></a></td>
<td><?php print $PALANG['pMain_create_mailbox']; ?></td> <td><?php print $LANG['Main_create_mailbox']; ?></td>
</tr> </tr>
<tr> <tr>
<td nowrap><a target="_top" href="sendmail.php"><?php print $PALANG['pMenu_sendmail']; ?></a></td> <td nowrap><a target="_top" href="sendmail.php"><?php print $LANG['Menu_sendmail']; ?></a></td>
<td><?php print $PALANG['pMain_sendmail']; ?></td> <td><?php print $LANG['Main_sendmail']; ?></td>
</tr> </tr>
<tr> <tr>
<td nowrap><a target="_top" href="password.php"><?php print $PALANG['pMenu_password']; ?></a></td> <td nowrap><a target="_top" href="password.php"><?php print $LANG['Menu_password']; ?></a></td>
<td><?php print $PALANG['pMain_password']; ?></td> <td><?php print $LANG['Main_password']; ?></td>
</tr> </tr>
<tr> <tr>
<td nowrap><a target="_top" href="viewlog.php"><?php print $PALANG['pMenu_viewlog']; ?></a></td> <td nowrap><a target="_top" href="viewlog.php"><?php print $LANG['Menu_viewlog']; ?></a></td>
<td><?php print $PALANG['pMain_viewlog']; ?></td> <td><?php print $LANG['Main_viewlog']; ?></td>
</tr> </tr>
<tr> <tr>
<td nowrap><a target="_top" href="logout.php"><?php print $PALANG['pMenu_logout']; ?></a></td> <td nowrap><a target="_top" href="logout.php"><?php print $LANG['Menu_logout']; ?></a></td>
<td><?php print $PALANG['pMain_logout']; ?></td> <td><?php print $LANG['Main_logout']; ?></td>
</tr> </tr>
</table> </table>
/div> /div>

View File

@ -1,12 +1,12 @@
<div id="menu"> <div id="menu">
<ul> <ul>
<li><a target="_top" href="list-domains.php"><?php print $PALANG['pMenu_overview']; ?></a></li> <li><a target="_top" href="list-domains.php"><?php print $LANG['Menu_overview']; ?></a></li>
<li><a target="_top" href="create-alias.php<?php if (isset($domain)) echo '?domain=' . $domain; ?>"><?php echo $PALANG['pMenu_create_alias']; ?></a></li> <li><a target="_top" href="create-alias.php<?php if (isset($domain)) echo '?domain=' . $domain; ?>"><?php echo $LANG['Menu_create_alias']; ?></a></li>
<li><a target="_top" href="create-mailbox.php<?php if (isset($domain)) echo '?domain=' . $domain; ?>"><?php echo $PALANG['pMenu_create_mailbox']; ?></a></li> <li><a target="_top" href="create-mailbox.php<?php if (isset($domain)) echo '?domain=' . $domain; ?>"><?php echo $LANG['Menu_create_mailbox']; ?></a></li>
<li><a target="_top" href="sendmail.php"><?php print $PALANG['pMenu_sendmail']; ?></a></li> <li><a target="_top" href="sendmail.php"><?php print $LANG['Menu_sendmail']; ?></a></li>
<li><a target="_top" href="password.php"><?php print $PALANG['pMenu_password']; ?></a></li> <li><a target="_top" href="password.php"><?php print $LANG['Menu_password']; ?></a></li>
<li><a target="_top" href="viewlog.php"><?php print $PALANG['pMenu_viewlog']; ?></a></li> <li><a target="_top" href="viewlog.php"><?php print $LANG['Menu_viewlog']; ?></a></li>
<li><a target="_top" href="logout.php"><?php print $PALANG['pMenu_logout']; ?></a></li> <li><a target="_top" href="logout.php"><?php print $LANG['Menu_logout']; ?></a></li>
</ul> </ul>
</div> </div>
<?php <?php

View File

@ -11,7 +11,7 @@ for ($i = 0; $i < count($list_domains); $i++) {
} }
?> ?>
</select> </select>
<input class="button" type="submit" name="go" value="<?php print $PALANG['pOverview_button']; ?>" /> <input class="button" type="submit" name="go" value="<?php print $LANG['Overview_button']; ?>" />
</form> </form>
<form name="search" method="post" action="search.php"> <form name="search" method="post" action="search.php">
<input type="textbox" name="search" size="10"> <input type="textbox" name="search" size="10">
@ -20,25 +20,25 @@ for ($i = 0; $i < count($list_domains); $i++) {
<?php <?php
print "<table id=\"overview_table\">\n"; print "<table id=\"overview_table\">\n";
print " <tr>\n"; print " <tr>\n";
print " <td colspan=\"5\"><h3>".$PALANG['pOverview_title']."</h3></td>"; print " <td colspan=\"5\"><h3>".$LANG['Overview_title']."</h3></td>";
print " </tr>"; print " </tr>";
print " <tr class=\"header\">\n"; print " <tr class=\"header\">\n";
print " <td>" . $PALANG['pOverview_get_domain'] . "</td>\n"; print " <td>" . $LANG['Overview_get_domain'] . "</td>\n";
print " <td>" . $PALANG['pOverview_get_aliases'] . "</td>\n"; print " <td>" . $LANG['Overview_get_aliases'] . "</td>\n";
print " <td>" . $PALANG['pOverview_get_mailboxes'] . "</td>\n"; print " <td>" . $LANG['Overview_get_mailboxes'] . "</td>\n";
if ($CONF['quota'] == 'YES') print " <td>" . $PALANG['pOverview_get_quota'] . "</td>\n"; if ($CONF['quota'] == 'YES') print " <td>" . $LANG['Overview_get_quota'] . "</td>\n";
print " </tr>\n"; print " </tr>\n";
for ($i = 0; $i < count($list_domains); $i++) { for ($i = 0; $i < count($list_domains); $i++) {
if ((is_array($list_domains) and count($list_domains) > 0)) { if ((is_array($list_domains) and count($list_domains) > 0)) {
$limit = get_domain_properties($list_domains[$i]); $limit = get_domain_properties($list_domains[$i]);
if ($limit['aliases'] == 0) $limit['aliases'] = $PALANG['pOverview_unlimited']; if ($limit['aliases'] == 0) $limit['aliases'] = $LANG['Overview_unlimited'];
if ($limit['mailboxes'] == 0) $limit['mailboxes'] = $PALANG['pOverview_unlimited']; if ($limit['mailboxes'] == 0) $limit['mailboxes'] = $LANG['Overview_unlimited'];
if ($limit['maxquota'] == 0) $limit['maxquota'] = $PALANG['pOverview_unlimited']; if ($limit['maxquota'] == 0) $limit['maxquota'] = $LANG['Overview_unlimited'];
if ($limit['aliases'] < 0) $limit['aliases'] = $PALANG['pOverview_disabled']; if ($limit['aliases'] < 0) $limit['aliases'] = $LANG['Overview_disabled'];
if ($limit['mailboxes'] < 0) $limit['mailboxes'] = $PALANG['pOverview_disabled']; if ($limit['mailboxes'] < 0) $limit['mailboxes'] = $LANG['Overview_disabled'];
if ($limit['maxquota'] < 0) $limit['maxquota'] = $PALANG['pOverview_disabled']; if ($limit['maxquota'] < 0) $limit['maxquota'] = $LANG['Overview_disabled'];
print " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">\n"; print " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">\n";
print " <td><a href=\"overview.php?domain=" . $list_domains[$i] . "\">" . $list_domains[$i] . "</a></td>\n"; print " <td><a href=\"overview.php?domain=" . $list_domains[$i] . "\">" . $list_domains[$i] . "</a></td>\n";

View File

@ -9,21 +9,21 @@ if (count($list_domains) > 0) {
echo ">" . $row['domain'] . "</option>\n"; echo ">" . $row['domain'] . "</option>\n";
} }
} }
if ($list_domains[$selected_domain]['aliases'] == 0) $list_domains[$selected_domain]['aliases'] = $PALANG['pOverview_unlimited']; if ($list_domains[$selected_domain]['aliases'] == 0) $list_domains[$selected_domain]['aliases'] = $LANG['Overview_unlimited'];
if ($list_domains[$selected_domain]['aliases'] < 0) $list_domains[$selected_domain]['aliases'] = $PALANG['pOverview_disabled']; if ($list_domains[$selected_domain]['aliases'] < 0) $list_domains[$selected_domain]['aliases'] = $LANG['Overview_disabled'];
if ($list_domains[$selected_domain]['mailboxes'] == 0) $list_domains[$selected_domain]['mailboxes'] = $PALANG['pOverview_unlimited']; if ($list_domains[$selected_domain]['mailboxes'] == 0) $list_domains[$selected_domain]['mailboxes'] = $LANG['Overview_unlimited'];
if ($list_domains[$selected_domain]['mailboxes'] < 0) $list_domains[$selected_domain]['mailboxes'] = $PALANG['pOverview_disabled']; if ($list_domains[$selected_domain]['mailboxes'] < 0) $list_domains[$selected_domain]['mailboxes'] = $LANG['Overview_disabled'];
if ($list_domains[$selected_domain]['maxquota'] == 0) $list_domains[$selected_domain]['maxquota'] = $PALANG['pOverview_unlimited']; if ($list_domains[$selected_domain]['maxquota'] == 0) $list_domains[$selected_domain]['maxquota'] = $LANG['Overview_unlimited'];
if ($list_domains[$selected_domain]['maxquota'] < 0) $list_domains[$selected_domain]['maxquota'] = $PALANG['pOverview_disabled']; if ($list_domains[$selected_domain]['maxquota'] < 0) $list_domains[$selected_domain]['maxquota'] = $LANG['Overview_disabled'];
?> ?>
</select> </select>
<input type="hidden" name="offset" value="0"> <input type="hidden" name="offset" value="0">
<input class="button" type="submit" name="go" value="<?php echo $PALANG['pOverview_button']; ?>" /> <input class="button" type="submit" name="go" value="<?php echo $LANG['Overview_button']; ?>" />
</form> </form>
<h4><?php echo $PALANG['pOverview_welcome'] . $_GET['domain']; ?></h4> <h4><?php echo $LANG['Overview_welcome'] . $_GET['domain']; ?></h4>
<p><?php echo $PALANG['pOverview_alias_alias_count'] . ": " . $list_domains[$selected_domain]['alias_count'] . " / " . $list_domains[$selected_domain]['aliases']; ?></p> <p><?php echo $LANG['Overview_alias_alias_count'] . ": " . $list_domains[$selected_domain]['alias_count'] . " / " . $list_domains[$selected_domain]['aliases']; ?></p>
<p><?php echo $PALANG['pOverview_alias_mailbox_count'] . ": " . $list_domains[$selected_domain]['mailbox_count'] . " / " . $list_domains[$selected_domain]['mailboxes']; ?></p> <p><?php echo $LANG['Overview_alias_mailbox_count'] . ": " . $list_domains[$selected_domain]['mailbox_count'] . " / " . $list_domains[$selected_domain]['mailboxes']; ?></p>
<form name="search" method="post" action="search.php"> <form name="search" method="post" action="search.php">
<input type="textbox" name="search" size="25"> <input type="textbox" name="search" size="25">
@ -34,14 +34,14 @@ if ($list_domains[$selected_domain]['alias_count'] > $limit || $list_domains[$se
echo "<div id=\"nav_bar\">\n"; echo "<div id=\"nav_bar\">\n";
if ($offset >= $limit) { if ($offset >= $limit) {
echo "<a href=\"overview.php?domain=" . $_GET['domain'] . "&offset=" . ($offset - $limit) . "\"><img border=\"0\" src=\"images/arrow-l.png\" title=\"" . $PALANG['pOverview_left_arrow'] . "\"></a>\n"; echo "<a href=\"overview.php?domain=" . $_GET['domain'] . "&offset=" . ($offset - $limit) . "\"><img border=\"0\" src=\"images/arrow-l.png\" title=\"" . $LANG['Overview_left_arrow'] . "\"></a>\n";
} }
if (($list_domains[$selected_domain]['alias_count'] > $limit) || ($list_domains[$selected_domain]['mailbox_count'] > $limit)) { if (($list_domains[$selected_domain]['alias_count'] > $limit) || ($list_domains[$selected_domain]['mailbox_count'] > $limit)) {
echo "<a href=\"overview.php?domain=" . $_GET['domain'] . "&offset=0\"><img border=\"0\" src=\"images/arrow-u.png\" title=\"" . $PALANG['pOverview_up_arrow'] . "\"></a>\n"; echo "<a href=\"overview.php?domain=" . $_GET['domain'] . "&offset=0\"><img border=\"0\" src=\"images/arrow-u.png\" title=\"" . $LANG['Overview_up_arrow'] . "\"></a>\n";
} }
if ((($offset + $limit) < $list_domains[$selected_domain]['alias_count']) || (($offset + $limit) < $list_domains[$selected_domain]['mailbox_count'])) { if ((($offset + $limit) < $list_domains[$selected_domain]['alias_count']) || (($offset + $limit) < $list_domains[$selected_domain]['mailbox_count'])) {
echo "<a href=\"overview.php?domain=" . $_GET['domain'] . "&offset=" . ($offset + $limit) . "\"><img border=\"0\" src=\"images/arrow-r.png\" title=\"" . $PALANG['pOverview_right_arrow'] . "\"></a>\n"; echo "<a href=\"overview.php?domain=" . $_GET['domain'] . "&offset=" . ($offset + $limit) . "\"><img border=\"0\" src=\"images/arrow-r.png\" title=\"" . $LANG['Overview_right_arrow'] . "\"></a>\n";
} }
echo "</div>\n"; echo "</div>\n";
} }
@ -49,12 +49,12 @@ if ($list_domains[$selected_domain]['alias_count'] > $limit || $list_domains[$se
if (count($list_alias) > 0) { if (count($list_alias) > 0) {
echo "<table id=\"alias_table\">\n"; echo "<table id=\"alias_table\">\n";
echo " <tr>\n"; echo " <tr>\n";
echo " <td colspan=\"5\"><h3>".$PALANG['pOverview_alias_title']."</h3></td>"; echo " <td colspan=\"5\"><h3>".$LANG['Overview_alias_title']."</h3></td>";
echo " </tr>"; echo " </tr>";
echo " <tr class=\"header\">\n"; echo " <tr class=\"header\">\n";
echo " <td>" . $PALANG['pOverview_alias_address'] . "</td>\n"; echo " <td>" . $LANG['Overview_alias_address'] . "</td>\n";
echo " <td>" . $PALANG['pOverview_alias_goto'] . "</td>\n"; echo " <td>" . $LANG['Overview_alias_goto'] . "</td>\n";
echo " <td>" . $PALANG['pOverview_alias_modified'] . "</td>\n"; echo " <td>" . $LANG['Overview_alias_modified'] . "</td>\n";
echo " <td colspan=\"2\">&nbsp;</td>\n"; echo " <td colspan=\"2\">&nbsp;</td>\n";
echo " </tr>\n"; echo " </tr>\n";
@ -65,12 +65,12 @@ if (count($list_alias) > 0) {
echo " <td>" . $row['modified'] . "</td>\n"; echo " <td>" . $row['modified'] . "</td>\n";
if ($CONF['special_alias_control'] == 'YES') { if ($CONF['special_alias_control'] == 'YES') {
echo " <td><a href=\"edit-alias.php?address=" . $row['address'] . "&domain=fDomain" . "\">" . $PALANG['edit'] . "</a></td>\n"; echo " <td><a href=\"edit-alias.php?address=" . $row['address'] . "&domain=fDomain" . "\">" . $LANG['edit'] . "</a></td>\n";
echo " <td><a href=\"delete.php?delete=" . $row['address'] . "&domain=$fDomain" . "\"onclick=\"return confirm ('" . $PALANG['confirm'] . $PALANG['pOverview_get_aliases'] . ": ". $row['address'] . "')\">" . $PALANG['del'] . "</a></td>\n"; echo " <td><a href=\"delete.php?delete=" . $row['address'] . "&domain=$fDomain" . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['Overview_get_aliases'] . ": ". $row['address'] . "')\">" . $LANG['del'] . "</a></td>\n";
} else { } else {
if (!in_array($row['goto'], $CONF['default_aliases'])) { if (!in_array($row['goto'], $CONF['default_aliases'])) {
echo " <td><a href=\"edit-alias.php?address=" . $row['address'] . "&domain=fDomain" . "\">" . $PALANG['edit'] . "</a></td>\n"; echo " <td><a href=\"edit-alias.php?address=" . $row['address'] . "&domain=fDomain" . "\">" . $LANG['edit'] . "</a></td>\n";
echo " <td><a href=\"delete.php?delete=" . $row['address'] . "&domain=fDomain" . "\"onclick=\"return confirm ('" . $PALANG['confirm'] . $PALANG['pOverview_get_aliases'] . ": ". $row['address'] . "')\">" . $PALANG['del'] . "</a></td>\n"; echo " <td><a href=\"delete.php?delete=" . $row['address'] . "&domain=fDomain" . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['Overview_get_aliases'] . ": ". $row['address'] . "')\">" . $LANG['del'] . "</a></td>\n";
} else { } else {
echo " <td>&nbsp;</td>\n"; echo " <td>&nbsp;</td>\n";
echo " <td>&nbsp;</td>\n"; echo " <td>&nbsp;</td>\n";
@ -85,13 +85,13 @@ if (count($list_alias) > 0) {
if (count($list_mailbox) > 0) { if (count($list_mailbox) > 0) {
echo "<table id=\"mailbox_table\">\n"; echo "<table id=\"mailbox_table\">\n";
echo " <tr>\n"; echo " <tr>\n";
echo " <td colspan=\"7\"><h3>".$PALANG['pOverview_mailbox_title']."</h3></td>"; echo " <td colspan=\"7\"><h3>".$LANG['Overview_mailbox_title']."</h3></td>";
echo " </tr>"; echo " </tr>";
echo " <tr class=\"header\">\n"; echo " <tr class=\"header\">\n";
echo " <td>" . $PALANG['pOverview_mailbox_username'] . "</td>\n"; echo " <td>" . $LANG['Overview_mailbox_username'] . "</td>\n";
echo " <td>" . $PALANG['pOverview_mailbox_name'] . "</td>\n"; echo " <td>" . $LANG['Overview_mailbox_name'] . "</td>\n";
echo " <td>" . $PALANG['pOverview_mailbox_modified'] . "</td>\n"; echo " <td>" . $LANG['Overview_mailbox_modified'] . "</td>\n";
echo " <td>" . $PALANG['pOverview_mailbox_active'] . "</td>\n"; echo " <td>" . $LANG['Overview_mailbox_active'] . "</td>\n";
echo " <td colspan=\"2\">&nbsp;</td>\n"; echo " <td colspan=\"2\">&nbsp;</td>\n";
echo " </tr>\n"; echo " </tr>\n";
@ -100,9 +100,9 @@ if (count($list_mailbox) > 0) {
echo " <td>" . $row['username'] . "</td>\n"; echo " <td>" . $row['username'] . "</td>\n";
echo " <td>" . $row['name'] . "</td>\n"; echo " <td>" . $row['name'] . "</td>\n";
echo " <td>" . $row['modified'] . "</td>\n"; echo " <td>" . $row['modified'] . "</td>\n";
$active = ($row['active'] == 1) ? $PALANG['YES'] : $PALANG['NO']; $active = ($row['active'] == 1) ? $LANG['YES'] : $LANG['NO'];
echo " <td><a href=\"edit-mailbox.php?username=" . $row['username'] . "&domain=$fDomain" . "\">" . $PALANG['edit'] . "</a></td>\n"; echo " <td><a href=\"edit-mailbox.php?username=" . $row['username'] . "&domain=$fDomain" . "\">" . $LANG['edit'] . "</a></td>\n";
echo " <td><a href=\"delete.php?delete=" . $row['username'] . "&domain=$fDomain" . "\"onclick=\"return confirm ('" . $PALANG['confirm'] . $PALANG['pOverview_get_mailboxes'] . ": ". $row['username'] . "')\">" . $PALANG['del'] . "</a></td>\n"; echo " <td><a href=\"delete.php?delete=" . $row['username'] . "&domain=$fDomain" . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['Overview_get_mailboxes'] . ": ". $row['username'] . "')\">" . $LANG['del'] . "</a></td>\n";
echo " </tr>\n"; echo " </tr>\n";
} }
echo "</table>\n"; echo "</table>\n";

View File

@ -2,30 +2,30 @@
<form name="password" method="post"> <form name="password" method="post">
<table> <table>
<tr> <tr>
<td colspan="3"><h3><?php print $PALANG['pPassword_welcome']; ?></h3></td> <td colspan="3"><h3><?php print $LANG['Password_welcome']; ?></h3></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pPassword_admin'] . ":"; ?></td> <td><?php print $LANG['Password_admin'] . ":"; ?></td>
<td><?php print $SESSID_USERNAME; ?></td> <td><?php print $SESSID_USERNAME; ?></td>
<td><?php print $pPassword_admin_text; ?></td> <td><?php print $pPassword_admin_text; ?></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pPassword_password_current']; ?></td> <td><?php print $LANG['Password_password_current']; ?></td>
<td><input class="flat" type="password" name="fPassword_current" /></td> <td><input class="flat" type="password" name="fPassword_current" /></td>
<td><?php print $pPassword_password_current_text; ?></td> <td><?php print $pPassword_password_current_text; ?></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pPassword_password'] . ":"; ?></td> <td><?php print $LANG['Password_password'] . ":"; ?></td>
<td><input class="flat" type="password" name="fPassword" /></td> <td><input class="flat" type="password" name="fPassword" /></td>
<td><?php print $pPassword_password_text; ?></td> <td><?php print $pPassword_password_text; ?></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pPassword_password2'] . ":"; ?></td> <td><?php print $LANG['Password_password2'] . ":"; ?></td>
<td><input class="flat" type="password" name="fPassword2" /></td> <td><input class="flat" type="password" name="fPassword2" /></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $PALANG['pPassword_button']; ?>" /></td> <td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $LANG['Password_button']; ?>" /></td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="standout"><?php print $tMessage; ?></td> <td colspan="3" class="standout"><?php print $tMessage; ?></td>

View File

@ -1,5 +1,5 @@
<div id="overview"> <div id="overview">
<h4><?php print $PALANG['pSearch_welcome'] . $fSearch; ?></h4> <h4><?php print $LANG['Search_welcome'] . $fSearch; ?></h4>
<form name="search" method="post" action="search.php"> <form name="search" method="post" action="search.php">
<input type="textbox" name="search"> <input type="textbox" name="search">
</form> </form>
@ -8,12 +8,12 @@
if (count($tAlias) > 0) { if (count($tAlias) > 0) {
print "<table id=\"alias_table\">\n"; print "<table id=\"alias_table\">\n";
print " <tr>\n"; print " <tr>\n";
print " <td colspan=\"5\"><h3>".$PALANG['pOverview_alias_title']."</h3></td>"; print " <td colspan=\"5\"><h3>".$LANG['Overview_alias_title']."</h3></td>";
print " </tr>"; print " </tr>";
print " <tr class=\"header\">\n"; print " <tr class=\"header\">\n";
print " <td>" . $PALANG['pOverview_alias_address'] . "</td>\n"; print " <td>" . $LANG['Overview_alias_address'] . "</td>\n";
print " <td>" . $PALANG['pOverview_alias_goto'] . "</td>\n"; print " <td>" . $LANG['Overview_alias_goto'] . "</td>\n";
print " <td>" . $PALANG['pOverview_alias_modified'] . "</td>\n"; print " <td>" . $LANG['Overview_alias_modified'] . "</td>\n";
print " <td colspan=\"2\">&nbsp;</td>\n"; print " <td colspan=\"2\">&nbsp;</td>\n";
print " </tr>\n"; print " </tr>\n";
@ -23,8 +23,8 @@ if (count($tAlias) > 0) {
print " <td>" . $tAlias[$i]['address'] . "</td>\n"; print " <td>" . $tAlias[$i]['address'] . "</td>\n";
print " <td>" . preg_replace("/,/", "<br>", $tAlias[$i]['goto']) . "</td>\n"; print " <td>" . preg_replace("/,/", "<br>", $tAlias[$i]['goto']) . "</td>\n";
print " <td>" . $tAlias[$i]['modified'] . "</td>\n"; print " <td>" . $tAlias[$i]['modified'] . "</td>\n";
print " <td><a href=\"edit-alias.php?address=" . $tAlias[$i]['address'] . "&domain=" . $tAlias[$i]['domain'] . "\">" . $PALANG['edit'] . "</a></td>\n"; print " <td><a href=\"edit-alias.php?address=" . $tAlias[$i]['address'] . "&domain=" . $tAlias[$i]['domain'] . "\">" . $LANG['edit'] . "</a></td>\n";
print " <td><a href=\"delete.php?delete=" . $tAlias[$i]['address'] . "&domain=" . $tAlias[$i]['domain'] . "\"onclick=\"return confirm ('" . $PALANG['confirm'] . $PALANG['pOverview_get_aliases'] . ": ". $tAlias[$i]['address'] . "')\">" . $PALANG['del'] . "</a></td>\n"; print " <td><a href=\"delete.php?delete=" . $tAlias[$i]['address'] . "&domain=" . $tAlias[$i]['domain'] . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['Overview_get_aliases'] . ": ". $tAlias[$i]['address'] . "')\">" . $LANG['del'] . "</a></td>\n";
print " </tr>\n"; print " </tr>\n";
} }
} }
@ -35,14 +35,14 @@ if (count($tAlias) > 0) {
if (count($tMailbox) > 0) { if (count($tMailbox) > 0) {
print "<table id=\"mailbox_table\">\n"; print "<table id=\"mailbox_table\">\n";
print " <tr>\n"; print " <tr>\n";
print " <td colspan=\"7\"><h3>".$PALANG['pOverview_mailbox_title']."</h3></td>"; print " <td colspan=\"7\"><h3>".$LANG['Overview_mailbox_title']."</h3></td>";
print " </tr>"; print " </tr>";
print " <tr class=\"header\">\n"; print " <tr class=\"header\">\n";
print " <td>" . $PALANG['pOverview_mailbox_username'] . "</td>\n"; print " <td>" . $LANG['Overview_mailbox_username'] . "</td>\n";
print " <td>" . $PALANG['pOverview_mailbox_name'] . "</td>\n"; print " <td>" . $LANG['Overview_mailbox_name'] . "</td>\n";
if ($CONF['quota'] == 'YES') print " <td>" . $PALANG['pOverview_mailbox_quota'] . "</td>\n"; if ($CONF['quota'] == 'YES') print " <td>" . $LANG['Overview_mailbox_quota'] . "</td>\n";
print " <td>" . $PALANG['pOverview_mailbox_modified'] . "</td>\n"; print " <td>" . $LANG['Overview_mailbox_modified'] . "</td>\n";
print " <td>" . $PALANG['pOverview_mailbox_active'] . "</td>\n"; print " <td>" . $LANG['Overview_mailbox_active'] . "</td>\n";
print " <td colspan=\"2\">&nbsp;</td>\n"; print " <td colspan=\"2\">&nbsp;</td>\n";
print " </tr>\n"; print " </tr>\n";
@ -51,8 +51,8 @@ if (count($tMailbox) > 0) {
print " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">\n"; print " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">\n";
print " <td>" . $tMailbox[$i]['username'] . "</td>\n"; print " <td>" . $tMailbox[$i]['username'] . "</td>\n";
print " <td>" . $tMailbox[$i]['name'] . "</td>\n"; print " <td>" . $tMailbox[$i]['name'] . "</td>\n";
print " <td><a href=\"edit-mailbox.php?username=" . $tMailbox[$i]['username'] . "&domain=" . $tMailbox[$i]['domain'] . "\">" . $PALANG['edit'] . "</a></td>\n"; print " <td><a href=\"edit-mailbox.php?username=" . $tMailbox[$i]['username'] . "&domain=" . $tMailbox[$i]['domain'] . "\">" . $LANG['edit'] . "</a></td>\n";
print " <td><a href=\"delete.php?delete=" . $tMailbox[$i]['username'] . "&domain=" . $tMailbox[$i]['domain'] . "\"onclick=\"return confirm ('" . $PALANG['confirm'] . $PALANG['pOverview_get_mailboxes'] . ": ". $tMailbox[$i]['username'] . "')\">" . $PALANG['del'] . "</a></td>\n"; print " <td><a href=\"delete.php?delete=" . $tMailbox[$i]['username'] . "&domain=" . $tMailbox[$i]['domain'] . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['Overview_get_mailboxes'] . ": ". $tMailbox[$i]['username'] . "')\">" . $LANG['del'] . "</a></td>\n";
print " </tr>\n"; print " </tr>\n";
} }
} }

View File

@ -2,32 +2,32 @@
<form name="sendmail" method="post"> <form name="sendmail" method="post">
<table> <table>
<tr> <tr>
<td colspan="3"><h3><?php print $PALANG['pSendmail_welcome']; ?></h3></td> <td colspan="3"><h3><?php print $LANG['Sendmail_welcome']; ?></h3></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pSendmail_admin'] . ":"; ?></td> <td><?php print $LANG['Sendmail_admin'] . ":"; ?></td>
<td><?php print $SESSID_USERNAME; ?></td> <td><?php print $SESSID_USERNAME; ?></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pSendmail_to'] . ":"; ?></td> <td><?php print $LANG['Sendmail_to'] . ":"; ?></td>
<td><input class="flat" type="text" name="fTo" /></td> <td><input class="flat" type="text" name="fTo" /></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pSendmail_subject'] . ":"; ?></td> <td><?php print $LANG['Sendmail_subject'] . ":"; ?></td>
<td><input class="flat" type="text" name="fSubject" value="<?php print $PALANG['pSendmail_subject_text']; ?>" /></td> <td><input class="flat" type="text" name="fSubject" value="<?php print $LANG['Sendmail_subject_text']; ?>" /></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pSendmail_body'] . ":" ?></td> <td><?php print $LANG['Sendmail_body'] . ":" ?></td>
<td> <td>
<textarea class="flat" rows="10" cols="60" name="fBody"><?php print $CONF['welcome_text']; ?></textarea> <textarea class="flat" rows="10" cols="60" name="fBody"><?php print $CONF['welcome_text']; ?></textarea>
</td> </td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $PALANG['pSendmail_button']; ?>" /></td> <td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $LANG['Sendmail_button']; ?>" /></td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="standout"><?php print $tMessage; ?></td> <td colspan="3" class="standout"><?php print $tMessage; ?></td>

View File

@ -2,15 +2,15 @@
<form name="edit_alias" method="post"> <form name="edit_alias" method="post">
<table> <table>
<tr> <tr>
<td colspan="3"><h3><?php print $PALANG['pEdit_alias_welcome']; ?></h3></td> <td colspan="3"><h3><?php print $LANG['Edit_alias_welcome']; ?></h3></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pEdit_alias_address'] . ":"; ?></td> <td><?php print $LANG['Edit_alias_address'] . ":"; ?></td>
<td><?php print $USERID_USERNAME; ?></td> <td><?php print $USERID_USERNAME; ?></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pEdit_alias_goto'] . ":"; ?></td> <td><?php print $LANG['Edit_alias_goto'] . ":"; ?></td>
<td><textarea class="flat" rows="4" cols="30" name="fGoto"> <td><textarea class="flat" rows="4" cols="30" name="fGoto">
<?php <?php
$array = preg_split('/,/', $tGoto); $array = preg_split('/,/', $tGoto);
@ -26,7 +26,7 @@ for ($i = 0 ; $i < count($array) ; $i++) {
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $PALANG['pEdit_alias_button']; ?>"></td> <td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $LANG['Edit_alias_button']; ?>"></td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="standout"><?php print $tMessage; ?></td> <td colspan="3" class="standout"><?php print $tMessage; ?></td>

View File

@ -2,18 +2,18 @@
<form name="login" method="post"> <form name="login" method="post">
<table id="login_table" cellspacing="10"> <table id="login_table" cellspacing="10">
<tr> <tr>
<td colspan="2"><h4><?php print $PALANG['pUsersLogin_welcome']; ?></h4></td> <td colspan="2"><h4><?php print $LANG['UsersLogin_welcome']; ?></h4></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pUsersLogin_username'] . ":"; ?></td> <td><?php print $LANG['UsersLogin_username'] . ":"; ?></td>
<td><input class="flat" type="text" name="fUsername" value="<?php print $tUsername; ?>" /></td> <td><input class="flat" type="text" name="fUsername" value="<?php print $tUsername; ?>" /></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pUsersLogin_password'] . ":"; ?></td> <td><?php print $LANG['UsersLogin_password'] . ":"; ?></td>
<td><input class="flat" type="password" name="fPassword" /></td> <td><input class="flat" type="password" name="fPassword" /></td>
</tr> </tr>
<tr> <tr>
<td colspan="2" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $PALANG['pUsersLogin_button']; ?>" /></td> <td colspan="2" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $LANG['UsersLogin_button']; ?>" /></td>
</tr> </tr>
<tr> <tr>
<td colspan="2" class="standout"><?php print $tMessage; ?></td> <td colspan="2" class="standout"><?php print $tMessage; ?></td>

View File

@ -6,21 +6,21 @@
</tr> </tr>
<?php if ($CONF['vacation'] == 'YES') { ?> <?php if ($CONF['vacation'] == 'YES') { ?>
<tr> <tr>
<td nowrap><a target="_top" href="vacation.php"><?php print $PALANG['pUsersMenu_vacation']; ?></a></td> <td nowrap><a target="_top" href="vacation.php"><?php print $LANG['UsersMenu_vacation']; ?></a></td>
<td><?php print $PALANG['pUsersMain_vacation']; ?></td> <td><?php print $LANG['UsersMain_vacation']; ?></td>
</tr> </tr>
<?php } ?> <?php } ?>
<tr> <tr>
<td nowrap><a target="_top" href="edit-alias.php"><?php print $PALANG['pUsersMenu_edit_alias']; ?></a></td> <td nowrap><a target="_top" href="edit-alias.php"><?php print $LANG['UsersMenu_edit_alias']; ?></a></td>
<td><?php print $PALANG['pUsersMain_edit_alias']; ?></td> <td><?php print $LANG['UsersMain_edit_alias']; ?></td>
</tr> </tr>
<tr> <tr>
<td nowrap><a target="_top" href="password.php"><?php print $PALANG['pUsersMenu_password']; ?></a></td> <td nowrap><a target="_top" href="password.php"><?php print $LANG['UsersMenu_password']; ?></a></td>
<td><?php print $PALANG['pUsersMain_password']; ?></td> <td><?php print $LANG['UsersMain_password']; ?></td>
</tr> </tr>
<tr> <tr>
<td nowrap><a target="_top" href="logout.php"><?php print $PALANG['pMenu_logout']; ?></a></td> <td nowrap><a target="_top" href="logout.php"><?php print $LANG['Menu_logout']; ?></a></td>
<td><?php print $PALANG['pMain_logout']; ?></td> <td><?php print $LANG['Main_logout']; ?></td>
</tr> </tr>
</table> </table>
</div> </div>

View File

@ -1,11 +1,11 @@
<div id="menu"> <div id="menu">
<ul> <ul>
<?php if ($CONF['vacation'] == "YES") { ?> <?php if ($CONF['vacation'] == "YES") { ?>
<li><a target="_top" href="vacation.php"><?php print $PALANG['pUsersMenu_vacation']; ?></a></li> <li><a target="_top" href="vacation.php"><?php print $LANG['UsersMenu_vacation']; ?></a></li>
<?php } ?> <?php } ?>
<li><a target="_top" href="edit-alias.php"><?php print $PALANG['pUsersMenu_edit_alias']; ?></a></li> <li><a target="_top" href="edit-alias.php"><?php print $LANG['UsersMenu_edit_alias']; ?></a></li>
<li><a target="_top" href="password.php"><?php print $PALANG['pUsersMenu_password']; ?></a></li> <li><a target="_top" href="password.php"><?php print $LANG['UsersMenu_password']; ?></a></li>
<li><a target="_top" href="logout.php"><?php print $PALANG['pMenu_logout']; ?></a></li> <li><a target="_top" href="logout.php"><?php print $LANG['Menu_logout']; ?></a></li>
</ul> </ul>
</div> </div>

View File

@ -2,30 +2,30 @@
<form name="password" method="post"> <form name="password" method="post">
<table> <table>
<tr> <tr>
<td colspan="3"><h3><?php print $PALANG['pPassword_welcome']; ?></td> <td colspan="3"><h3><?php print $LANG['Password_welcome']; ?></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pPassword_admin'] . ":"; ?></td> <td><?php print $LANG['Password_admin'] . ":"; ?></td>
<td><?php print $USERID_USERNAME; ?></td> <td><?php print $USERID_USERNAME; ?></td>
<td><?php print $pPassword_admin_text; ?></td> <td><?php print $pPassword_admin_text; ?></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pPassword_password_current'] . ":"; ?></td> <td><?php print $LANG['Password_password_current'] . ":"; ?></td>
<td><input class="flat" type="password" name="fPassword_current" ></td> <td><input class="flat" type="password" name="fPassword_current" ></td>
<td><?php print $pPassword_password_current_text; ?></td> <td><?php print $pPassword_password_current_text; ?></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pPassword_password'] . ":"; ?></td> <td><?php print $LANG['Password_password'] . ":"; ?></td>
<td><input class="flat" type="password" name="fPassword" ></td> <td><input class="flat" type="password" name="fPassword" ></td>
<td><?php print $pPassword_password_text; ?></td> <td><?php print $pPassword_password_text; ?></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pPassword_password2'].":" ?></td> <td><?php print $LANG['Password_password2'].":" ?></td>
<td><input class="flat" type="password" name="fPassword2" /></td> <td><input class="flat" type="password" name="fPassword2" /></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="hlp_center"><input type="submit" name="submit" value="<?php print $PALANG['pPassword_button']; ?>" /></td> <td colspan="3" class="hlp_center"><input type="submit" name="submit" value="<?php print $LANG['Password_button']; ?>" /></td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="standout"><?php print $tMessage; ?></td> <td colspan="3" class="standout"><?php print $tMessage; ?></td>

View File

@ -2,7 +2,7 @@
<form name="vacation" method="post"> <form name="vacation" method="post">
<table> <table>
<tr> <tr>
<td class="hlp_center"><input class="button" type="submit" name="fBack" value="<?php print $PALANG['pUsersVacation_button_back']; ?>" /></td> <td class="hlp_center"><input class="button" type="submit" name="fBack" value="<?php print $LANG['UsersVacation_button_back']; ?>" /></td>
</tr> </tr>
</table> </table>
</form> </form>

View File

@ -2,24 +2,24 @@
<form name="vacation" method="post"> <form name="vacation" method="post">
<table> <table>
<tr> <tr>
<td colspan="3"><h3><?php print $PALANG['pUsersVacation_welcome']; ?></h3></td> <td colspan="3"><h3><?php print $LANG['UsersVacation_welcome']; ?></h3></td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pUsersVacation_subject'] . ":"; ?></td> <td><?php print $LANG['UsersVacation_subject'] . ":"; ?></td>
<td><input type="text" name="fSubject" value="<?php print $PALANG['pUsersVacation_subject_text']; ?>" /></td> <td><input type="text" name="fSubject" value="<?php print $LANG['UsersVacation_subject_text']; ?>" /></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td><?php print $PALANG['pUsersVacation_body'] . ":"; ?></td> <td><?php print $LANG['UsersVacation_body'] . ":"; ?></td>
<td> <td>
<textarea rows="10" cols="80" name="fBody"> <textarea rows="10" cols="80" name="fBody">
<?php print $PALANG['pUsersVacation_body_text']; ?> <?php print $LANG['UsersVacation_body_text']; ?>
</textarea> </textarea>
</td> </td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="hlp_center"><input class="button" type="submit" name="fAway" value="<?php print $PALANG['pUsersVacation_button_away']; ?>" /></td> <td colspan="3" class="hlp_center"><input class="button" type="submit" name="fAway" value="<?php print $LANG['UsersVacation_button_away']; ?>" /></td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="standout"><?php print $tMessage; ?></td> <td colspan="3" class="standout"><?php print $tMessage; ?></td>

View File

@ -12,7 +12,7 @@ for ($i = 0; $i < $count; $i++) {
} }
?> ?>
</select> </select>
<input class="button" type="submit" name="go" value="<?php print $PALANG['pViewlog_button']; ?>" /> <input class="button" type="submit" name="go" value="<?php print $LANG['Viewlog_button']; ?>" />
</form> </form>
</div> </div>
<?php <?php
@ -21,14 +21,14 @@ if (!empty($tLog)) {
if ($tLog_count > 0) { if ($tLog_count > 0) {
print "<table id=\"log_table\">\n"; print "<table id=\"log_table\">\n";
print " <tr>\n"; print " <tr>\n";
print " <td colspan=\"5\"><h3>".$PALANG['pViewlog_welcome']." ".$fDomain."</h3></td>\n"; print " <td colspan=\"5\"><h3>".$LANG['Viewlog_welcome']." ".$fDomain."</h3></td>\n";
print " </tr>\n"; print " </tr>\n";
print " <tr class=\"header\">\n"; print " <tr class=\"header\">\n";
print " <td>" . $PALANG['pViewlog_timestamp'] . "</td>\n"; print " <td>" . $LANG['Viewlog_timestamp'] . "</td>\n";
print " <td>" . $PALANG['pViewlog_username'] . "</td>\n"; print " <td>" . $LANG['Viewlog_username'] . "</td>\n";
print " <td>" . $PALANG['pViewlog_domain'] . "</td>\n"; print " <td>" . $LANG['Viewlog_domain'] . "</td>\n";
print " <td>" . $PALANG['pViewlog_action'] . "</td>\n"; print " <td>" . $LANG['Viewlog_action'] . "</td>\n";
print " <td>" . $PALANG['pViewlog_data'] . "</td>\n"; print " <td>" . $LANG['Viewlog_data'] . "</td>\n";
print " </tr>\n"; print " </tr>\n";
for ($i = 0; $i < $tLog_count; $i++) { for ($i = 0; $i < $tLog_count; $i++) {

View File

@ -35,12 +35,12 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") {
$tGoto = preg_replace('/vmail/', '', $row['goto']); $tGoto = preg_replace('/vmail/', '', $row['goto']);
#$tGoto = $row['goto']; #$tGoto = $row['goto'];
} else { } else {
$tMessage = $PALANG['pEdit_alias_address_error']; $tMessage = $LANG['Edit_alias_address_error'];
} }
} }
if ($_SERVER['REQUEST_METHOD'] == "POST") { if ($_SERVER['REQUEST_METHOD'] == "POST") {
$pEdit_alias_goto = $PALANG['pEdit_alias_goto']; $pEdit_alias_goto = $LANG['Edit_alias_goto'];
if (isset($_POST['fGoto'])) $fGoto = escape_string($_POST['fGoto']); if (isset($_POST['fGoto'])) $fGoto = escape_string($_POST['fGoto']);
$fGoto = strtolower($fGoto); $fGoto = strtolower($fGoto);
@ -56,7 +56,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
if (!check_email($array[$i])) { if (!check_email($array[$i])) {
$error = 1; $error = 1;
$tGoto = $goto; $tGoto = $goto;
$tMessage = $PALANG['pEdit_alias_goto_text_error2'] . "$array[$i]</font>"; $tMessage = $LANG['Edit_alias_goto_text_error2'] . "$array[$i]</font>";
} }
} }
@ -69,7 +69,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$result = db_query("UPDATE alias SET goto='$goto',modified=NOW() WHERE address='$USERID_USERNAME'"); $result = db_query("UPDATE alias SET goto='$goto',modified=NOW() WHERE address='$USERID_USERNAME'");
if ($result['rows'] != 1) { if ($result['rows'] != 1) {
$tMessage = $PALANG['pEdit_alias_result_error']; $tMessage = $LANG['Edit_alias_result_error'];
} else { } else {
db_log($USERID_USERNAME, $USERID_DOMAIN, "edit alias", "$USERID_USERNAME -> $goto"); db_log($USERID_USERNAME, $USERID_DOMAIN, "edit alias", "$USERID_USERNAME -> $goto");

View File

@ -31,14 +31,14 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$result = db_query("SELECT password FROM mailbox WHERE username='$fUsername' AND active='1'"); $result = db_query("SELECT password FROM mailbox WHERE username='$fUsername' AND active='1'");
if ($result['rows'] == 1) { if ($result['rows'] == 1) {
$row = db_array($result['result']); $row = db_array($result['result']);
if (!password_verify($fPassword, $row['password'])) { if (!password_verify($fPassword, $row['assword'])) {
$error = 1; $error = 1;
$tMessage = $PALANG['pLogin_password_incorrect']; $tMessage = $LANG['Login_password_incorrect'];
$tUsername = $fUsername; $tUsername = $fUsername;
} }
} else { } else {
$error = 1; $error = 1;
$tMessage = $PALANG['pLogin_username_incorrect']; $tMessage = $LANG['Login_username_incorrect'];
} }
if ($error != 1) { if ($error != 1) {

View File

@ -37,29 +37,29 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$result = db_query("SELECT * FROM mailbox WHERE username='$username'"); $result = db_query("SELECT * FROM mailbox WHERE username='$username'");
if ($result['rows'] == 1) { if ($result['rows'] == 1) {
$row = db_array($result['result']); $row = db_array($result['result']);
if (!password_verify($fPassword_current, $row['password'])) { if (!password_verify($fPassword_current, $row['assword'])) {
$error = 1; $error = 1;
$pPassword_password_current_text = $PALANG['pPassword_password_current_text_error']; $pPassword_password_current_text = $LANG['Password_password_current_text_error'];
} }
} else { } else {
$error = 1; $error = 1;
$pPassword_email_text = $PALANG['pPassword_email_text_error']; $pPassword_email_text = $LANG['Password_email_text_error'];
} }
if (empty($fPassword) or ($fPassword != $fPassword2)) if (empty($fPassword) or ($fPassword != $fPassword2))
{ {
$error = 1; $error = 1;
$pPassword_password_text = $PALANG['pPassword_password_text_error']; $pPassword_password_text = $LANG['Password_password_text_error'];
} }
if ($error != 1) { if ($error != 1) {
$password = pacrypt($fPassword); $password = pacrypt($fPassword);
$result = db_query("UPDATE mailbox SET password='$password',modified=NOW(),scheme='' WHERE username='$username'"); $result = db_query("UPDATE mailbox SET password='$password',modified=NOW(),scheme='' WHERE username='$username'");
if ($result['rows'] == 1) { if ($result['rows'] == 1) {
$tMessage = $PALANG['pPassword_result_succes']; $tMessage = $LANG['Password_result_succes'];
db_log($USERID_USERNAME, $USERID_DOMAIN, "change password", "$USERID_USERNAME"); db_log($USERID_USERNAME, $USERID_DOMAIN, "change password", "$USERID_USERNAME");
} else { } else {
$tMessage = $PALANG['pPassword_result_error']; $tMessage = $LANG['Password_result_error'];
} }
} }
} }

View File

@ -32,7 +32,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") {
$result = db_query("SELECT * FROM vacation WHERE email='$USERID_USERNAME'"); $result = db_query("SELECT * FROM vacation WHERE email='$USERID_USERNAME'");
if ($result['rows'] == 1) { if ($result['rows'] == 1) {
$row = db_array($result['result']); $row = db_array($result['result']);
$tMessage = $PALANG['pUsersVacation_welcome_text']; $tMessage = $LANG['UsersVacation_welcome_text'];
$template = "users_vacation-get.tpl"; $template = "users_vacation-get.tpl";
} else { } else {
$template = "users_vacation.tpl"; $template = "users_vacation.tpl";
@ -52,9 +52,9 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$result = db_query("DELETE FROM vacation WHERE email='$USERID_USERNAME'"); $result = db_query("DELETE FROM vacation WHERE email='$USERID_USERNAME'");
if ($result['rows'] != 1) { if ($result['rows'] != 1) {
$error = 1; $error = 1;
$tMessage = $PALANG['pUsersVacation_result_error']; $tMessage = $LANG['UsersVacation_result_error'];
} else { } else {
$tMessage = $PALANG['pUsersVacation_result_succes']; $tMessage = $LANG['UsersVacation_result_succes'];
} }
} }
@ -62,7 +62,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$result = db_query("INSERT INTO vacation (email,subject,body,cache,domain,created,active) VALUES ('$USERID_USERNAME','$fSubject','$fBody','','$USERID_DOMAIN',NOW(),'1')"); $result = db_query("INSERT INTO vacation (email,subject,body,cache,domain,created,active) VALUES ('$USERID_USERNAME','$fSubject','$fBody','','$USERID_DOMAIN',NOW(),'1')");
if ($result['rows'] != 1) { if ($result['rows'] != 1) {
$error = 1; $error = 1;
$tMessage = $PALANG['pUsersVacation_result_error']; $tMessage = $LANG['UsersVacation_result_error'];
} else { } else {
header("Location: main.php"); header("Location: main.php");
exit; exit;

View File

@ -31,7 +31,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") {
if (!check_owner($SESSID_USERNAME, $fDomain)) { if (!check_owner($SESSID_USERNAME, $fDomain)) {
$error = 1; $error = 1;
$tMessage = $PALANG['pViewlog_result_error']; $tMessage = $LANG['Viewlog_result_error'];
} }
if ($error != 1) { if ($error != 1) {
@ -49,7 +49,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
if (!check_owner($SESSID_USERNAME, $fDomain)) { if (!check_owner($SESSID_USERNAME, $fDomain)) {
$error = 1; $error = 1;
$tMessage = $PALANG['pViewlog_error']; $tMessage = $LANG['Viewlog_error'];
} }
if ($error != 1) { if ($error != 1) {