X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fmail_fetch%2Ffetch.php;h=5a7a065aee6772ddf675845423a1835ab8651c52;hb=de3178dc1a5117827e254544c6f164dba653ad83;hp=d7085276eeef8f50480e853729715190dffbb269;hpb=09b143cceb5a99d0b94d8303d644ffeeef203d1f;p=squirrelmail.git diff --git a/plugins/mail_fetch/fetch.php b/plugins/mail_fetch/fetch.php index d7085276..5a7a065a 100644 --- a/plugins/mail_fetch/fetch.php +++ b/plugins/mail_fetch/fetch.php @@ -5,7 +5,7 @@ * * Fetch code. * - * @copyright © 1999-2007 The SquirrelMail Project Team + * @copyright © 1999-2009 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins @@ -20,6 +20,11 @@ require('../../include/init.php'); include_once(SM_PATH . 'functions/imap_general.php'); include_once(SM_PATH . 'plugins/mail_fetch/functions.php' ); +// don't load this page if this plugin is not enabled +// +global $plugins; +if (!in_array('mail_fetch', $plugins)) exit; + /* globals */ sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION); /* end globals */ @@ -265,7 +270,7 @@ for ($i_loop=$i_start;$i_loop<$i_stop;$i_loop++) { } if ($mailfetch_lmos == 'on') { - Mail_Fetch_Status(_("Leaving mail on server...")); + Mail_Fetch_Status(_("Leaving messages on server...")); } else { Mail_Fetch_Status(_("Deleting messages from server...")); } @@ -344,4 +349,3 @@ for ($i_loop=$i_start;$i_loop<$i_stop;$i_loop++) { } $oTemplate->display('footer.tpl'); -