Changeset 2881 in subversion


Ignore:
Timestamp:
Aug 27, 2009 9:38:26 AM (4 years ago)
Author:
alec
Message:
  • Don't require date.timezone setting in installer (#1485989)
Location:
trunk/roundcubemail
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r2879 r2881  
    22=========================== 
    33 
     4- Don't require date.timezone setting in installer (#1485989) 
    45- Fix date sorting problem with Courier IMAP server (#1486065) 
    56- Unselect pressed buttons on mouse up (#1485987) 
  • trunk/roundcubemail/installer/check.php

    r2867 r2881  
    1818$ini_checks = array('file_uploads' => 1, 'session.auto_start' => 0, 
    1919    'zend.ze1_compatibility_mode' => 0, 'mbstring.func_overload' => 0, 
    20     'suhosin.session.encrypt' => 0, 'date.timezone' => '-NOTEMPTY-'); 
     20    'suhosin.session.encrypt' => 0); 
     21 
     22$optional_checks = array('date.timezone' => '-NOTEMPTY-'); 
    2123 
    2224$source_urls = array( 
     
    6971?> 
    7072 
    71 <p class="hint">The next couple of extensions are <em>optional</em> but recommended to get the best performance:</p> 
     73<p class="hint">The next couple of extensions are <em>optional</em> and recommended to get the best performance:</p> 
    7274<?php 
    7375 
     
    128130 
    129131<h3>Checking php.ini/.htaccess settings</h3> 
     132<p class="hint">The following settings are <em>required</em> to run RoundCube:</p> 
    130133 
    131134<?php 
     
    137140            $RCI->fail($var, "cannot be empty and needs to be set"); 
    138141        } else { 
    139             switch ($var) { 
    140                 case 'date.timezone': 
    141                     if (date_default_timezone_set($status) === false) { 
    142                         $RCI->fail($var, "is '$status', but the settings is wrong"); 
    143                         echo '<br />'; 
    144                         continue; 
    145                     } 
    146                     break; 
    147             } 
    148142            $RCI->pass($var); 
    149143        } 
     
    155149    } else { 
    156150      $RCI->fail($var, "is '$status', should be '$val'"); 
     151    } 
     152    echo '<br />'; 
     153} 
     154?> 
     155 
     156<p class="hint">The following settings are <em>optional</em> and recommended:</p> 
     157 
     158<?php 
     159 
     160foreach ($optional_checks as $var => $val) { 
     161    $status = ini_get($var); 
     162    if ($val === '-NOTEMPTY-') { 
     163        if (empty($status)) { 
     164            $RCI->optfail($var, "Could be set"); 
     165        } else { 
     166            $RCI->pass($var); 
     167        } 
     168        echo '<br />'; 
     169        continue; 
     170    } 
     171    if ($status == $val) { 
     172        $RCI->pass($var); 
     173    } else { 
     174      $RCI->optfail($var, "is '$status', could be '$val'"); 
    157175    } 
    158176    echo '<br />'; 
  • trunk/roundcubemail/installer/rcube_install.php

    r2776 r2881  
    468468    $this->_showhint($message, $url); 
    469469  } 
     470 
     471 
     472  /** 
     473   * Display an error status for optional settings/features 
     474   * 
     475   * @param string Test name 
     476   * @param string Error message 
     477   * @param string URL for details 
     478   */ 
     479  function optfail($name, $message = '', $url = '') 
     480  { 
     481    echo Q($name) . ':&nbsp; <span class="na">NOT OK</span>'; 
     482    $this->_showhint($message, $url); 
     483  } 
    470484   
    471485   
Note: See TracChangeset for help on using the changeset viewer.