| 
									
										
										
										
											2017-04-14 19:05:58 -06:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-16 13:27:09 -07:00
										 |  |  | /* This Source Code Form is subject to the terms of the Mozilla Public | 
					
						
							|  |  |  |  * License, v. 2.0. If a copy of the MPL was not distributed with this | 
					
						
							|  |  |  |  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-14 19:05:58 -06:00
										 |  |  | // Whether to show debugging data in output.
 | 
					
						
							|  |  |  | // DO NOT SET TO TRUE IN PRODUCTION!!!
 | 
					
						
							|  |  |  | define("DEBUG", false); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // Database connection settings
 | 
					
						
							|  |  |  | // See http://medoo.in/api/new for info
 | 
					
						
							|  |  |  | define("DB_TYPE", "mysql"); | 
					
						
							| 
									
										
										
										
											2017-11-16 23:50:03 -07:00
										 |  |  | define("DB_NAME", "accounthub"); | 
					
						
							| 
									
										
										
										
											2017-04-14 19:05:58 -06:00
										 |  |  | define("DB_SERVER", "localhost"); | 
					
						
							| 
									
										
										
										
											2017-11-16 23:50:03 -07:00
										 |  |  | define("DB_USER", "accounthub"); | 
					
						
							| 
									
										
										
										
											2017-04-14 19:05:58 -06:00
										 |  |  | define("DB_PASS", ""); | 
					
						
							|  |  |  | define("DB_CHARSET", "utf8"); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-16 23:50:03 -07:00
										 |  |  | define("LDAP_ENABLED", FALSE); | 
					
						
							| 
									
										
										
										
											2017-04-29 02:35:49 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | // See https://github.com/ldaptools/ldaptools/blob/master/docs/en/reference/Main-Configuration.md
 | 
					
						
							|  |  |  | // for info on the LDAP config
 | 
					
						
							|  |  |  | /* | 
					
						
							|  |  |  |  * Begin LDAP Configuration | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | use LdapTools\Configuration; | 
					
						
							|  |  |  | use LdapTools\DomainConfiguration; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $ldap_config = new Configuration(); | 
					
						
							|  |  |  | $ldap_config_domain = (new DomainConfiguration('example')) | 
					
						
							|  |  |  |         ->setDomainName("example.com") | 
					
						
							|  |  |  |         ->setServers(['192.168.25.131']) | 
					
						
							|  |  |  |         ->setLazyBind(TRUE) | 
					
						
							| 
									
										
										
										
											2017-05-13 16:17:58 -06:00
										 |  |  |         ->setUsername("admin-account") | 
					
						
							| 
									
										
										
										
											2017-04-29 02:35:49 -06:00
										 |  |  |         ->setPassword("password") | 
					
						
							|  |  |  |         ->setUseTls(TRUE); | 
					
						
							|  |  |  | $ldap_config->addDomain($ldap_config_domain); | 
					
						
							|  |  |  | /* | 
					
						
							|  |  |  |  * End LDAP Configuration | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2017-04-14 19:05:58 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-21 00:45:30 -06:00
										 |  |  | define("SITE_TITLE", "AccountHub"); | 
					
						
							| 
									
										
										
										
											2017-04-14 19:05:58 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-21 00:58:25 -06:00
										 |  |  | // Which pages to show the app icon on:
 | 
					
						
							|  |  |  | // index, app, both, none
 | 
					
						
							|  |  |  | define("SHOW_ICON", "both"); | 
					
						
							|  |  |  | // Where to put the icon: top or menu
 | 
					
						
							|  |  |  | // Overridden to 'menu' if MENU_BAR_STYLE is 'fixed'.
 | 
					
						
							|  |  |  | define("ICON_POSITION", "menu"); | 
					
						
							|  |  |  | // App menu bar style: fixed or static
 | 
					
						
							|  |  |  | define("MENU_BAR_STYLE", "fixed"); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-14 21:40:24 -06:00
										 |  |  | // Used to identify the system in OTP and other places
 | 
					
						
							|  |  |  | define("SYSTEM_NAME", "Netsyms SSO Demo"); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-14 19:05:58 -06:00
										 |  |  | // For supported values, see http://php.net/manual/en/timezones.php
 | 
					
						
							|  |  |  | define("TIMEZONE", "America/Denver"); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-16 17:36:42 -06:00
										 |  |  | // Allow or prevent users from logging in via the mobile app.
 | 
					
						
							|  |  |  | define("MOBILE_ENABLED", TRUE); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-14 19:05:58 -06:00
										 |  |  | // Base URL for site links.
 | 
					
						
							| 
									
										
										
										
											2017-07-21 02:20:56 -06:00
										 |  |  | define('URL', 'http://localhost/accounthub'); | 
					
						
							| 
									
										
										
										
											2017-04-14 19:05:58 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-29 02:35:49 -06:00
										 |  |  | // Use reCAPTCHA on login screen
 | 
					
						
							|  |  |  | // https://www.google.com/recaptcha/
 | 
					
						
							|  |  |  | define("RECAPTCHA_ENABLED", FALSE); | 
					
						
							|  |  |  | define('RECAPTCHA_SITE_KEY', ''); | 
					
						
							|  |  |  | define('RECAPTCHA_SECRET_KEY', ''); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-05-13 16:17:58 -06:00
										 |  |  | // API URL and index URL for TaskFloor
 | 
					
						
							| 
									
										
										
										
											2017-05-30 13:24:46 -06:00
										 |  |  | define('TASKFLOOR_API', 'http://localhost/taskfloor/api.php'); | 
					
						
							|  |  |  | define('TASKFLOOR_HOME', '/taskfloor/app.php'); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | define('INVENTORY_HOME', '/inventory/app.php'); | 
					
						
							| 
									
										
										
										
											2017-05-13 16:17:58 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-19 00:37:53 -06:00
										 |  |  | define('QWIKCLOCK_API', 'http://localhost/qwikclock/api.php'); | 
					
						
							| 
									
										
										
										
											2017-06-19 00:54:49 -06:00
										 |  |  | define('QWIKCLOCK_HOME', '/qwikclock/app.php'); | 
					
						
							| 
									
										
										
										
											2017-06-19 00:37:53 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-14 21:40:24 -06:00
										 |  |  | // See lang folder for language options
 | 
					
						
							|  |  |  | define('LANGUAGE', "en_us"); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-24 00:32:33 -06:00
										 |  |  | // List of available applications, icons, and other info.
 | 
					
						
							| 
									
										
										
										
											2017-07-21 00:45:30 -06:00
										 |  |  | // Used in the mobile app and in the "dock" in AccountHub.
 | 
					
						
							| 
									
										
										
										
											2017-06-24 00:32:33 -06:00
										 |  |  | define('EXTERNAL_APPS', [ | 
					
						
							| 
									
										
										
										
											2017-07-21 02:20:56 -06:00
										 |  |  |     "accounthub" => [ | 
					
						
							|  |  |  |         "url" => "http://localhost/accounthub", | 
					
						
							|  |  |  |         "mobileapi" => "/mobile/index.php", | 
					
						
							|  |  |  |         "icon" => "/static/img/logo.svg", | 
					
						
							|  |  |  |         "title" => SITE_TITLE | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2017-11-16 23:50:03 -07:00
										 |  |  |     "binstack" => [ | 
					
						
							|  |  |  |         "url" => "http://localhost/inventory", | 
					
						
							|  |  |  |         "mobileapi" => "/mobile/index.php", | 
					
						
							|  |  |  |         "icon" => "/static/img/logo.svg", | 
					
						
							|  |  |  |         "title" => "BinStack" | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2017-06-24 00:32:33 -06:00
										 |  |  |     "taskfloor" => [ | 
					
						
							|  |  |  |         "url" => "http://localhost/taskfloor", | 
					
						
							| 
									
										
										
										
											2017-06-29 04:02:15 -06:00
										 |  |  |         "mobileapi" => "/mobile/index.php", | 
					
						
							| 
									
										
										
										
											2017-06-24 00:32:33 -06:00
										 |  |  |         "icon" => "/static/img/logo.svg", | 
					
						
							| 
									
										
										
										
											2017-12-20 17:37:00 -07:00
										 |  |  |         "title" => "TaskFloor", | 
					
						
							|  |  |  |         "station_features" => [ | 
					
						
							|  |  |  |             "taskfloor_viewtasks", | 
					
						
							|  |  |  |             "taskfloor_viewmessages" | 
					
						
							|  |  |  |         ] | 
					
						
							| 
									
										
										
										
											2017-06-24 00:32:33 -06:00
										 |  |  |     ], | 
					
						
							|  |  |  |     "qwikclock" => [ | 
					
						
							|  |  |  |         "url" => "http://localhost/qwikclock", | 
					
						
							| 
									
										
										
										
											2017-06-29 04:02:15 -06:00
										 |  |  |         "mobileapi" => "/mobile/index.php", | 
					
						
							| 
									
										
										
										
											2017-06-24 00:32:33 -06:00
										 |  |  |         "icon" => "/static/img/logo.svg", | 
					
						
							| 
									
										
										
										
											2017-12-20 17:37:00 -07:00
										 |  |  |         "title" => "QwikClock", | 
					
						
							|  |  |  |         "station_features" => [ | 
					
						
							|  |  |  |             "qwikclock_punchinout", | 
					
						
							|  |  |  |             "qwikclock_myshifts" | 
					
						
							|  |  |  |         ] | 
					
						
							| 
									
										
										
										
											2017-06-24 00:32:33 -06:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2017-07-21 00:45:30 -06:00
										 |  |  |     "managepanel" => [ | 
					
						
							|  |  |  |         "url" => "http://localhost/managepanel", | 
					
						
							|  |  |  |         "mobileapi" => "/mobile/index.php", | 
					
						
							|  |  |  |         "icon" => "/static/img/logo.svg", | 
					
						
							|  |  |  |         "title" => "ManagePanel" | 
					
						
							| 
									
										
										
										
											2017-06-24 00:32:33 -06:00
										 |  |  |     ] | 
					
						
							|  |  |  | ]); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-21 21:01:02 -06:00
										 |  |  | // Email settings for receiving admin alerts.
 | 
					
						
							|  |  |  | define("USE_SMTP", TRUE); // if FALSE, will use PHP's mail() instead
 | 
					
						
							|  |  |  | define("ADMIN_EMAIL", ""); | 
					
						
							| 
									
										
										
										
											2017-07-21 00:45:30 -06:00
										 |  |  | define("FROM_EMAIL", "alert-noreply@apps.biz.netsyms.com"); | 
					
						
							| 
									
										
										
										
											2017-06-21 21:01:02 -06:00
										 |  |  | define("SMTP_HOST", ""); | 
					
						
							|  |  |  | define("SMTP_AUTH", true); | 
					
						
							|  |  |  | define("SMTP_PORT", 587); | 
					
						
							|  |  |  | define("SMTP_SECURE", 'tls'); | 
					
						
							|  |  |  | define("SMTP_USER", ""); | 
					
						
							|  |  |  | define("SMTP_PASS", ""); | 
					
						
							|  |  |  | define("SMTP_ALLOW_INVALID_CERTIFICATE", TRUE); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-16 02:05:18 -06:00
										 |  |  | // Minimum length for new passwords
 | 
					
						
							|  |  |  | // The system checks new passwords against the 500 worst passwords and rejects
 | 
					
						
							|  |  |  | // any matches.
 | 
					
						
							|  |  |  | // If you want to have additional password requirements, go edit action.php.
 | 
					
						
							|  |  |  | // However, all that does is encourage people to use the infamous 
 | 
					
						
							|  |  |  | // "post-it password manager".  See also https://xkcd.com/936/ and
 | 
					
						
							| 
									
										
										
										
											2017-07-21 00:45:30 -06:00
										 |  |  | // http://stackoverflow.com/a/34166252 for reasons why forcing passwords
 | 
					
						
							| 
									
										
										
										
											2017-04-16 02:05:18 -06:00
										 |  |  | // like CaPs45$% is not actually a great idea.
 | 
					
						
							|  |  |  | // Encourage users to use 2-factor auth whenever possible.
 | 
					
						
							|  |  |  | define("MIN_PASSWORD_LENGTH", 8); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-14 19:05:58 -06:00
										 |  |  | // Maximum number of rows to get in a query.
 | 
					
						
							| 
									
										
										
										
											2017-04-16 02:05:18 -06:00
										 |  |  | define("QUERY_LIMIT", 1000); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-16 13:27:09 -07:00
										 |  |  | define("FOOTER_TEXT", ""); | 
					
						
							| 
									
										
										
										
											2017-04-16 02:05:18 -06:00
										 |  |  | define("COPYRIGHT_NAME", "Netsyms Technologies"); | 
					
						
							| 
									
										
										
										
											2017-04-29 02:35:49 -06:00
										 |  |  | //////////////////////////////////////////////////////////////
 |