X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fmail_fetch%2Ffetch.php;h=73755e9cb6fa6f60b8cd2da2c06181bd00496b9e;hp=ab93889a8a55c89bcc42d56717436c5c91a88ab2;hb=18cdccdaad158441a71ff69239767f54a5ab6a6a;hpb=bcb9c674bc445c5fadb535ef78574bdf5739411e diff --git a/plugins/mail_fetch/fetch.php b/plugins/mail_fetch/fetch.php index ab93889a..73755e9c 100644 --- a/plugins/mail_fetch/fetch.php +++ b/plugins/mail_fetch/fetch.php @@ -21,20 +21,20 @@ require_once(SM_PATH . 'plugins/mail_fetch/class.POP3.php'); require_once(SM_PATH . 'plugins/mail_fetch/functions.php' ); require_once(SM_PATH . 'functions/html.php' ); - /* globals */ - $username = $_SESSION['username']; - $key = $_COOKIE['key']; - $onetimepad = $_SESSION['onetimepad']; - $delimter = $_SESSION['delimiter']; +/* globals */ +sqgetGlobalVar('username', $username, SQ_SESSION); +sqgetGlobalVar('key', $key, SQ_COOKIE); +sqgetGlobalVar('onetimepad', $onetimepad, SQ_SESSION); +sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION); - /* This form, like the advanced identities form - uses dynamic post variable names so we need - to extract the whole $_POST array to make - things work - */ +/* FIXME: This form, like the advanced identities form + * uses dynamic post variable names so we need + * to extract the whole $_POST array to make + * things work + */ - extract($_POST); - /* end globals */ +extract($_POST); +/* end globals */ function Mail_Fetch_Status($msg) { echo html_tag( 'table', @@ -101,15 +101,14 @@ require_once(SM_PATH . 'functions/html.php' ); htmlspecialchars((($mailfetch_alias_[$i]=='')?$mailfetch_server_[$i]:$mailfetch_alias_[$i])) . ':     ', 'right' ) . - html_tag( 'td', '', 'left' ) + html_tag( 'td', '', 'left' ) ); } } echo html_tag( 'tr', html_tag( 'td', ' ' ) . html_tag( 'td', '', 'left' ) - ); - + ) . ''; exit(); }