Changeset 52


Ignore:
Timestamp:
Jan 22, 2006 1:10:59 AM (18 years ago)
Author:
scdev
Message:
 
Location:
tags/1.0.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tags/1.0.0/bin/install.sh

    r51 r52  
    1414
    1515# If old log locations exists, copy to new directory.
    16 if [ -f "$sitebase/codebase/logs/app_error_log" ] || [ -f "$sitebase/codebase/logs/php_error_log" ]; then
     16#if [ -f "$sitebase/codebase/logs/app_error_log" ] || [ -f "$sitebase/codebase/logs/php_error_log" ]; then
     17if [ `ls -1 $sitebase/codebase/logs/ | wc -l` -gt 0 ]; then
    1718    echo "Moving logs to new log directory: $sitebase/log/";
    18     mv -v --backup "$sitebase/codebase/logs/*" "$sitebase/log/";
     19    mv -vfb $sitebase/codebase/logs/* $sitebase/log/;
    1920fi
    2021
  • tags/1.0.0/lib/App.inc.php

    r51 r52  
    585585    global $CFG;
    586586
    587     if ('on' != getenv('HTTPS') && $CFG->ssl_enabled && preg_match('/mod_ssl/i', getenv('SERVER_SOFTWARE'))) {
     587    if (function_exists('apache_get_modules')) {
     588        $modules = apache_get_modules();
     589    } else {
     590        // It's safe to assume we have mod_ssl if we can't determine otherwise.
     591        $modules = array('mod_ssl');
     592    }
     593   
     594    if ('on' != getenv('HTTPS') && $CFG->ssl_enabled && in_array('mod_ssl', $modules)) {
    588595        raiseMsg(sprintf(_("Secure SSL connection made to %s"), $CFG->ssl_domain), MSG_NOTICE, __FILE__, __LINE__);
    589596        // Always append session because some browsers do not send cookie when crossing to SSL URL.
Note: See TracChangeset for help on using the changeset viewer.