Changeset 2211 in subversion


Ignore:
Timestamp:
Jan 2, 2009 9:48:10 AM (4 years ago)
Author:
till
Message:
  • fixing notice, moved error_reporting one up, added @todo
File:
1 edited

Legend:

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

    r2123 r2211  
    5151} 
    5252 
     53ini_set('error_reporting', E_ALL&~E_NOTICE); 
     54if  (isset($_SERVER['HTTPS'])) { 
     55   ini_set('session.cookie_secure', ($_SERVER['HTTPS'] && ($_SERVER['HTTPS'] != 'off'))?1:0); 
     56} else { 
     57   ini_set('session.cookie_secure', 0); 
     58} 
    5359ini_set('session.name', 'roundcube_sessid'); 
    5460ini_set('session.use_cookies', 1); 
    5561ini_set('session.only_use_cookies', 1); 
    56 ini_set('session.cookie_secure', ($_SERVER['HTTPS'] && ($_SERVER['HTTPS'] != 'off'))); 
    57 ini_set('error_reporting', E_ALL&~E_NOTICE); 
    5862set_magic_quotes_runtime(0); 
    5963 
     
    7377 *  
    7478 * @todo Make Zend, PEAR etc play with this 
     79 * @todo Make our classes conform to a more straight forward CS. 
    7580 */ 
    7681function __autoload($classname) 
     
    113118// set PEAR error handling (will also load the PEAR main class) 
    114119PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'rcube_pear_error'); 
    115  
Note: See TracChangeset for help on using the changeset viewer.