SF.net SVN: postfixadmin: [284] trunk/list-virtual.php
Brought to you by:
christian_boltz,
gingerdog
From: <Gin...@us...> - 2008-01-03 21:50:37
|
Revision: 284 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=284&view=rev Author: GingerDog Date: 2008-01-03 13:50:39 -0800 (Thu, 03 Jan 2008) Log Message: ----------- list-virtual.php: Exit after header redirect Modified Paths: -------------- trunk/list-virtual.php Modified: trunk/list-virtual.php =================================================================== --- trunk/list-virtual.php 2007-12-30 20:16:07 UTC (rev 283) +++ trunk/list-virtual.php 2008-01-03 21:50:39 UTC (rev 284) @@ -28,9 +28,9 @@ * fDomain * fDisplay */ - require_once('common.php'); + authentication_require_role('admin'); $SESSID_USERNAME = authentication_get_username(); @@ -69,6 +69,7 @@ if (!check_owner(authentication_get_username(), $fDomain)) { # die($PALANG['invalid_parameter']); header("Location: list-domain.php"); # domain not owned by this admin + exit(0); } $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 $fDisplay, $page_size"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |