| [ Index ] |
PHP Cross Reference of Zikula Core 1.3.2 |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Copyright Zikula Foundation 2009 - Zikula Application Framework 4 * 5 * This work is contributed to the Zikula Foundation under one or more 6 * Contributor Agreements and licensed to You under the following license: 7 * 8 * @license GNU/LGPL version 3 (or at your option any later version). 9 * @package Zikula 10 * 11 * Please see the NOTICE file distributed with this source code for further 12 * information regarding copyright and licensing. 13 */ 14 15 global $ZConfig; 16 $ZConfig['System']['installed'] = 0; // installer will change this during installation 17 $ZConfig['System']['temp'] = 'ztemp'; // location of temporary folder 18 $ZConfig['System']['datadir'] = 'userdata'; // location of site data files 19 $ZConfig['System']['prefix'] = ''; // database prefix (deprecated). 20 $ZConfig['System']['development'] = 0; // development mode 1/0 for on or off. Disable in production mode. 21 $ZConfig['System']['legacy_prefilters'] = true; // enable legacy template prefilters 22 $ZConfig['System']['compat_layer'] = true; // enable loading of compat layers 23 $ZConfig['System']['system.chmod_dir'] = 0777; // The default chmod for new directories created by Zikula. 24 25 // ---------------------------------------------------------------------- 26 // This is the definition for the default Zikula system database. 27 // It must be named 'default' 28 // ---------------------------------------------------------------------- 29 $ZConfig['DBInfo']['databases']['default']['host'] = 'localhost'; 30 $ZConfig['DBInfo']['databases']['default']['user'] = 'root'; 31 $ZConfig['DBInfo']['databases']['default']['password'] = ''; 32 $ZConfig['DBInfo']['databases']['default']['dbname'] = 'test'; 33 $ZConfig['DBInfo']['databases']['default']['dbdriver'] = 'mysql'; 34 $ZConfig['DBInfo']['databases']['default']['dbtabletype'] = 'myisam'; 35 $ZConfig['DBInfo']['databases']['default']['charset'] = 'utf8'; 36 $ZConfig['DBInfo']['databases']['default']['collate'] = 'utf8_general_ci'; 37 // additional DB can be configured here as above external2, external3 etc... 38 39 // ---------------------------------------------------------------------- 40 // Error Reporting 41 // ---------------------------------------------------------------------- 42 // This level of reporting only affect PHP's own native handlers (if you enable them). 43 // These settings have no effect on Zikula's error handling and reporting. 44 $ZConfig['Debug']['error_reporting_development'] = E_ALL; // preconfigured level 45 $ZConfig['Debug']['error_reporting_production'] = E_ALL & ~E_NOTICE & ~E_WARNING; // preconfigured level 46 $ZConfig['Debug']['debug_key'] = ($ZConfig['System']['development'] ? 'error_reporting_development' : 'error_reporting_production'); 47 error_reporting($ZConfig['Debug'][$ZConfig['Debug']['debug_key']]); // now set the appropriate level 48 49 // ---------------------------------------------------------------------- 50 // Logging Settings 51 // ---------------------------------------------------------------------- 52 $ZConfig['Log']['log_dest'] = 'FILE'; // the default logging destination. Can be "FILE", "PRINT", "EMAIL" or "DB". 53 $ZConfig['Log']['log_dir'] = $ZConfig['System']['temp'] . '/error_logs/'; // the directory containing all log files 54 $ZConfig['Log']['log_file'] = $ZConfig['Log']['log_dir'] . 'zikula-%s.log'; // %s is where todays date will go 55 $ZConfig['Log']['log_file_uid'] = 0; // wether or not a separate log file is used for each user. The filename is derived from $ZConfig['Log']['log_file'] 56 $ZConfig['Log']['log_file_date_format'] = 'Ymd'; // dateformat to be used for the generated log filename 57 $ZConfig['Log']['log_date_format'] = "Y-m-d H:i:s"; // 2011-09-15 12:24:56 58 $ZConfig['Log']['log_level_dest'] = array('DB' => 'PRINT'); // array of level-specific log destinations 59 $ZConfig['Log']['log_level_files'] = array('DB' => $ZConfig['System']['temp'] . '/error_logs/zikula-sql-%s.log'); // array of level-specific log files (only used if destination=="FILE") 60 61 $ZConfig['Log']['log.apache_uname'] = 0; // log username to apache logs: please see documentation. Please check you country's local law covering the logging of personally identifiable user data before enabling. 62 63 $ZConfig['Log']['log.enabled'] = 1; // Enable to allow Zikula to handle errors, 0 passes everything to PHP directly. 64 $ZConfig['Log']['log.to_display'] = 1; // Display errors. 65 $ZConfig['Log']['log.display_level'] = 4; // 0 - EMERG, 1 - CRIT, 2 - ALERT, 3 - ERR, 4 - WARN, 5 - NOTICE, 6 - INFO, 7 - DEBUG 66 $ZConfig['Log']['log.display_ajax_level'] = 4; // 0 - EMERG, 1 - CRIT, 2 - ALERT, 3 - ERR, 4 - WARN, 5 - NOTICE, 6 - INFO, 7 - DEBUG 67 $ZConfig['Log']['log.to_file'] = 0; // Log to file 1 yes, 0 no. 68 $ZConfig['Log']['log.file_level'] = 5; // 0 - EMERG, 1 - CRIT, 2 - ALERT, 3 - ERR, 4 - WARN, 5 - NOTICE, 6 - INFO, 7 - DEBUG 69 70 71 $ZConfig['Log']['log.show_php_errorhandler'] = 0; // Allow PHP error handlers to display additionally? Set this to 1 if you want to see PHP's error handler 72 // If you have XDebug installed, setting this will allow XDebug to output. 73 // If log.display_template set, PHP's handlers will not show! 74 75 $ZConfig['Log']['log.display_template'] = 0; // Overrides PHP's output handler if activated by log.show_php_error_handler and gains full control of output. 76 // This setting is generally NOT desirable when developing/debugging. 77 78 $ZConfig['Log']['log.to_debug_toolbar'] = 0; // 1 to show the debug toolbar (reqires development 1), 0 to disable 79 $ZConfig['Log']['log.to_debug_toolbar_output'] = 0; // Debug toolbar output type: 0 - normal toolbar, 1 - json output, 2 - both 80 $ZConfig['Log']['log.to_debug_toolbar_seckey'] = ''; // Security key for debug toolbar output of json type 81 // If defined - it's required that http request contains custom header 82 // "HTTP_X_ZIKULA_DEBUGTOOLBAR" equal to this key, otherwise no data is returned. 83 $ZConfig['Log']['log.sql.to_display'] = 0; // Display sql queries. 84 $ZConfig['Log']['log.sql.to_file'] = 0; // Log sql queries to file. 85 86 $ZConfig['Log']['debug.display_pagerendertime'] = 0; // display page render time, 0 to disable 87 88 // ---------------------------------------------------------------------- 89 // The following define some data layer settings 90 // ---------------------------------------------------------------------- 91 $ZConfig['System']['Z_CONFIG_USE_OBJECT_ATTRIBUTION'] = 0; // enable universal attribution layer, 0 to turn off 92 $ZConfig['System']['Z_CONFIG_USE_OBJECT_CATEGORIZATION'] = 1; // categorization/filtering services, 0 to turn off 93 $ZConfig['System']['Z_CONFIG_USE_OBJECT_LOGGING'] = 0; // object audit trail logging, 0 to turn off 94 $ZConfig['System']['Z_CONFIG_USE_OBJECT_META'] = 0; // meta-data services, 0 to turn off 95 $ZConfig['System']['Z_CONFIG_USE_TRANSACTIONS'] = 0; // run request as a transaction, 0 to turn off 96 97 // ---------------------------------------------------------------------- 98 // Database cache settings 99 // ---------------------------------------------------------------------- 100 $ZConfig['System']['dbcache.enable'] = 1; // 0 to disable, 1 to enable 101 $ZConfig['System']['dbcache.type'] = 'Array'; // Memcache, Apc, Array, Db, Xcache (todo: Memcached, File) 102 103 // CACHE_SERVERS valid for Memcache/d only. 104 // array of arrays: params according to the addServer methods at e.g. 105 // http://php.net/manual/memcached.addservers.php or 106 // http://php.net/manual/function.memcache-addserver.php 107 $ZConfig['System']['dbcache.servers'][] = array('host' => 'localhost', 'port' => '11211', 'weight' => 1); 108 $ZConfig['System']['dbcache.compression'] = true; // true/false valid for dbcache.type = Memcache/d 109 110 // For pure Doctrine Queries only. Effective only when dbcache.enable = true and dbcache.cache_result = 1 111 // http://www.doctrine-project.org/projects/orm/1.2/docs/manual/caching/en#query-cache-result-cache:result-cache 112 $ZConfig['System']['dbcache.cache_result'] = 0; // 1 to enable or 0 to disable. 113 $ZConfig['System']['dbcache.cache_result_ttl'] = 30; // seconds, 3600 = 1 hour. 114 115 // Initialize multisites array 116 $ZConfig['Multisites'] = array(); 117 $ZConfig['Multisites']['multisites.enabled'] = 0; 118 $ZConfig['Multisites']['protected.systemvars'] = array();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Feb 20 12:35:30 2012 | Cross-referenced by PHPXref 0.7.1 |