X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=config.default.php;h=3630dfc7c0870635febee67be314aac7615b6f12;hb=refs%2Fheads%2Funstable;hp=cdbb2d44b87eecd221fa7d6851ebb283fac111a2;hpb=1ca0c7081f7a4cb3f68f3ffb6ee05739abb6cebf;p=fa-stable.git diff --git a/config.default.php b/config.default.php index cdbb2d44..3630dfc7 100644 --- a/config.default.php +++ b/config.default.php @@ -21,27 +21,25 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_to_root'])) die("Restricted access"); - // Server time zone. If leaved empty the time zone set in php init file will be used. - // If timezone is not set in this file nor in php.ini, Europe/Berlin' is used as defualt. - $server_time_zone = ''; + // Server time zone. Since php 5.3.0 time zone have to be set either here or in server php ini file + if (!ini_get('date.timezone')) + ini_set('date.timezone', 'Europe/Berlin'); // Log file for error/warning messages. Should be set to any location // writable by www server. When set to empty string logging is switched off. // Special value 'syslog' can be used for system logger usage (see php manual). //$error_logfile = ''; - $error_logfile = $path_to_root.'/tmp/errors.log'; + $error_logfile = VARLOG_PATH.'/errors.log'; $debug = 1; // show sql on database errors $show_sql = 0; // show all sql queries in page footer for debugging purposes $go_debug = 0; // set to 1 for basic debugging, or 2 to see also backtrace after failure. $pdf_debug = 0; // display pdf source instead reports for debugging when $go_debug!=0 - // set $sql_trail to 1 only if you want to perform bugtracking sql trail - // Warning: this produces huge amount of data in sql_trail table. - // Don't forget switch the option off and flush the table manually after - // trail, or your future backup files are overloaded with unneeded data. - // - $sql_trail = 0; // save all sql queries in sql_trail - $select_trail = 0; // track also SELECT queries + // set $db_trail when you need full log of database changes for debugging purposes + // Warning: this option can produce huge amount of data either in backups or error log file. + // 1 - log to db_trail table + // 2 - log to error file + $db_trail = 0; // Main Title $app_title = "FrontAccounting"; @@ -70,9 +68,6 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_ /* This has been superseded with built in Audit Trail */ $use_audit_trail = 0; - /* $show_voiced_gl_trans = 0, setting this to 1 will show the voided gl trans */ - $show_voided_gl_trans = 0; - /* use old style convert (income and expense in BS, PL) */ $use_oldstyle_convert = 0; @@ -128,7 +123,7 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_ $config_allocation_settled_allowance = 0.005; /* Show average costed values instead of fixed standard cost in report, Inventory Valuation Report */ - $use_costed_values = 0; + $use_costed_values = 1; /* Show menu category icons in core themes */ $show_menu_category_icons = 1; @@ -154,6 +149,7 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_ /* UTF-8 font for Business Graphics. Copy it to /reporting/fonts/ folder. */ $UTF8_fontfile = "FreeSans.ttf"; + //$UTF8_fontfile = "zarnormal.ttf"; // for Arabic Dashboard /* Display a dropdown select box for choosing Company to login if false. @@ -180,7 +176,7 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_ Choose Exchange Rate Provider Default is ECB for backwards compatibility */ - $xr_providers = array("ECB", "YAHOO", "GOOGLE", "BLOOMBERG"); + $xr_providers = array("ECB", "EXCHANGE-RATES.ORG", "GOOGLE", "YAHOO", "BLOOMBERG"); $dflt_xr_provider = 0; /*