Show
Ignore:
Timestamp:
12/21/06 17:05:02 (14 years ago)
Author:
exi
Message:

Changed socket timeout in class.http.php to 5s.
Removed references to $qry->getErrorMessage.
Modified parser to be more conservative when it comes to destroyed items in a container.
Changed class.thumb.php to set a socket timeout and supress error messages during image output.
The installer now includes the php_compat file for 4.0.9 compatibility.
Small modification to icon.tpl to fix the display on MSIE.
Added several alliance logos.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/class.thumb.php

    r158 r159  
    2323        } 
    2424 
     25        if (headers_sent()) 
     26        { 
     27            echo 'Error occured.<br/>'; 
     28            return false; 
     29        } 
    2530        if ($this->_encoding == 'jpeg') 
    2631        { 
     
    3742    function validate() 
    3843    { 
     44        if (!$this->_size) 
     45        { 
     46            $this->_size = 32; 
     47        } 
    3948        switch ($this->_type) 
    4049        { 
     
    116125            } 
    117126 
     127            @ini_set('default_socket_timeout', 5); 
    118128            $file = @file_get_contents('http://img.eve.is/serv.asp?s=256&c='.$this->_id); 
    119129            if ($img = @imagecreatefromstring($file)) 
     
    133143                $file = $http->get_content(); 
    134144 
    135                 if ($img = imagecreatefromstring($file)) 
     145                if ($img = @imagecreatefromstring($file)) 
    136146                { 
    137147                    $fp = fopen('cache/portraits/'.$id.'_256.jpg', 'w');