<?php
// Database Configuration
// Database Username: the username that will be used to connect to the database.
$systemConfiguration['DB.UserName'] = '';
// Database Password: the password that will be used to connect to the database.
$systemConfiguration['DB.Password'] = '';
// Database Host: the host name where the database server is located.
// A different port can also be specified, e.g. 'localhost:12345'
$systemConfiguration['DB.Host'] = 'localhost';
// Database Name: the name of the database to connect to.
$systemConfiguration['DB.Name'] = 'Xaraya';
// Database Type: the type of the database server.
$systemConfiguration['DB.Type'] = 'mysql';
// Database TablePrefix: a string that will be prefixed to every database tables that are part of the core.
//                       Those tables are shared across multi-sites.
$systemConfiguration['DB.TablePrefix'] = 'xar';
// Database username and password encoding
// 0 = not encoded
// 1 = encoded
// TODO: check if this works, havent heard from anyone using it.
$systemConfiguration['DB.Encoded'] = '0';
// Persistent database connections - do NOT use this on shared servers, and
// do NOT use it on your own servers unless your sysadmin + dba teams agree !
$systemConfiguration['DB.Persistent'] = false;

/* For Logging:
 * Logging will be done automatically if you create a webserver writable
 * file in var/logs/log.txt
 * For more advanced logging options use the logconfig module
 */

/*
 * if you set this to true the core will be able to
 * trap every message that comes from PHP and if
 * possible to show a gracefully error page.
 * This is an advanced option, leave it to false if unsure.
 * TODO: move this out of here
 * TODO: review this in code, it is known to hide some errors
 * TODO: it also is known to break a PHP5 installation due to the introduction
 *       of E_STRICT error level (see xarException phpErrorHandler function)
 *       If so set this to false
 */
$systemConfiguration['Exception.EnablePHPErrorHandler'] = true;

/*
 * Global error level, optional
 *
 * If set it is passed directly into the error_reporting() function of PHP
 * Normally you want this to be set to E_ALL during development and something a bit lower
 * for a production system.
 * NOTE: Also set this option if you suffer from the changes wrt references
 *       in php4.4 and php5.x versions or the bug in the zend optimizer eg: E_ALL ^ E_NOTICE
 */
 $systemConfiguration['Exception.ErrorLevel'] = E_ALL;

/*
 * This value determines to use the ADODB cache for SQL queries
 * In some cases performance will be reduced by setting this value to
 * true (on).
 *
 * Rule of thumb: If your db server is slower than your webserver and/or
 *                your db does no query caching (mysql 3.x for example)
 *                this might speed things up a little
 * TODO: Move this out of here
 */
$systemConfiguration['DB.UseADODBCache'] = false;

/*
 * This value is used to change the default behavior of the
 * xarServerGetBaseURL() and xarModURL() functions to allow you
 * to use things like Apache's mod_rewrite to shorten your
 * URLs even further then Short URL's allows, for example
 * completely removing the "index.php" from your site's URLs
 *
 * Comment them out to use Xaraya's built-in/auto values
 * TODO: move this out of here
 */
// 1. When you want to use some alternate URI path to your site
//$systemConfiguration['BaseURI'] = '/test';
// 2. When you want to use some alternate script file for your site
//$systemConfiguration['BaseModURL'] = 'index2.php';
// 3. When you want to use URLs like http://mysite.com/news/123
//$systemConfiguration['BaseURI'] = '';
//$systemConfiguration['BaseModURL'] = '';
?>
