Changeset 6121 in subversion


Ignore:
Timestamp:
Apr 24, 2012 2:40:56 AM (14 months ago)
Author:
thomasb
Message:

Bring back some legacy functions and session vars for better backwards compatibility

Location:
trunk/roundcubemail/program/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube.php

    r6105 r6121  
    349349      $options['ssl']      = $_SESSION['storage_ssl']; 
    350350      $options['password'] = $this->decrypt($_SESSION['password']); 
     351      $_SESSION[$driver.'_host'] = $_SESSION['storage_host']; 
    351352    } 
    352353 
  • trunk/roundcubemail/program/include/rcube_bc.inc

    r6091 r6121  
    386386    return rcube_utils::idn_to_utf8($str); 
    387387} 
     388 
     389function send_future_expire_header($offset = 2600000) 
     390{ 
     391    return rcmail::get_instance()->output->future_expire_header($offset); 
     392} 
  • trunk/roundcubemail/program/include/rcube_output.php

    r6091 r6121  
    238238    } 
    239239 
     240    /** 
     241     * Send header with expire date 30 days in future 
     242     * 
     243     * @param int Expiration time in seconds 
     244     */ 
     245    public function future_expire_header($offset = 2600000) 
     246    { 
     247        if (headers_sent()) 
     248            return; 
     249 
     250        header("Expires: " . gmdate("D, d M Y H:i:s", time()+$offset) . " GMT"); 
     251        header("Cache-Control: max-age=$offset"); 
     252        header("Pragma: "); 
     253    } 
     254 
    240255 
    241256    /** 
Note: See TracChangeset for help on using the changeset viewer.