Option for Logo on Reports.
[fa-stable.git] / config.default.php
1 <?php
2 /**********************************************************************
3     Copyright (C) FrontAccounting, LLC.
4         Released under the terms of the GNU General Public License, GPL, 
5         as published by the Free Software Foundation, either version 3 
6         of the License, or (at your option) any later version.
7     This program is distributed in the hope that it will be useful,
8     but WITHOUT ANY WARRANTY; without even the implied warranty of
9     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
10     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
11 ***********************************************************************/
12     //--------------------------------------------------
13
14         // User configurable variables
15         //---------------------------------------------------
16
17         /*Show debug messages returned from an error on the page.
18         Debugging info level also determined by settings in PHP.ini
19         if $debug=1 show debugging info, dont show if $debug=0 */
20
21 if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_to_root']))
22         die("Restricted access");
23
24         // Server time zone. Since php 5.3.0 time zone have to be set either here or in server php ini file
25         if (!ini_get('date.timezone'))
26                 ini_set('date.timezone', 'Europe/Berlin');
27
28         // Log file for error/warning messages. Should be set to any location
29         // writable by www server. When set to empty string logging is switched off. 
30         // Special value 'syslog' can be used for system logger usage (see php manual).
31         //$error_logfile = '';
32         $error_logfile = $path_to_root.'/tmp/errors.log';
33         $debug                  = 1;    // show sql on database errors
34
35         $show_sql               = 0;    // show all sql queries in page footer for debugging purposes
36         $go_debug               = 0;    // set to 1 for basic debugging, or 2 to see also backtrace after failure.
37         $pdf_debug              = 0;    // display pdf source instead reports for debugging when $go_debug!=0
38         // set $sql_trail to 1 only if you want to perform bugtracking sql trail
39         // Warning: this produces huge amount of data in sql_trail table.
40         // Don't forget switch the option off and flush the table manually after 
41         // trail, or your future backup files are overloaded with unneeded data.
42         //
43         $sql_trail              = 0; // save all sql queries in sql_trail
44         $select_trail   = 0; // track also SELECT queries
45
46         // Main Title
47         $app_title = "FrontAccounting";
48
49         // Build for development purposes
50         $build_version  = date("d.m.Y", filemtime("$path_to_root/CHANGELOG.txt"));
51
52         // Powered by
53         $power_by               = "FrontAccounting";
54         $power_url              = "http://frontaccounting.com";
55
56         /* No check on edit conflicts. Maybe needed to be set to 1 in certains Windows Servers */
57         $no_check_edit_conflicts = 0;
58         
59         /* Use additional icon for supplier/customer edition right of combobox. 1 = use, 0 = do not use */
60         $use_icon_for_editkey = 0;
61
62         /* Creates automatic a default branch with contact. Value 0 do not create auto branch */
63         $auto_create_branch = 1;
64
65         /* use popup windows for views */
66         $use_popup_windows = 1;
67
68         /* use Audit Trails in GL */
69         /* This variable is deprecated. Setting this to 1, will stamp the user name in the memo fields in GL */
70         /* This has been superseded with built in Audit Trail */
71         $use_audit_trail = 0;
72
73         /* $show_voiced_gl_trans = 0, setting this to 1 will show the voided gl trans */
74         $show_voided_gl_trans = 0;
75
76         /* use old style convert (income and expense in BS, PL) */
77         $use_oldstyle_convert = 0;
78
79         /* show users online discretely in the footer */
80         $show_users_online = 0;
81
82         // Wiki context help configuration
83         // If your help wiki use translated page titles uncomment next line
84         // $old_style_help = 1; // this setting is depreciated and subject to removal in next FA versions
85         $old_style_help = 0;
86         //      locally installed wiki module
87         // $help_base_url = $path_to_root.'/modules/wiki/index.php?n='._('Help').'.';
88         //      context help feed from frontaccounting.com
89         $help_base_url = 'http://frontaccounting.com/fawiki/index.php?n=Help.';
90         //      set to null if not used:
91         //      $help_base_url = null;
92
93         /* per user data/cache directory */
94         $comp_path = $path_to_root.'/company';
95
96         /* Date systems. 0 = traditional, 1 = Jalali used by Iran, Afghanistan and some other Central Asian nations,
97         2 = Islamic used by other arabic nations. 3 = traditional, but where non-workday is Friday and start of week is Saturday */
98         $date_system = 0;
99
100         /* allow reopening closed transactions */
101         $allow_gl_reopen = 0;
102
103         $dateformats    = array("MMDDYYYY", "DDMMYYYY", "YYYYMMDD","MmmDDYYYY", "DDMmmYYYY", "YYYYMmmDD");
104         $dateseps               = array("/", ".", "-", " ");
105         $thoseps                = array(",", ".", " ");
106         $decseps                = array(".", ",");
107
108         /* default dateformats and dateseps indexes used before user login */
109         $dflt_date_fmt = 0;
110         $dflt_date_sep = 0;
111
112         /* default PDF pagesize taken from /reporting/includes/tcpdf.php */
113         $pagesizes              = array("Letter", "A4");
114
115         /* Accounts Payable */
116         /* System check to see if quantity charged on purchase invoices exceeds the quantity received.
117            If this parameter is checked the proportion by which the purchase invoice is an overcharge
118            referred to before reporting an error */
119
120         $check_qty_charged_vs_del_qty = true;
121
122         /* System check to see if price charged on purchase invoices exceeds the purchase order price.
123            If this parameter is checked the proportion by which the purchase invoice is an overcharge
124            referred to before reporting an error */
125
126         $check_price_charged_vs_order_price = true;
127
128         $config_allocation_settled_allowance = 0.005;
129
130         /* Show company logo on reports */
131         $show_company_logo_report = 0;  
132         
133         /* Show average costed values instead of fixed standard cost in report, Inventory Valuation Report */
134         $use_costed_values = 1; 
135         
136         /* Show menu category icons in core themes */
137         $show_menu_category_icons = 1;
138         
139         // Internal configurable variables
140         //-----------------------------------------------------------------------------------
141
142         /* Whether to display the demo login and password or not */
143
144         $allow_demo_mode = false;
145
146     /* Whether to allow sending new password by e-mail */
147     $allow_password_reset = false;
148
149         /* for uploaded item pictures */
150         $pic_width              = 80;
151         $pic_height     = 50;
152         $max_image_size = 500;
153
154         /* skin for Business Graphics. 1 = Office, 2 = Matrix, or 3 = Spring. 
155            Pallete skin attributes set in reporting/includes/class.graphic.inc */
156         $graph_skin     = 1;
157
158         /* UTF-8 font for Business Graphics. Copy it to /reporting/fonts/ folder. */
159         $UTF8_fontfile  = "FreeSans.ttf";
160         //$UTF8_fontfile        = "zarnormal.ttf"; // for Arabic Dashboard
161
162 /* 
163         Display a dropdown select box for choosing Company to login if false.
164         Show a blank editbox only if true where the Company NickName
165         will have to be manually entered. This is when privacy is needed.
166 */
167         $text_company_selection  = false;
168
169 /*  Should FA hide menu items (Applications, Modules, and Actions) from the user if they don't have access to them? 
170     0 for no       1 for yes
171 */
172
173         $hide_inaccessible_menu_items = 0;
174
175 /*
176         Brute force prevention.
177         $login_delay seconds delay is required between login attempts after $login_max_attemps failed logins.
178         Set $login_delay to 0 to disable the feature (not recommended)
179 */
180         $login_delay = 30;
181         $login_max_attempts = 10;
182
183 /*
184         Choose Exchange Rate Provider
185         Default is ECB for backwards compatibility
186 */
187         $xr_providers = array("ECB", "YAHOO", "GOOGLE", "BLOOMBERG");
188         $dflt_xr_provider = 0;
189
190 /*
191         Set to true when remote service is authoritative source of exchange rates, and can be stored automatically without
192         manual edition. Otherwise exrate is stored on first new currency transaction of the day.
193 */
194         $xr_provider_authoritative = false;
195
196 /*
197         Optional sorting sales documents lines during edition according to item code
198 */
199         $sort_sales_items = false;
200
201 /*
202         Trial Balance opening balance presentation option.
203         When set to true past years part of opening balance is cleared.
204 */
205         $clear_trial_balance_opening = false;
206
207 /*
208         Optional backup path. Use %s in place of company number.
209         If not defined $comp_path/%s/backup/ is used.
210 */
211 //      $backup_path = dirname(__FILE__).'/company/%s/backup/';
212
213 /*
214         Optional popup search enabled if this is true.
215         $max_rows_in_search = 10 is used for maximum rows in search
216 */
217         $use_popup_search = true;
218         $max_rows_in_search = 10;