|
|
|
<?php
|
|
|
|
|
|
|
|
/* 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/. */
|
|
|
|
|
|
|
|
|
|
|
|
// 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");
|
|
|
|
define("DB_NAME", "accounthub");
|
|
|
|
define("DB_SERVER", "localhost");
|
|
|
|
define("DB_USER", "accounthub");
|
|
|
|
define("DB_PASS", "");
|
|
|
|
define("DB_CHARSET", "utf8");
|
|
|
|
|
|
|
|
define("SITE_TITLE", "AccountHub");
|
|
|
|
|
|
|
|
// Used to identify the system in OTP and other places
|
|
|
|
define("SYSTEM_NAME", "Netsyms SSO Demo");
|
|
|
|
|
|
|
|
// For supported values, see http://php.net/manual/en/timezones.php
|
|
|
|
define("TIMEZONE", "America/Denver");
|
|
|
|
|
|
|
|
// Allow or prevent users from logging in via the mobile app.
|
|
|
|
define("MOBILE_ENABLED", TRUE);
|
|
|
|
|
|
|
|
// Base URL for site links.
|
|
|
|
define('URL', 'http://localhost/accounthub');
|
|
|
|
|
|
|
|
// Use Captcheck on login screen
|
|
|
|
// https://captcheck.netsyms.com
|
|
|
|
define("CAPTCHA_ENABLED", FALSE);
|
|
|
|
define('CAPTCHA_SERVER', 'https://captcheck.netsyms.com');
|
|
|
|
|
|
|
|
// See lang folder for language options
|
|
|
|
define('LANGUAGE', "en");
|
|
|
|
|
|
|
|
// List of available applications, icons, and other info.
|
|
|
|
// Used in the mobile app and in the "dock" in AccountHub.
|
|
|
|
define('EXTERNAL_APPS', [
|
|
|
|
"accounthub" => [
|
|
|
|
"url" => "/accounthub",
|
|
|
|
"mobileapi" => "/mobile/index.php",
|
|
|
|
"icon" => "/static/img/logo.svg",
|
|
|
|
"title" => SITE_TITLE
|
|
|
|
],
|
|
|
|
"qwikclock" => [
|
|
|
|
"url" => "/qwikclock",
|
|
|
|
"mobileapi" => "/mobile/index.php",
|
|
|
|
"icon" => "/static/img/logo.svg",
|
|
|
|
"title" => "QwikClock",
|
|
|
|
"station_features" => [
|
|
|
|
"qwikclock_punchinout",
|
|
|
|
"qwikclock_myshifts",
|
|
|
|
"qwikclock_jobs"
|
|
|
|
],
|
|
|
|
"card" => [
|
|
|
|
"color" => "blue",
|
|
|
|
"string" => "Punch in and check work schedule"
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"binstack" => [
|
|
|
|
"url" => "/binstack",
|
|
|
|
"mobileapi" => "/mobile/index.php",
|
|
|
|
"icon" => "/static/img/logo.svg",
|
|
|
|
"title" => "BinStack",
|
|
|
|
"card" => [
|
|
|
|
"color" => "green",
|
|
|
|
"string" => "Manage physical items"
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"newspen" => [
|
|
|
|
"url" => "/newspen",
|
|
|
|
"mobileapi" => "/mobile/index.php",
|
|
|
|
"icon" => "/static/img/logo.svg",
|
|
|
|
"title" => "NewsPen",
|
|
|
|
"card" => [
|
|
|
|
"color" => "purple",
|
|
|
|
"string" => "Create and publish e-newsletters"
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"managepanel" => [
|
|
|
|
"url" => "/managepanel",
|
|
|
|
"mobileapi" => "/mobile/index.php",
|
|
|
|
"icon" => "/static/img/logo.svg",
|
|
|
|
"title" => "ManagePanel",
|
|
|
|
"card" => [
|
|
|
|
"color" => "brown",
|
|
|
|
"string" => "Manage users, permissions, and security"
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"nickelbox" => [
|
|
|
|
"url" => "/nickelbox",
|
|
|
|
"mobileapi" => "/mobile/index.php",
|
|
|
|
"icon" => "/static/img/logo.svg",
|
|
|
|
"title" => "NickelBox",
|
|
|
|
"card" => [
|
|
|
|
"color" => "light-green",
|
|
|
|
"text" => "dark",
|
|
|
|
"string" => "Checkout customers and manage online orders"
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"sitewriter" => [
|
|
|
|
"url" => "/sitewriter",
|
|
|
|
"mobileapi" => "/mobile/index.php",
|
|
|
|
"icon" => "/static/img/logo.svg",
|
|
|
|
"title" => "SiteWriter",
|
|
|
|
"card" => [
|
|
|
|
"color" => "light-blue",
|
|
|
|
"string" => "Build websites and manage contact form messages"
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"taskfloor" => [
|
|
|
|
"url" => "/taskfloor",
|
|
|
|
"mobileapi" => "/mobile/index.php",
|
|
|
|
"icon" => "/static/img/logo.svg",
|
|
|
|
"title" => "TaskFloor",
|
|
|
|
"station_features" => [
|
|
|
|
"taskfloor_viewtasks",
|
|
|
|
"taskfloor_viewmessages"
|
|
|
|
],
|
|
|
|
"card" => [
|
|
|
|
"color" => "blue-grey",
|
|
|
|
"string" => "Track jobs and assigned tasks"
|
|
|
|
]
|
|
|
|
],
|
|
|
|
]);
|
|
|
|
|
|
|
|
// Used for notification timestamp display.
|
|
|
|
define("DATETIME_FORMAT", "M j, g:i a");
|
|
|
|
define("TIME_FORMAT", "g:i");
|
|
|
|
|
|
|
|
|
|
|
|
// Email settings for receiving admin alerts.
|
|
|
|
define("USE_SMTP", TRUE); // if FALSE, will use PHP's mail() instead
|
|
|
|
define("ADMIN_EMAIL", "");
|
|
|
|
define("FROM_EMAIL", "alert-noreply@apps.biz.netsyms.com");
|
|
|
|
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);
|
|
|
|
|
|
|
|
// 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
|
|
|
|
// http://stackoverflow.com/a/34166252 for reasons why forcing passwords
|
|
|
|
// like CaPs45$% is not actually a great idea.
|
|
|
|
// Encourage users to use 2-factor auth whenever possible.
|
|
|
|
define("MIN_PASSWORD_LENGTH", 8);
|
|
|
|
|
|
|
|
// Maximum number of rows to get in a query.
|
|
|
|
define("QUERY_LIMIT", 1000);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define("FOOTER_TEXT", "");
|
|
|
|
define("COPYRIGHT_NAME", "Netsyms Technologies");
|
|
|
|
//////////////////////////////////////////////////////////////
|