edit-active-admin.php, edit-active-domain.php, edit-active.php

- replaced $tMessage with flash_error()

edit-active.php:
- removed a </font> added after $PALANG['pEdit_mailbox_domain_error']

This commit is part of the huge cleanup patch by Dale Blount (lnxus@SF),
https://sourceforge.net/tracker/?func=detail&atid=937966&aid=3370510&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1081 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 15 years ago
parent cffa61c652
commit b610c21baf

@ -19,7 +19,7 @@
*
* Template Variables:
*
* tMessage
* none
*
* Form POST \ GET Variables:
*
@ -41,7 +41,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
if ($result['rows'] != 1)
{
$error = 1;
$tMessage = $PALANG['pAdminEdit_admin_result_error'];
flash_error($PALANG['pAdminEdit_admin_result_error']);
}
if ($error != 1)
@ -50,7 +50,6 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
exit;
}
}
$smarty->assign ('tMessage', $tMessage);
$smarty->assign ('smarty_template', 'message');
$smarty->display ('index.tpl');

@ -18,7 +18,7 @@
*
* Template Variables:
*
* tMessage
* none
*
* Form POST \ GET Variables:
*
@ -40,7 +40,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
if ($result['rows'] != 1)
{
$error = 1;
$tMessage = $PALANG['pAdminEdit_domain_result_error'];
flash_error($PALANG['pAdminEdit_domain_result_error']);
}
if ($error != 1)
@ -50,7 +50,6 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
}
}
$smarty->assign ('tMessage', $tMessage);
$smarty->assign ('smarty_template', 'message');
$smarty->display ('index.tpl');

@ -19,7 +19,7 @@
*
* Template Variables:
*
* tMessage
* none
*
* Form POST \ GET Variables:
*
@ -49,7 +49,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
if (! (check_owner ($SESSID_USERNAME, $fDomain) || authentication_has_role('global-admin') ) )
{
$error = 1;
$tMessage = $PALANG['pEdit_mailbox_domain_error'] . "<b>$fDomain</b>!</font>";
flash_error($PALANG['pEdit_mailbox_domain_error'] . "<b>$fDomain</b>!");
}
else
{
@ -61,7 +61,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
if ($result['rows'] != 1)
{
$error = 1;
$tMessage = $PALANG['pEdit_mailbox_result_error'];
flash_error($PALANG['pEdit_mailbox_result_error']);
}
else
{
@ -74,7 +74,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
if ($result['rows'] != 1)
{
$error = 1;
$tMessage = $PALANG['pEdit_mailbox_result_error'];
flash_error($PALANG['pEdit_mailbox_result_error']);
}
else
{
@ -87,7 +87,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
if ($result['rows'] != 1)
{
$error = 1;
$tMessage = $PALANG['pEdit_alias_domain_result_error'];
flash_error($PALANG['pEdit_alias_domain_result_error']);
}
else
{
@ -112,7 +112,6 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
}
}
$smarty->assign ('tMessage', $tMessage);
$smarty->assign ('smarty_template', 'message');
$smarty->display ('index.tpl');

Loading…
Cancel
Save