Error Dispaly fix: can't do set_time_limit() in safemode
authorcigamit <cigamit@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 8 Nov 2003 18:57:14 +0000 (18:57 +0000)
committercigamit <cigamit@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 8 Nov 2003 18:57:14 +0000 (18:57 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6129 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/mail_fetch/class.POP3.php
plugins/mail_fetch/fetch.php
plugins/mail_fetch/setup.php

index 7305431..a61bfa8 100644 (file)
@@ -62,13 +62,15 @@ class POP3 {
         if(!empty($timeout)) {
             settype($timeout,"integer");
             $this->TIMEOUT = $timeout;
-            set_time_limit($timeout);
+            if (!ini_get('safe_mode'))
+                set_time_limit($timeout);
         }
         return true;
     }
 
     function update_timer () {
-        set_time_limit($this->TIMEOUT);
+        if (!ini_get('safe_mode'))
+            set_time_limit($this->TIMEOUT);
         return true;
     }
 
index d2e6eae..26260ed 100644 (file)
@@ -228,7 +228,9 @@ sqgetGlobalVar('delimiter',  $delimiter,  SQ_SESSION);
 
         for (; $i <= $Count; $i++) {
             Mail_Fetch_Status(_("Fetching message ") . "$i" );
-            set_time_limit(20); // 20 seconds per message max
+
+            if (!ini_get('safe_mode'))
+                set_time_limit(20); // 20 seconds per message max
             $Message = '';
             $MessArray = $pop3->get($i);
 
index cfe8c60..c84b399 100644 (file)
                     $outMsg .= _("Server does not support UIDL.");
 
                 for (; $i <= $Count; $i++) {
-                    set_time_limit(20); // 20 seconds per message max
+                    if (!ini_get('safe_mode'))
+                        set_time_limit(20); // 20 seconds per message max
                     $Message = "";
                     $MessArray = $pop3->get($i);