Files
thetool/config/config.sample.php
2024-04-18 14:05:22 +02:00

826 lines
22 KiB
PHP

<?php
require_once(realpath(dirname(__FILE__) . "/internals.php"));
/*
* Essentials
*/
const MFAPPNAME = "thetool"; // used for cookie and logfile names
const MFAPPNAME_SLUG = "the-tool";
const MFAPPNAME_FULL = "the tool";
const MFBASECONTROLLER_INIT_INCLUDE_FILE = APPDIR . "Init/Init.php";
const TT_DISABLE_EMAIL = false; // not implemented yet! Make sure your local MTA does not send emails to the internet
const TESTMODE = false;
const MFVALUECACHE_DEBUG = false;
const LAYOUT_DEFAULTPACKAGE = "default"; // mfLayout looks for templates in this folder
// force users to enable 2FA
const TT_WORKER_FORCE_2FA = true;
// database configuration
const FRONKDB_DBHOST = "localhost";
const FRONKDB_DBUSER = "thetooldbuser";
const FRONKDB_DBPASS = "";
const FRONKDB_DBNAME = "thetooldb";
// address DB for GWR data
const ADDRESSDB_DBHOST = "localhost";
const ADDRESSDB_DBUSER = "addressdbuser";
const ADDRESSDB_DBPASS = "";
const ADDRESSDB_DBNAME = "addressdb";
const IVT_DBHOST = "localhost";
const IVT_DBUSER = "ivtdbuser";
const IVT_DBPASS = "";
const IVT_DBNAME = "ivtdb";
//Raspberry Display Configuration
const XINON_RASPBERRY_DISPLAY_SSH_USER = "changeme";
const XINON_RASPBERRY_DISPLAY_SSH_PASS = "changeme";
// RIMO API
const RIMO_API_JSON_URL = "https://rimo-dev.rimo-saas.com/CRM2RIMO/dev";
const RIMO_API_JSON_APIKEY = "";
const RIMO_API_JSON_URL_PROD = "https://rimo-saas.com/CRM2RIMO/prod";
const RIMO_API_JSON_APIKEY_PROD = "";
const RIMO_API_JSON_EP_CREATE_WORKORDER = "/createOrder";
const RIMO_API_JSON_EP_GET_CLUSTERS = "/getClusters";
const RIMO_API_JSON_EP_GET_BUILDINGS = "/getBuildings";
const RIMO_API_JSON_EP_QUERY_HOME = "/queryHomeWithId";
const RIMO_API_JSON_EP_GET_OAID = "/v1/oaid-management/oaids";
const RIMO_API_JSON_EP_CREATE_OAID = "/v1/oaid-management/oaids";
const RIMO_API_JSON_EP_ASSIGN_OAID_TO_FTU = "/v1/oaid-management/oaids/{oaidName}/ftu/{ftuExternalId}";
const RIMO_API_JSON_EP_UNASSIGN_OAID_TO_FTU = "/v1/oaid-management/oaids/{oaidName}/ftu/{ftuExternalId}";
const RIMO_API_JSON_EP_QUERY_WORKORDERS = "/queryOrdersWithBuildingId";
const RIMO_API_JSON_EP_QUERY_SERVICE = "/queryServiceWithHomeId";
const RIMO_API_JSON_EP_GET_JSON_FOR_BUILDING = "/getGeoJSONForBuilding";
const RIMO_API_JSON_EP_GET_JSON_FOR_CLUSTER = "/getGeoJSONPolygonsForCluster";
const RIMO_API_WS_URL = "wss://outboundqueue.d-test.rimo-saas.com";
const RIMO_API_WS_USER = "";
const RIMO_API_WS_PASS = "";
const RIMO_API_WS_SLEEP_SEC = 5;
const TT_RIMO_API_CREDS = [
"estmk" => [
"test" => [
"key" => "",
"url" => "https://rimo-dev.rimo-saas.com/CRM2RIMO/dev",
],
"prod" => [
"key" => "",
"url" => "https://rimo-saas.com/CRM2RIMO/prod",
]
],
"rml" => [
"test" => [
"key" => "",
"url" => "https://rimo-dev.rimo-saas.com/CRM2RIMO/dev"
],
"prod" => [
"key" => "",
"url" => "https://rimo-saas.com/CRM2RIMO/prod"
]
]
];
//MBI-API Server Configuration
const TT_MBI_API_ENABLE = false; //Enable API Calls
const TT_MBI_API_URL = "https://172.16.5.56/api/";
const TT_MBI_API_VERSION = "v01";
const TT_MBI_API_KEY = "";
//define("FRONKDB_SQLDEBUG", true);
// Logging configuration
const LOGTYPE = "file"; // can be one of file, mysql, syslog; defaults to "file"
const LOGFILENAME = BASEDIR . "/var/log/" . MFAPPNAME . ".log";
/*
* Application-specific settings
*/
// increment when adding new api
// used to route calls without explicit version
const API_VERSION = "v1";
const TT_FEATURE_IVT = true;
const TT_VATRATE_AREAS = [
"domestic" => "Österreich",
"eu" => "EU",
"other" => "Drittland"
];
const TT_VATRATE_DEFAULT = 1;
const TT_ROLES = ['systemowner', 'productowner', 'netowner', 'salespartner', 'pipeworker', 'lineworker', 'pipeplanner', 'lineplanner', 'netoperator', 'supplier', 'billing', 'employee', 'customer', 'contact', 'techcontact'];
const TT_NETWORK_ROLES = ['salespartner', 'pipeworker', 'lineworker', 'pipeplanner', 'lineplanner', 'netoperator'];
const TT_NETWORK_ROLES_WITH_OWNER = ['netowner', 'salespartner', 'pipeworker', 'lineworker', 'pipeplanner', 'lineplanner', 'netoperator'];
const TT_ADDRESS_LINK_TYPES = ['billing', 'employee', 'customer', 'contact', 'techcontact'];
const TT_ATTRIB_RTRTECHCODE_NAME = "rtr_tech_code";
const TT_ATTRIB_TERMINATION_REQUIRED_NAME = "termination_required";
const TT_ATTRIB_VOICENUMBER_REQUIRED_NAME = "needs_number";
const TT_GEOCODING_API_URL = 'https://maps.googleapis.com/maps/api/geocode/json';
const TT_GEOCODING_API_SECRET = '';
const TT_MAPBOX_TILE_API_TOKEN = "";
const TT_BUILDINGSTATUS_CONNECTED = 50;
const TT_TERMSTATUS_ASSIGNED = 30;
const TT_TERMSTATUS_CONNECTED = 50;
const TT_TERMSTATUS_ACTIVE = 60;
const TT_PLACEHOLDER_GPS_LAT = "47.082999";
const TT_PLACEHOLDER_GPS_LONG = "15.425001";
const TT_FIRST_CUSTNUM = 102030;
const TT_FIRST_SUPPLIER_NUM = 301001;
const TT_FIRST_FIBU_ACCOUNT_NUM = 230001;
const TT_OUTGOING_SMS_API_KEY = "";
const TT_OUTGOING_SMS_API_URL = "api.websms.com/rest";
const TT_OUTGOING_EMAIL_2FA = "noreply@xinon.at";
const TT_OUTGOING_EMAIL_2FA_NAME = "'XINON No-Reply'";
const TT_OUTGOING_EMAIL = "office@xinon.at";
const TT_OUTGOING_EMAIL_NAME = "XINON Kundenservice";
const TT_INTERNAL_BILLING_EMAIL_TO = "thetool-tobill@xinon.at";
const TT_EXTERNAL_BILLING_EMAIL_TO = "energie-billing@xinon.at";
const TT_FIBU_EMAIL_TO = "buchhaltung@xinon.at";
const TT_CUSTOM_ORDER_PDF_PER_NETOWNER = true;
const TT_CUSTOM_ORDER_PDF_DEFAULT_OWNER_ID = 1635;
const TT_ADDRESS_BMD_EXPORT_PATH = BASEDIR."/files/bmd/IMP_Kunden_Lieferanten";
const TT_ADDRESS_BMD_EXPORT_FILENAME = "thetool-export.csv";
const TT_ADDRESS_DEFAULT_SUPPLIER_DUE = 30;
const TT_IBAN_VALIDATOR_BASEURL = "https://rest.sepatools.eu/validate_iban/";
const TT_IBAN_VALIDATOR_USER = "";
const TT_IBAN_VALIDATOR_PASS = "";
/*
* Preorder settings
*/
const TT_PREORDER_DISCOUNT_2 = 25;
const TT_PREORDER_DISCOUNT_3 = 33.33;
const TT_PREORDER_DISCOUNT_APART = 50;
const TT_PREORDER_DISCOUNT_BUSINESS = 16.667;
const TT_PREORDERNOTIFICATION_FILE_UPLOAD_SUBFOLDER = "preordernotification";
const TT_PREORDER_CIF_QR_SUBFOLDER = "preorder-cif";
const TT_PREORDER_DEFAULT_CANCEL_STATUSCODE = 910;
/*
* defines status alignments of preorder status to hausnummer (h) and wohneinheit (w)
*
* $statusmatrix = [
* "preorder_status_code" => [
* "h" => adb_status_code, // gebäude
* "w" => adb_status_code // wohneinheit
* ]
* ]
*/
const TT_PREORDER_STATUS_MATRIX = [
10 => ["h" => 10, "w" => 10], // 10 new
110 => ["h" => 110, "w" => 10], // 110 Underground construction planning
120 => ["h" => 120, "w" => 10], // 120 Underground construction planning finished
130 => ["h" => 130, "w" => 10], // 130 Underground construction work assigned
140 => ["h" => 140, "w" => 10], // 140 Conduit at property border
145 => ["h" => 140, "w" => 10], // 145 Installation kit picked up or shipped
200 => ["h" => 200, "w" => 10], // 200 Conduit in building
210 => ["h" => 210, "w" => 10], // 210 Fiber planning
220 => ["h" => 220, "w" => 10], // 220 Fiber planning finished
230 => ["h" => 230, "w" => 10], // 230 Fiber installation work assigned
235 => ["h" => 235, "w" => 10], // 235 Fiber on property line
240 => ["h" => 240, "w" => 10], // 240 Fiber in building
241 => ["h" => 241, "w" => 241], // 241 BEP installed (multi-dwelling)
242 => ["h" => 242, "w" => 242], // 242 Inhouse cabeling finished (multi-dwelling)
244 => ["h" => 244, "w" => 244], // 244 BEP installed (single-dwelling)
245 => ["h" => 241, "w" => 245], // 245 OTO installed
250 => ["h" => false, "w" => 245], // 250 ONT ready
260 => ["h" => false, "w" => 245], // 260 ONT picked up or shipped
300 => ["h" => 241, "w" => 300], // 300 ONT installed
350 => ["h" => 241, "w" => 300], // 350 Waiting for Service -> Vollanschluss (muss ISP nehmen in x Wochen)
351 => ["h" => 241, "w" => 300], // 351 Ready for Service -> Vorsorgeanschluss (kann ISP nehmen)
500 => ["h" => 241, "w" => 300], // 500 Finished
899 => ["h" => false, "w" => false], // 899 Canceled
900 => ["h" => false, "w" => false], // 900 Canceled
910 => ["h" => false, "w" => false], // 910 Canceled
920 => ["h" => false, "w" => false], // 920 Canceled
921 => ["h" => false, "w" => false], // 921 Canceled
];
/*
* Workflow Settings
*/
const TT_WORKFLOW_ITEM_STATUS_FIELD = "pipework_finished";
const TT_WORKFLOW_ITEM_STATUS_VALUE_PASSED = "am Grundstück";
const TT_WORKFLOW_ITEM_STATUS_VALUE_CONNECTED = "im Gebäude";
const TT_WORKFLOW_ITEM_PIPEWORK_DONE = "pipework_finished";
const TT_WORKFLOW_ITEM_LINEWORK_DONE = "customer_passive_finished";
const TT_WORKFLOW_BUILDING_FILE_TYPES = [
"Rohrplan",
"Gestattungsvertrag",
"Foto Tiefbau",
"Handskizze",
"Anderes",
];
const TT_WORKFLOW_TERMINATION_FILE_TYPES = [
"Spleissplan",
"Foto Leitungsbau",
"Handskizze",
"Anderes",
];
const TT_ORDER_FILE_TYPES = [
"order_internet" => "Bestellung Internet & Telefon",
"order_nextv" => "Bestellung nexTV",
"order_general" => "Bestellung Allgemein",
"order_project" => "Bestellung Projekt",
"order_pbx" => "Bestellung Telefonanlage",
"voicenumber_porting" => "Rufnummermitnahme",
"handover_report" => "Übergabe-Protokoll",
"sepa_form" => "Nur Einzugsermächtigung",
"emailjournal_customer" => "Mailverlauf mit Kunde",
"old_phone_contract" => "Telefonvertrag von Voranbieter",
"other" => "Sonstiges Dokument",
];
const TT_CABLE_COLORS = [
"rot" => [
"hex" => "FF0000",
"hexfg" => "FFFFFF",
"r" => 255,
"g" => 0,
"b" => 0,
"mark" => false
],
"gruen" => [
"hex" => "00FF00",
"hexfg" => "000000",
"r" => 0,
"g" => 255,
"b" => 0,
"mark" => false
],
"blau" => [
"hex" => "0000FF",
"hexfg" => "FFFFFF",
"r" => 0,
"g" => 0,
"b" => 255,
"mark" => false
],
"gelb" => [
"hex" => "FFFF00",
"hexfg" => "000000",
"r" => 255,
"g" => 255,
"b" => 0,
"mark" => false
],
"weiss" => [
"hex" => "FFFFFF",
"hexfg" => "000000",
"r" => 255,
"g" => 255,
"b" => 255,
"mark" => false
],
"natur" => [
"hex" => "FFFFCC",
"hexfg" => "000000",
"r" => 255,
"g" => 255,
"b" => 204,
"mark" => false
],
"grau" => [
"hex" => "888888",
"hexfg" => "FFFFFF",
"r" => 136,
"g" => 136,
"b" => 136,
"mark" => false
],
"braun" => [
"hex" => "A52A2A",
"hexfg" => "FFFFFF",
"r" => 165,
"g" => 42,
"b" => 42,
"mark" => false
],
"violett" => [
"hex" => "8800FF",
"hexfg" => "FFFFFF",
"r" => 136,
"g" => 0,
"b" => 255,
"mark" => false
],
"tuerkis" => [
"hex" => "00FFFF",
"hexfg" => "000000",
"r" => 0,
"g" => 255,
"b" => 255,
"mark" => false
],
"schwarz" => [
"hex" => "000000",
"hexfg" => "FFFFFF",
"r" => 0,
"g" => 0,
"b" => 0,
"mark" => false
],
"orange" => [
"hex" => "FF8800",
"hexfg" => "FFFFFF",
"r" => 255,
"g" => 136,
"b" => 0,
"mark" => false
],
"rosa" => [
"hex" => "FF0088",
"hexfg" => "FFFFFF",
"r" => 255,
"g" => 0,
"b" => 136,
"mark" => false
],
"rot-1R" => [
"hex" => "FF0000",
"hexfg" => "FFFFFF",
"r" => 255,
"g" => 0,
"b" => 0,
"mark" => true
],
"gruen-1R" => [
"hex" => "00FF00",
"hexfg" => "000000",
"r" => 0,
"g" => 255,
"b" => 0,
"mark" => true
],
"blau-1R" => [
"hex" => "0000FF",
"hexfg" => "FFFFFF",
"r" => 0,
"g" => 0,
"b" => 255,
"mark" => true
],
"gelb-1R" => [
"hex" => "FFFF00",
"hexfg" => "000000",
"r" => 255,
"g" => 255,
"b" => 0,
"mark" => true
],
"weiss-1R" => [
"hex" => "FFFFFF",
"hexfg" => "000000",
"r" => 255,
"g" => 255,
"b" => 255,
"mark" => true
],
"grau-1R" => [
"hex" => "888888",
"hexfg" => "FFFFFF",
"r" => 136,
"g" => 136,
"b" => 136,
"mark" => true
],
"braun-1R" => [
"hex" => "A52A2A",
"hexfg" => "FFFFFF",
"r" => 165,
"g" => 42,
"b" => 42,
"mark" => true
],
"violett-1R" => [
"hex" => "8800FF",
"hexfg" => "FFFFFF",
"r" => 136,
"g" => 0,
"b" => 255,
"mark" => true
],
"tuerkis-1R" => [
"hex" => "00FFFF",
"hexfg" => "000000",
"r" => 0,
"g" => 255,
"b" => 255,
"mark" => true
],
"schwarz-1R" => [
"hex" => "000000",
"hexfg" => "FFFFFF",
"r" => 0,
"g" => 0,
"b" => 0,
"mark" => true
],
"orange-1R" => [
"hex" => "FF8800",
"hexfg" => "FFFFFF",
"r" => 255,
"g" => 136,
"b" => 0,
"mark" => true
],
"rosa-1R" => [
"hex" => "FF0088",
"hexfg" => "FFFFFF",
"r" => 255,
"g" => 0,
"b" => 136,
"mark" => true
],
// gabocom colors
"Rot-Gelb" => [
"hex" => "FF0000",
"hexfg" => "FFFFFF",
"hex2" => "FFFF00",
"hexfg2" => "000000",
"r" => 255,
"g" => 0,
"b" => 0,
"r2" => 255,
"g2" => 255,
"b2" => 0,
"two-color" => true
],
"Rot-Gruen" => [
"hex" => "FF0000",
"hexfg" => "FFFFFF",
"hex2" => "00FF00",
"hexfg2" => "000000",
"r" => 255,
"g" => 0,
"b" => 0,
"r2" => 0,
"g2" => 255,
"b2" => 0,
"two-color" => true
],
"Rot-Blau" => [
"hex" => "FF0000",
"hexfg" => "FFFFFF",
"hex2" => "0000FF",
"hexfg2" => "FFFFFF",
"r" => 255,
"g" => 0,
"b" => 0,
"r2" => 0,
"g2" => 0,
"b2" => 255,
"two-color" => true
],
"Rot-Violett" => [
"hex" => "FF0000",
"hexfg" => "FFFFFF",
"hex2" => "8800FF",
"hexfg2" => "FFFFFF",
"r" => 255,
"g" => 0,
"b" => 0,
"r2" => 136,
"g2" => 0,
"b2" => 255,
"two-color" => true
],
"Rot-Grau" => [
"hex" => "FF0000",
"hexfg" => "FFFFFF",
"hex2" => "888888",
"hexfg2" => "FFFFFF",
"r" => 255,
"g" => 0,
"b" => 0,
"r2" => 136,
"g2" => 136,
"b2" => 136,
"two-color" => true
],
"Gelb-Blau" => [
"hex" => "FFFF00",
"hexfg" => "000000",
"hex2" => "0000FF",
"hexfg2" => "FFFFFF",
"r" => 255,
"g" => 255,
"b" => 0,
"r2" => 0,
"g2" => 0,
"b2" => 255,
"two-color" => true
],
"Gelb-Violett" => [
"hex" => "FFFF00",
"hexfg" => "000000",
"hex2" => "8800FF",
"hexfg2" => "FFFFFF",
"r" => 255,
"g" => 255,
"b" => 0,
"r2" => 136,
"g2" => 0,
"b2" => 255,
"two-color" => true
],
"Gelb-Grau" => [
"hex" => "FFFF00",
"hexfg" => "000000",
"hex2" => "888888",
"hexfg2" => "FFFFFF",
"r" => 255,
"g" => 255,
"b" => 0,
"r2" => 136,
"g2" => 136,
"b2" => 136,
"two-color" => true
],
"Gruen-Blau" => [
"hex" => "00FF00",
"hexfg" => "000000",
"hex2" => "0000FF",
"hexfg2" => "FFFFFF",
"r" => 0,
"g" => 255,
"b" => 0,
"r2" => 0,
"g2" => 0,
"b2" => 255,
"two-color" => true
],
"Gruen-Violett" => [
"hex" => "00FF00",
"hexfg" => "000000",
"hex2" => "8800FF",
"hexfg2" => "FFFFFF",
"r" => 0,
"g" => 255,
"b" => 0,
"r2" => 136,
"g2" => 0,
"b2" => 255,
"two-color" => true
],
"Gruen-Grau" => [
"hex" => "00FF00",
"hexfg" => "000000",
"hex2" => "888888",
"hexfg2" => "FFFFFF",
"r" => 0,
"g" => 255,
"b" => 0,
"r2" => 136,
"g2" => 136,
"b2" => 136,
"two-color" => true
],
"Braun-Blau" => [
"hex" => "A52A2A",
"hexfg" => "FFFFFF",
"hex2" => "0000FF",
"hexfg2" => "FFFFFF",
"r" => 165,
"g" => 42,
"b" => 42,
"r2" => 0,
"g2" => 0,
"b2" => 255,
"two-color" => true
],
"Braun-Violett" => [
"hex" => "A52A2A",
"hexfg" => "FFFFFF",
"hex2" => "8800FF",
"hexfg2" => "FFFFFF",
"r" => 165,
"g" => 42,
"b" => 42,
"r2" => 136,
"g2" => 0,
"b2" => 255,
"two-color" => true
],
"Braun-Grau" => [
"hex" => "A52A2A",
"hexfg" => "FFFFFF",
"hex2" => "888888",
"hexfg2" => "FFFFFF",
"r" => 165,
"g" => 42,
"b" => 42,
"r2" => 136,
"g2" => 136,
"b2" => 136,
"two-color" => true
],
"Braun-Gruen" => [
"hex" => "A52A2A",
"hexfg" => "FFFFFF",
"hex2" => "00FF00",
"hexfg2" => "000000",
"r" => 165,
"g" => 42,
"b" => 42,
"r2" => 0,
"g2" => 255,
"b2" => 0,
"two-color" => true
],
"Braun-Gelb" => [
"hex" => "A52A2A",
"hexfg" => "FFFFFF",
"hex2" => "FFFF00",
"hexfg2" => "000000",
"r" => 165,
"g" => 42,
"b" => 42,
"r2" => 255,
"g2" => 255,
"b2" => 0,
"two-color" => true
],
"Braun-Rot" => [
"hex" => "A52A2A",
"hexfg" => "FFFFFF",
"hex2" => "FF0000",
"hexfg2" => "FFFFFF",
"r" => 165,
"g" => 42,
"b" => 42,
"r2" => 255,
"g2" => 0,
"b2" => 0,
"two-color" => true
],
"Schwarz-Rot" => [
"hex" => "000000",
"hexfg" => "FFFFFF",
"hex2" => "FF0000",
"hexfg2" => "FFFFFF",
"r" => 0,
"g" => 0,
"b" => 0,
"r2" => 255,
"g2" => 0,
"b2" => 0,
"two-color" => true
],
"Schwarz-Gelb" => [
"hex" => "000000",
"hexfg" => "FFFFFF",
"hex2" => "FFFF00",
"hexfg2" => "000000",
"r" => 0,
"g" => 0,
"b" => 0,
"r2" => 255,
"g2" => 255,
"b2" => 0,
"two-color" => true
],
"Schwarz-Gruen" => [
"hex" => "000000",
"hexfg" => "FFFFFF",
"hex2" => "00FF00",
"hexfg2" => "000000",
"r" => 0,
"g" => 0,
"b" => 0,
"r2" => 0,
"g2" => 255,
"b2" => 0,
"two-color" => true
],
"Schwarz-Blau" => [
"hex" => "000000",
"hexfg" => "FFFFFF",
"hex2" => "0000FF",
"hexfg2" => "FFFFFF",
"r" => 0,
"g" => 0,
"b" => 0,
"r2" => 0,
"g2" => 0,
"b2" => 255,
"two-color" => true
],
"Schwarz-Violett" => [
"hex" => "000000",
"hexfg" => "FFFFFF",
"hex2" => "8800FF",
"hexfg2" => "000000",
"r" => 0,
"g" => 0,
"b" => 0,
"r2" => 136,
"g2" => 0,
"b2" => 255,
"two-color" => true
],
"Schwarz-Grau" => [
"hex" => "000000",
"hexfg" => "FFFFFF",
"hex2" => "888888",
"hexfg2" => "FFFFFF",
"r" => 0,
"g" => 0,
"b" => 0,
"r2" => 136,
"g2" => 136,
"b2" => 136,
"two-color" => true
],
"Schwarz-Braun" => [
"hex" => "000000",
"hexfg" => "FFFFFF",
"hex2" => "A52A2A",
"hexfg2" => "FFFFFF",
"r" => 0,
"g" => 0,
"b" => 0,
"r2" => 165,
"g2" => 42,
"b2" => 42,
"two-color" => true
]
];
// Upload settings
const MFUPLOAD_FILE_SAVE_PATH = BASEDIR . '/files'; // folder where files will be stored
const MFUPLOAD_ALLOWED_EXTENSIONS = 'jpg|jpeg|gif|png|pdf|doc.?|xls.?|txt|conf|svg|csv'; // allowed file extensions in regex format
const MFUPLOAD_ALLOWED_EXTENSIONS_STR = "jpg, png, gif, pdf, doc, xls, csv, txt, conf";
const MFUPLOAD_FILE_MAX_SIZE = 128 * 1024 * 1024; // Max filesize (128 MB)
const MFUPLOAD_DIRMODE = 0777;
const MFUPLOAD_FILEMODE = 0666;
const MFLOCALE_TIME = "de_AT.UTF-8";
const MFLOCALE_MONETARY = "de_AT.UTF-8";
const MFLOCALE_NUMERIC = "de_AT.UTF-8";
/*
* Maintainer / developer settings
*/
const MFUSEFANCYURLS = true; // to use urls in folder style
// If your database field names start with a prefix (like Customer_id), set this to true.
// Required when extending from mfBase classes (mfBaseController and mfBaseModel).
const MFMODEL_USEFIELDPREFIX = false;
// the default Controller to call. Without an action, calls index action.
const DEFAULT_ROUTE = "Dashboard";
// use mfLogin?
const MFUSELOGIN = true;
const MFSESSION = true;
// The name of your users table. Required by stock mfUser and mfLoginController
const MFUSERTABLE = "Worker";
const MFUSERTOKENTABLE = "WorkerToken";
// use mfMenu?
const MFUSEMENU = false;
// The name of your menu table. Required by mfMenu
const MFMENUTABLE = "mfMenu";
// change this to wkhtmltopdf-amd64 if your system supports 64 bit binaries
const WKHTMLTOPDF_BIN = LIBDIR . "/mvcfronk/mfWkhtmltopdf/bin/wkhtmltopdf-amd64";
//define("WKHTMLTOPDF_ARGS",'-q -s A4 --footer-right [page]/[topage]');
const WKHTMLTOPDF_ARGS = '-q -s A4 --enable-local-file-access';
// where to save PDF files
const PDFOUTPUTPATH = BASEDIR . "/var/temp";
const GIT_BIN_PATH = "/usr/bin/git";
const PDFTOTEXT_BIN_PATH = "/usr/bin/pdftotext";
const PDFUNITE_BIN_PATH = "/usr/bin/pdfunite";
const TT_KOLMISOFT_API_URL = "vportal.xxx.xx";
const TT_KOLMISOFT_API_KEY = "";
const TT_KOLMISOFT_API_USERNAME = "";