New hook type that I am very excited about; should address a kind of plugin stacking...
[squirrelmail.git] / class / l10n / streams.class.php
index 4e0110f987d92a85e54dd34ba0bed76884518b31..ca856777d78da0b797d369253cebfcfec06227fc 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 /**
  * Copyright (c) 2003 Danilo Segan <danilo@kvota.net>.
  *
@@ -18,6 +19,9 @@
  * along with PHP-gettext; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
+ * @copyright &copy; 2004-2006 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
  * @package squirrelmail
  * @subpackage i18n
  */
@@ -58,10 +62,10 @@ class FileReader {
      * @return boolean false there is a problem with $filename
      */
     function FileReader($filename) {
-        if (file_exists($filename)) {
+        // disable stat warnings for unreadable directories
+        if (@file_exists($filename)) {
 
             $this->_length=filesize($filename);
-            error_log($this->_length);
             $this->_pos = 0;
             $this->_fd = fopen($filename,'rb');
             if (!$this->_fd) {
@@ -121,4 +125,3 @@ class FileReader {
         fclose($this->_fd);
     }
 }
-?>
\ No newline at end of file