From: Jason M. <jm...@us...> - 2002-08-21 07:15:27
|
Update of /cvsroot/squirrelmail/squirrelmail/plugins/mail_fetch In directory usw-pr-cvs1:/tmp/cvs-serv14452/plugins/mail_fetch Modified Files: Tag: SM-1_2-STABLE options.php fetch.php Log Message: mail fetch should work with rg=0 now, tested PHP 4.1.2 Index: options.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/mail_fetch/options.php,v retrieving revision 1.4.2.2 retrieving revision 1.4.2.3 diff -u -w -r1.4.2.2 -r1.4.2.3 --- options.php 20 Aug 2002 13:47:50 -0000 1.4.2.2 +++ options.php 21 Aug 2002 07:15:24 -0000 1.4.2.3 @@ -16,10 +16,46 @@ require_once('../functions/imap.php'); require_once('../src/load_prefs.php'); + /* globals */ $username = $_SESSION['username']; $key = $_COOKIE['key']; $onetimepad = $_SESSION['onetimepad']; $delimiter = $_SESSION['delimiter']; + + if(isset($_POST['mf_cypher'])) { + $mf_cypher = $_POST['mf_cypher']; + } + if(isset($_POST['mf_sn'])) { + $mf_sn = $_POST['mf_sn']; + } + if(isset($_POST['mf_server'])) { + $mf_server = $_POST['mf_server']; + } + if(isset($_POST['mf_alias'])) { + $mf_alias = $_POST['mf_alias']; + } + if(isset($_POST['mf_user'])) { + $mf_user = $_POST['mf_user']; + } + if(isset($_POST['mf_pass'])) { + $mf_pass = $_POST['mf_pass']; + } + if(isset($_POST['mf_subfolder'])) { + $mf_subfolder = $_POST['mf_subfolder']; + } + if(isset($_POST['mf_login'])) { + $mf_login = $_POST['mf_login']; + } + if(isset($_POST['mf_fref'])) { + $mf_fref = $_POST['mf_fref']; + } + if(isset($_POST['submit_mailfetch'])) { + $submit_mailfetch = $_POST['submit_mailfetch']; + } + if(isset($_POST['mf_lmos'])) { + $mf_lmos = $_POST['mf_lmos']; + } + /* end globals */ displayPageHeader( $color, 'None' ); Index: fetch.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/mail_fetch/fetch.php,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -u -w -r1.6 -r1.6.2.1 --- fetch.php 4 Feb 2002 11:47:55 -0000 1.6 +++ fetch.php 21 Aug 2002 07:15:24 -0000 1.6.2.1 @@ -20,6 +20,20 @@ require_once('../functions/i18n.php'); require_once( '../plugins/mail_fetch/functions.php' ); + /* globals */ + $username = $_SESSION['username']; + $key = $_COOKIE['key']; + $onetimepad = $_SESSION['onetimepad']; + $delimter = $_SESSION['delimiter']; + + /* 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 */ function Mail_Fetch_Status($msg) { echo '<table width="90%"><tr><td>' . |