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 */
}
$mailfetch = Mail_Fetch_Servers();
-displayPageHeader($color, 'None');
+displayPageHeader($color);
echo '<br />';
/* there are no servers defined yet... */
if($mailfetch['server_number'] == 0) {
+//FIXME: do not echo directly to browser -- use templates only
echo '<p>' . _("No POP3 servers configured yet.") . '</p>';
- displayInternalLink('plugins/mail_fetch/options.php',
+ echo makeInternalLink('plugins/mail_fetch/options.php',
_("Click here to go to the options page.") );
$oTemplate->display('footer.tpl');
exit();