Changeset 434

Show
Ignore:
Timestamp:
12/24/07 00:57:17 (13 months ago)
Author:
padams
Message:

- fixed bugs in caller constructor where super globals were not being properly defined.
- added pear log 1.9.13
- removed pear log 1.9.11

Location:
trunk
Files:
56 added
1 removed
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/owa_caller.php

    r433 r434  
    7676                $this->start_time = owa_lib::microtime_float(); 
    7777                 
    78                 // Sets default config and error logger 
     78                // Parent Constructor. Sets default config and error logger 
    7979                $this->owa_base(); 
    8080                 
    81                 // Log init debug 
    82                 $this->e->debug(sprintf('*** Open Web Analytics v%s ***', OWA_VERSION)); 
     81                // Log version debug 
     82                $this->e->debug(sprintf('*** Starting Open Web Analytics v%s. Running under PHP v%s (%s) ***', OWA_VERSION, PHP_VERSION, PHP_OS)); 
    8383                                 
    8484                //$bt = debug_backtrace(); 
     
    101101                                include ($file); 
    102102                        else: 
    103                                 $this->e->emerg("Uh-oh. I can't find your configuration file..."); 
     103                                $this->e->emerg("Uh-oh. Your DB config is undefined and I can't find your configuration file..."); 
    104104                                exit; 
    105105                        endif; 
     
    110110                 
    111111                // Looks for object cache config constant 
    112                 if (!defined('OWA_OBJECT_CACHING')): 
     112                if (defined('OWA_OBJECT_CACHING')): 
    113113                        $config['cache_objects'] = OWA_OBJECT_CACHING; 
    114114                endif; 
     
    118118                 
    119119                // Looks for log level constant 
    120                 if (!defined('OWA_ERROR_LOG_LEVEL')): 
     120                if (defined('OWA_ERROR_LOG_LEVEL')): 
    121121                        $config['error_log_level'] = OWA_ERROR_LOG_LEVEL; 
    122122                endif; 
     
    173173                // Load the core API 
    174174                $this->api = &owa_coreAPI::singleton(); 
    175                  
    176175                $this->api->caller_config_overrides = $config; 
    177176                 
  • trunk/owa_env.php

    r429 r434  
    3434define('OWA_BASE_MODULE_DIR', OWA_BASE_DIR.DIRECTORY_SEPARATOR.'modules'.DIRECTORY_SEPARATOR.'base'.DIRECTORY_SEPARATOR); 
    3535define('OWA_INCLUDE_DIR', OWA_BASE_DIR.'/includes/'); 
    36 define('OWA_PEARLOG_DIR', OWA_BASE_DIR.'/includes/Log-1.9.11'); 
     36define('OWA_PEARLOG_DIR', OWA_BASE_DIR.'/includes/Log-1.9.13'); 
    3737define('OWA_PHPMAILER_DIR', OWA_BASE_DIR.'/includes/phpmailer-1.73/'); 
    3838define('OWA_JPGRAPH_DIR', OWA_BASE_DIR.'/includes/jpgraph-1.20.3/src/');