Revision: 266
http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=266&view=rev
Author: christian_boltz
Date: 2007-12-07 01:39:11 -0800 (Fri, 07 Dec 2007)
Log Message:
-----------
templates/search.php:
- removed superfluous and buggy superadmin check. Fixes
https://sourceforge.net/tracker/?func=detail&atid=937964&aid=1844063&group_id=191583
Modified Paths:
--------------
trunk/templates/search.php
Modified: trunk/templates/search.php
===================================================================
--- trunk/templates/search.php 2007-12-06 22:38:36 UTC (rev 265)
+++ trunk/templates/search.php 2007-12-07 09:39:11 UTC (rev 266)
@@ -83,10 +83,7 @@
$active = ($tAlias[$i]['active'] == 1) ? $PALANG['YES'] : $PALANG['NO'];
print " <td><a href=\"edit-active.php?alias=" . urlencode ($tAlias[$i]['address']) . "&domain=" . $tAlias[$i]['domain'] . "&return=search.php?search=" . urlencode ($fSearch) . "\">" . $active . "</a></td>\n";
print " <td><a href=\"edit-alias.php?address=" . urlencode ($tAlias[$i]['address']) . "&domain=" . $tAlias[$i]['domain'] . "\">" . $PALANG['edit'] . "</a></td>\n";
- print " <td><a href=\"delete.php?";
- if (authentication_has_role('global-admin')) {
- print "table=alias&";
- }
+ print " <td><a href=\"delete.php?table=alias&";
print "delete=" . urlencode ($tAlias[$i]['address']) . "&domain=" . $tAlias[$i]['domain'] . "\"onclick=\"return confirm ('" . $PALANG['confirm'] . $PALANG['pOverview_get_aliases'] . ": ". $tAlias[$i]['address'] . "')\">" . $PALANG['del'] . "</a></td>\n";
}
else
@@ -176,10 +173,7 @@
}
print " <td><a href=\"edit-mailbox.php?username=" . urlencode ($tMailbox[$i]['username']) . "&domain=" . $tMailbox[$i]['domain'] . "\">" . $PALANG['edit'] . "</a></td>\n";
- print " <td><a href=\"delete.php?";
- if (authentication_has_role('global-admin')) {
- print "table=mailbox&";
- }
+ print " <td><a href=\"delete.php?table=mailbox&";
print "delete=" . urlencode ($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 " </tr>\n";
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|