PPDCampPortal/settings.template.php

103 lines
3.4 KiB
PHP
Raw Permalink Normal View History

2017-04-24 17:13:08 -06:00
<?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/.
*/
2018-12-20 23:54:25 -07:00
// Settings for the app.
// Copy to settings.php and customize.
2017-04-24 17:13:08 -06:00
$SETTINGS = [
2018-12-20 23:54:25 -07:00
// Whether to output debugging info like PHP notices, warnings,
// and stacktraces.
// Turning this on in production is a security risk and can sometimes break
// things, such as JSON output where extra content is not expected.
"debug" => false,
2018-12-20 23:54:25 -07:00
// Database connection settings
// See http://medoo.in/api/new for info
"database" => [
"type" => "mysql",
"name" => "campportal",
"server" => "localhost",
2018-12-22 22:12:55 -07:00
"user" => "",
"password" => "",
"charset" => "utf8"
],
2018-12-20 23:54:25 -07:00
// Name of the app.
"site_title" => "Camp Portal",
2019-05-30 21:38:44 -06:00
// Set to true to disable registration.
"disable_registration" => false,
"camp_days" => [
"Mo" => "Monday",
"Tu" => "Tuesday",
"We" => "Wednesday"
],
"prices" => [
"camp" => 50.0,
"tshirt" => 10.0,
"adult_volunteer_daily_discount" => 10.0,
2022-04-20 14:15:24 -06:00
"add_stripe_fees" => true,
// Set to false to make shirts always free, set to a number to make them
// free for people who work at least that many days
"youth_tshirt" => false,
"adult_tshirt" => 3,
// Set whether adults get free shirts when they're not bringing Cub Scouts,
// regardless of how many days they volunteer
"alone_adult_free_tshirt" => true
],
2019-05-30 21:38:44 -06:00
// Stripe keys for payment processing
2018-12-22 22:12:55 -07:00
"stripe" => [
"pubkey" => "",
"seckey" => ""
],
2018-12-20 23:54:25 -07:00
// Settings for connecting to the AccountHub server.
"accounthub" => [
2018-12-20 23:54:25 -07:00
// URL for the API endpoint
"api" => "http://localhost/accounthub/api/",
2018-12-20 23:54:25 -07:00
// URL of the home page
"home" => "http://localhost/accounthub/home.php",
2018-12-20 23:54:25 -07:00
// API key
"key" => "123"
],
2018-12-22 22:12:55 -07:00
"email" => [
"host" => "",
"auth" => true,
"secure" => "tls",
"port" => 587,
"user" => "",
"password" => "",
"fromaddress" => "",
"fromname" => "",
"notification_to" => ""
],
2018-12-20 23:54:25 -07:00
// For supported values, see http://php.net/manual/en/timezones.php
"timezone" => "America/Denver",
2018-12-20 23:54:25 -07:00
// Use Captcheck on login screen to slow down bots
// https://captcheck.netsyms.com
"captcha" => [
"enabled" => false,
"server" => "https://captcheck.netsyms.com"
],
2018-12-26 16:32:43 -07:00
// List of required user permissions to access this app.
"permissions" => [
],
2019-03-01 23:41:10 -07:00
// List of permissions required for API access. Remove to use the value of
// "permissions" instead.
"api_permissions" => [
],
2018-12-20 23:54:25 -07:00
// For supported values, see http://php.net/manual/en/timezones.php
"timezone" => "America/Denver",
2018-12-20 23:54:25 -07:00
// Language to use for localization. See langs folder to add a language.
"language" => "en",
2018-12-20 23:54:25 -07:00
// Shown in the footer of all the pages.
"footer_text" => "",
2018-12-20 23:54:25 -07:00
// Also shown in the footer, but with "Copyright <current_year>" in front.
"copyright" => "Netsyms Technologies",
2018-12-20 23:54:25 -07:00
// Base URL for building links relative to the location of the app.
// Only used when there's no good context for the path.
// The default is almost definitely fine.
"url" => "."
2018-12-20 23:54:25 -07:00
];