[Vtigercrm-commits] [vtiger-commits] r6826 - in /vtigercrm/trunk/modules/Webmails: ListView.php MailParse.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed May 31 03:28:41 EDT 2006


Author: mmbrich
Date: Wed May 31 01:28:40 2006
New Revision: 6826

Log:
call function locally since we'll have to @ each load anyways

Modified:
    vtigercrm/trunk/modules/Webmails/ListView.php
    vtigercrm/trunk/modules/Webmails/MailParse.php

Modified: vtigercrm/trunk/modules/Webmails/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Webmails/ListView.php (original)
+++ vtigercrm/trunk/modules/Webmails/ListView.php Wed May 31 01:28:40 2006
@@ -12,7 +12,7 @@
 if($_REQUEST["mailbox"] && $_REQUEST["mailbox"] != "") {$mailbox=$_REQUEST["mailbox"];} else {$mailbox="INBOX";}
 if($_REQUEST["start"] && $_REQUEST["start"] != "") {$start=$_REQUEST["start"];} else {$start="1";}
 
-global $current_user,$mods;
+global $current_user;
 require_once('Smarty_setup.php');
 require_once("data/Tracker.php");
 require_once('themes/'.$theme.'/layout_utils.php');

Modified: vtigercrm/trunk/modules/Webmails/MailParse.php
==============================================================================
--- vtigercrm/trunk/modules/Webmails/MailParse.php (original)
+++ vtigercrm/trunk/modules/Webmails/MailParse.php Wed May 31 01:28:40 2006
@@ -21,14 +21,15 @@
 	return (strlen($_tmp) % 4 == 0 ) ? "y" : "n";
 }
 function getImapMbox($mailbox,$temprow,$readonly='') {
-	global $mbox,$mods; 
+	global $mbox;
 	$login_username= $temprow["mail_username"]; 
 	$secretkey=$temprow["mail_password"]; 
 	$imapServerAddress=$temprow["mail_servername"]; 
 	$mail_protocol=$temprow["mail_protocol"]; 
 	$ssltype=$temprow["ssltype"]; 
 	$sslmeth=$temprow["sslmeth"]; 
-	 	 
+	 
+	$mods = parsePHPModules()	 
 	 	 
 	// first we will try a regular old IMAP connection: 
 	if($ssltype == "") {$ssltype = "notls";} 





More information about the vtigercrm-commits mailing list