forked from Business/AccountHub
Make settings.php an array, not a bunch of defines
parent
f1a85f47fd
commit
c179ed7ebb
@ -1,47 +1,34 @@
|
||||
<?php
|
||||
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
/*
|
||||
* 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", "app");
|
||||
define("DB_SERVER", "localhost");
|
||||
define("DB_USER", "app");
|
||||
define("DB_PASS", "");
|
||||
define("DB_CHARSET", "utf8");
|
||||
|
||||
// Name of the app.
|
||||
define("SITE_TITLE", "Web App Template");
|
||||
|
||||
|
||||
// URL of the AccountHub API endpoint
|
||||
define("PORTAL_API", "http://localhost/accounthub/api/");
|
||||
// URL of the AccountHub home page
|
||||
define("PORTAL_URL", "http://localhost/accounthub/home.php");
|
||||
// AccountHub API Key
|
||||
define("PORTAL_KEY", "123");
|
||||
|
||||
// For supported values, see http://php.net/manual/en/timezones.php
|
||||
define("TIMEZONE", "America/Denver");
|
||||
|
||||
// Base URL for site links.
|
||||
define('URL', '.');
|
||||
|
||||
// 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_us");
|
||||
|
||||
|
||||
define("FOOTER_TEXT", "");
|
||||
define("COPYRIGHT_NAME", "Netsyms Technologies");
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
$SETTINGS = [
|
||||
"debug" => false,
|
||||
"database" => [
|
||||
"type" => "mysql",
|
||||
"name" => "app",
|
||||
"server" => "localhost",
|
||||
"user" => "app",
|
||||
"password" => "",
|
||||
"charset" => "utf8"
|
||||
],
|
||||
"site_title" => "Web App Template",
|
||||
"accounthub" => [
|
||||
"api" => "http://localhost/accounthub/api/",
|
||||
"home" => "http://localhost/accounthub/home.php",
|
||||
"key" => "123"
|
||||
],
|
||||
"timezone" => "America/Denver",
|
||||
"captcha" => [
|
||||
"enabled" => false,
|
||||
"server" => "https://captcheck.netsyms.com"
|
||||
],
|
||||
"language" => "en",
|
||||
"footer_text" => "",
|
||||
"copyright" => "Netsyms Technologies",
|
||||
"url" => "."
|
||||
];
|
Loading…
Reference in New Issue