2 /*--------------------------------------------------\
4 |---------------------------------------------------|
6 | http://frontaccounting.com/ |
8 |---------------------------------------------------|
10 \--------------------------------------------------*/
13 // Make sure this directory exists and is writable!
14 $session_save_path = dirname(__FILE__).'/tmp/';
17 $session_save_path = session_save_path();
18 if (strpos($session_save_path, ";") !== false)
19 $session_save_path = substr($session_save_path, strpos($session_save_path, ";") + 1);
21 if (isset($session_save_path))
23 session_save_path($session_save_path);
24 unset($session_save_path);
27 include_once($path_to_root . "/config_db.php");
28 include_once($path_to_root . "/includes/lang/language.php");
30 //--------------------------------------------------
32 // User configurable variables
33 //---------------------------------------------------
35 /*Show debug messages returned from an error on the page.
36 Debugging info level also determined by settings in PHP.ini
37 if $debug=1 show debugging info, dont show if $debug=0 */
44 error_reporting(E_ALL);
45 ini_set("display_errors", "On");
49 // ini_alter("error_reporting","E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR|E_PARSE");
50 ini_set("display_errors", "Off");
53 $app_title = "FrontAccounting";
54 // application version
57 // Build for development purposes
58 $build_version = "15";
61 $power_by = "FrontAccounting";
62 $power_url = "http://frontaccounting.com";
64 /* use popup windows for views */
65 $use_popup_windows = 1;
68 $stock_units = array(_("ea."), _("m"), _("kgg"), _("tons"), _("l"), _("lbs"), _("dozen"), _("pack"), _("hrs"));
70 /* use date picker for all date fields */
73 /* use Audit Trails in GL */
76 $dateformats = array("MMDDYYYY", "DDMMYYYY", "YYYYMMDD");
77 $dateseps = array("/", ".", "-", " ");
78 $thoseps = array(",", ".", " ");
79 $decseps = array(".", ",");
81 $themes = array("default","aqua","cool");
82 $pagesizes = array("Letter", "A4"); // default PDF pagesize
84 /* Default border and spacing for tables */
85 /* Should be moved to CSS */
87 $table_style = "cellpadding=3 border=1 bordercolor='#8cacbb' style='border-collapse: collapse'";
88 $table_style2 = "cellpadding=3 border=1 bordercolor='#cccccc' style='border-collapse: collapse'";
90 /* Accounts Payable */
91 /* System check to see if quantity charged on purchase invoices exceeds the quantity received.
92 If this parameter is checked the proportion by which the purchase invoice is an overcharge
93 referred to before reporting an error */
95 $check_qty_charged_vs_del_qty = true;
97 /* System check to see if price charged on purchase invoices exceeds the purchase order price.
98 If this parameter is checked the proportion by which the purchase invoice is an overcharge
99 referred to before reporting an error */
101 $check_price_charged_vs_order_price = True;
103 $config_allocation_settled_allowance = 0.005;
105 // Internal configurable variables
106 //-----------------------------------------------------------------------------------
108 /* Whether to display the demo login and password or not */
110 $allow_demo_mode = false;
112 /* for uploaded item pictures */
115 $max_image_size = 500;
117 /* skin for Business Graphics, 1, 2 or 3 */
120 /*Security Group definitions - Depending on the AccessLevel of the user defined in the user set up
121 the areas of functionality accessible can be modified.
122 Each AccessLevel is associated with an array containing the security categories that the user is entitled to access
123 Each script has a particular security category associated with it.
124 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.
125 Each page has a $page_security = x; variable
126 This value is compared to contents of the array applicable which is based on the access level of the user.
127 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
128 and a new array of Security categories to the Security Groups array
129 This mechanism allows more fine grained control of access
130 security_groups is an array of arrays
131 The index is the order in which the array of allowed pages is defined new ones can be defined at will
132 or by changing the numbers in each array the security access can be tailored. These numbers need to read
133 in conjunction with the Page Security index
136 $security_headings = array(
139 _("System Administrator")
142 $security_groups = array(
144 array(1,2,3,4,5,6,7,8,9,10,11,12,13,14),
145 array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15)
148 //MySQL Backup and Restore Settings
150 define("BACKUP_PATH", "/admin/backup/");