End user improvements

Overview no longer lists aliases for mailboxes


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@8 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
Greg 17 years ago
parent a4c70c4977
commit 339aa49f82

@ -6,6 +6,9 @@
#
Version 2.1.1 -- TBD
--------------------
- Fixed: Overview no longer lists alias entries for mailboxes (GregC)
- Changed: Added exit buttons to several edit options. (GregC)
- Fixed: user options are a little more idiot-proof, templates are consistent (GregC)
- Changed: Users can view and edit their vacation config (GregC)
- Added: Slovakian language posted on SourceForge by eszabo
- Changed: searches include mailbox.name matches (GregC)

@ -297,6 +297,7 @@ $PALANG['pUsersMenu_edit_alias'] = 'Change your forward';
$PALANG['pUsersMenu_password'] = 'Change Password';
$PALANG['pUsersMain_vacation'] = 'Set an "out of office" message or auto responder for your mail.';
$PALANG['pUsersMain_vacationSet'] = $PALANG['pUsersMenu_vacation'] . ' is ON, click \'' . $PALANG['pUsersMenu_vacation'] . '\' to ' . $PALANG['edit'] . '/remove';
$PALANG['pUsersMain_edit_alias'] = 'Change your email forwarding.';
$PALANG['pUsersMain_password'] = 'Change your current password.';

@ -295,6 +295,7 @@ $PALANG['pUsersMenu_edit_alias'] = 'Change your forward';
$PALANG['pUsersMenu_password'] = 'Change Password';
$PALANG['pUsersMain_vacation'] = 'Set an "out of office" message or auto responder for your mail.';
$PALANG['pUsersMain_vacationSet'] = $PALANG['pUsersMenu_vacation'] . ' is ON, click \'' . $PALANG['pUsersMenu_vacation'] . '\' to ' . $PALANG['edit'] . '/remove';
$PALANG['pUsersMain_edit_alias'] = 'Change your email forwarding.';
$PALANG['pUsersMain_password'] = 'Change your current password.';

@ -55,22 +55,11 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
if (check_owner ($SESSID_USERNAME, $fDomain))
{
if ($CONF['alias_control_admin'] == "YES")
{
$query = "SELECT address,goto,modified,active FROM alias WHERE domain='$fDomain' ORDER BY address LIMIT $limitSql";
if ('pgsql'==$CONF['database_type'])
{
$query = "SELECT address,goto,extract(epoch from modified) as modified,active FROM alias WHERE domain='$fDomain' ORDER BY address LIMIT $limitSql";
}
}
else
{
$query = "SELECT $table_alias.address,$table_alias.goto,$table_alias.modified,$table_alias.active FROM $table_alias LEFT JOIN $table_mailbox ON $table_alias.address=$table_mailbox.username WHERE $table_alias.domain='$fDomain' AND $table_mailbox.maildir IS NULL ORDER BY $table_alias.address LIMIT $limitSql";
if ('pgsql'==$CONF['database_type'])
{
$query = "SELECT address,goto,extract(epoch from modified) as modified,active FROM $table_alias WHERE domain='$fDomain' AND NOT EXISTS(SELECT 1 FROM $table_mailbox WHERE username=$table_alias.address) ORDER BY address LIMIT $limitSql";
}
}
$result = db_query ($query);
if ($result['rows'] > 0)

@ -37,7 +37,10 @@
<td>&nbsp;</td>
</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="button" type="submit" name="submit" value="<?php print $PALANG['pEdit_mailbox_button']; ?>" />
<input class="button" type="submit" name="cancel" value="<?php print $PALANG['exit']; ?>" action="main.php" />
</td>
</tr>
<tr>
<td colspan="3" class="standout"><?php print $tMessage; ?></td>

@ -11,7 +11,7 @@
</tr>
<tr>
<td><?php print $PALANG['pEdit_alias_goto'] . ":"; ?></td>
<td><textarea class="flat" rows="4" cols="30" name="fGoto">
<td><textarea class="flat" rows="4" cols="50" name="fGoto">
<?php
$array = preg_split ('/,/', $tGoto);
@ -50,7 +50,10 @@ for ($i = 0 ; $i < sizeof ($array) ; $i++)
</td>
</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 $PALANG['pEdit_alias_button']; ?>">
<input class="button" type="submit" name="submit" value="<?php print $PALANG['exit']; ?>" action="main.php" >
</td>
</tr>
<tr>
<td colspan="3" class="standout"><?php print $tMessage; ?></td>

@ -7,7 +7,7 @@
<?php if ($CONF['vacation'] == 'YES') { ?>
<tr>
<td nowrap><a target="_top" href="vacation.php"><?php print $PALANG['pUsersMenu_vacation']; ?></a></td>
<td><?php print $PALANG['pUsersMain_vacation']; ?></td>
<td><?php print $tummVacationtext; ?></td>
</tr>
<?php } ?>
<tr>

@ -25,7 +25,10 @@
<td>&nbsp;</td>
</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 class="button" type="submit" name="submit" value="<?php print $PALANG['pPassword_button']; ?>" />
<input class="button" type="submit" name="submit" value="<?php print $PALANG['exit']; ?>" action="main.php" >
</td>
</tr>
<tr>
<td colspan="3" class="standout"><?php print $tMessage; ?></td>

@ -11,7 +11,7 @@
//
// Template Variables:
//
// -none-
// tummVacationtext
//
// Form POST \ GET Variables:
//
@ -22,6 +22,16 @@ require ("../functions.inc.php");
include ("../languages/" . check_language () . ".lang");
$USERID_USERNAME = check_user_session ();
$result = db_query("SELECT * FROM $table_vacation WHERE email='$USERID_USERNAME'");
if ($result['rows'] == 1)
{
$row = db_array($result['result']);
$tummVacationtext = $PALANG['pUsersMain_vacationSet'];
}
else
{
$tummVacationtext = $PALANG['pUsersMain_vacation'];
}
if ($_SERVER["REQUEST_METHOD"] == "GET")
{

Loading…
Cancel
Save