Changeset 1853 in ExiteCMS for trunk/includes/class.httpdownload.php


Ignore:
Timestamp:
10/16/08 11:37:18 (4 years ago)
Author:
hverton
Message:

fixed session issue in the albums module
blog previous now breaks after a complete paragraph
fixed PHP notice in feeds.php when using PHP5
fixed MySQL error in viewforum.php/viewposts.php when using MySQL v5.x
fixed PHP warning in calls.httpdownload.php when using PHP5
added locale direction (ltr/rtl) to hoteditor
fixed issue with ocassional empty [URL] tags in hoteditor
fixed wrong returncode from sendemail() in sendmail_include.php
fixed issues in session management when behind loadbalanced proxies or ISP links (changing public IP address)
fixed typo in the album gallery edit template
fixed mismatched quotes in pm post causing hoteditor message retrieval to fail
fixed versioning issue in the menu, user info and welcome panel module installers
fixed PHP notice in setuser.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/class.httpdownload.php

    r863 r1853  
    238238  **/ 
    239239  function _header($var) { 
    240     if ($this->handler['header']) return @call_user_func($this->handler['header'],$var); 
    241     else return header($var); 
     240    if ($this->handler['header']) $ret = @call_user_func($this->handler['header'],$var); 
     241    else $ret = header($var); 
     242    return $ret; 
    242243  } 
    243244 
    244245  function &_fopen($file,$mode) { 
    245     if ($this->handler['fopen']) return @call_user_func($this->handler['fopen'],$file,$mode); 
    246     else return fopen($file,$mode); 
     246    if ($this->handler['fopen']) $ret = @call_user_func($this->handler['fopen'],$file,$mode); 
     247    else $ret = fopen($file,$mode); 
     248    return $ret; 
    247249  } 
    248250 
    249251  function _fclose($res) { 
    250     if ($this->handler['fclose']) return @call_user_func($this->handler['fclose'],$res); 
    251     else return fclose($res); 
     252    if ($this->handler['fclose']) $ret = @call_user_func($this->handler['fclose'],$res); 
     253    else $ret = fclose($res); 
     254    return $ret; 
    252255  } 
    253256 
    254257  function _fseek($res,$len) { 
    255     if ($this->handler['fseek']) return @call_user_func($this->handler['fseek'],$res,$len); 
    256     else return fseek($res,$len); 
     258    if ($this->handler['fseek']) $ret = @call_user_func($this->handler['fseek'],$res,$len); 
     259    else $ret = fseek($res,$len); 
     260    return $ret; 
    257261  } 
    258262 
    259263  function &_fread($file,$size) { 
    260     if ($this->handler['fread']) return @call_user_func($this->handler['fread'],$file,$size); 
    261     else return fread($file,$size); 
     264    if ($this->handler['fread']) $ret = @call_user_func($this->handler['fread'],$file,$size); 
     265    else $ret = fread($file,$size); 
     266    return $ret; 
    262267  } 
    263268 
    264269  function _auth() { 
    265270    if (!isset($_SERVER['PHP_AUTH_USER'])) return false; 
    266     if ($this->handler['auth']) return @call_user_func($this->handler['auth'],$_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']); 
    267     else return true; //you must use a handler 
     271    if ($this->handler['auth']) $ret = @call_user_func($this->handler['auth'],$_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']); 
     272    else $ret = true; //you must use a handler 
     273    return $ret; 
    268274  } 
    269275 
Note: See TracChangeset for help on using the changeset viewer.