*** empty log message ***
[fa-stable.git] / config.php
1 <?php
2         /*--------------------------------------------------\
3         |               |               | config.php                    |
4         |---------------------------------------------------|
5     | FrontAccounting                                                                   |
6     | http://frontaccounting.com/                                               |
7     | by FrontAccounting                                        |
8         |---------------------------------------------------|
9         |                                                   |
10         \--------------------------------------------------*/
11
12     $session_save_path = dirname(__FILE__).'/tmp/';
13
14         if (isset($session_save_path))
15         {
16                 session_save_path($session_save_path);
17                 unset($session_save_path);
18     }
19     include_once($path_to_root . "/config_db.php");
20     include_once($path_to_root . "/includes/lang/language.php");
21
22         //--------------------------------------------------
23
24         // User configurable variables
25     //---------------------------------------------------
26
27     /*Show debug messages returned from an error on the page.
28     Debugging info level also determined by settings in PHP.ini
29     if $debug=1 show debugging info, dont show if $debug=0 */
30     
31     //
32     $debug                      = 1;
33         $show_sql               = 0;
34         $go_debug               = 0;
35         if ($go_debug == 1)
36         {
37                 error_reporting(E_ALL);
38                 ini_set("display_errors", "On");
39         }       
40         else
41         {
42                 // ini_alter("error_reporting","E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR|E_PARSE");                 
43                 ini_set("display_errors", "Off");
44         }       
45         // Main Title
46         $app_title = "FrontAccounting";
47     // application version
48     $version            = "1.0";
49
50     // Build for development purposes
51     $build_version      = "177";
52
53         // Powered by
54         $power_by               = "FrontAccounting";
55         $power_url              = "http://frontaccounting.com";
56
57         /* use popup windows for views */
58         $use_popup_windows = 1;
59     /*Stock units array*/
60         $stock_units    = array(_("ea."), _("m"), _("kgg"), _("tons"), _("l"), _("lbs"), _("dozen"), _("pack"), _("hrs"));
61
62         $dateformats    = array("MMDDYYYY", "DDMMYYYY", "YYYYMMDD");
63         $dateseps               = array("/", ".", "-", " ");
64         $thoseps                = array(",", ".", " ");
65         $decseps                = array(".", ",");
66     // CSS theme
67     $themes             = array("default","aqua","cool");
68     $pagesizes          = array("Letter", "A4"); // default PDF pagesize
69
70         /* Default border and spacing for tables */
71     /* Should be moved to CSS */
72     
73     $table_style        = "cellpadding=3 border=1 bordercolor='#8cacbb' style='border-collapse: collapse'";
74     $table_style2       = "cellpadding=3 border=1 bordercolor='#cccccc' style='border-collapse: collapse'";
75
76     /* Accounts Payable */
77     /* System check to see if quantity charged on purchase invoices exceeds the quantity received.
78         If this parameter is checked the proportion by which the purchase invoice is an overcharge
79         referred to before reporting an error */
80
81         $check_qty_charged_vs_del_qty = true;
82
83     /* System check to see if price charged on purchase invoices exceeds the purchase order price.
84     If this parameter is checked the proportion by which the purchase invoice is an overcharge
85     referred to before reporting an error */
86     
87     $check_price_charged_vs_order_price = True;
88
89         $config_allocation_settled_allowance = 0.005;
90
91     // Internal configurable variables
92     //-----------------------------------------------------------------------------------
93
94     /* Whether to display the demo login and password or not */
95     
96     $allow_demo_mode = false;
97     
98     /* for uploaded item pictures */
99     $pic_width          = 80;
100     $pic_height         = 50;
101         $max_image_size = 500;
102
103     /* skin for Business Graphics, 1, 2 or 3 */
104         $graph_skin     = 1;
105         
106     /*Security Group definitions - Depending on the AccessLevel of the user defined in the user set up
107     the areas of functionality accessible can be modified.
108     Each AccessLevel is associated with an array containing the security categories that the user is entitled to access
109     Each script has a particular security category associated with it.
110     If the security setting of the page is contained in the security group as determined by the access level then the user will be allowed access.
111     Each page has a $page_security = x; variable
112     This value is compared to contents of the array applicable which is based on the access level of the user.
113     Access authorisation is checked in header.inc this is where _SESSION["AccessLevel"] is the index of the security_groups array. If you wish to add more security groups with then you must add a new SecurityHeading to the security_headings array
114     and a new array of Security categories to the Security Groups array
115     This mechanism allows more fine grained control of access
116     security_groups is an array of arrays
117     The index is the order in which the array of allowed pages is defined new ones can be defined at will
118     or by changing the numbers in each array the security access can be tailored. These numbers need to read
119     in conjunction with the Page Security index
120     */
121
122     $security_headings = array(
123                 _("Inquiries"),
124                 _("Accountant"),
125                 _("System Administrator")
126     );
127
128     $security_groups = array(
129                 array(1,2),
130                 array(1,2,3,4,5,6,7,8,9,10,11,12,13,14),
131                 array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)
132     );
133         
134         //MySQL Backup and Restore Settings
135     
136     define("BACKUP_PATH", "/admin/backup/");
137
138 ?>