-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.sample.php
66 lines (56 loc) · 2.02 KB
/
config.sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
* This file parses the configuration and connection details for the catalog database.
*
* @package UNL_UCBCN
* @author bbieber
*/
function autoload($class)
{
$class = str_replace(array('_', '\\'), '/', $class);
include $class . '.php';
}
spl_autoload_register('autoload');
set_include_path(
__DIR__ . '/src' . PATH_SEPARATOR
. __DIR__ . '/vendor/php' . PATH_SEPARATOR
. __DIR__ . '/vendor/unl_submodules/RegExpRouter/src'
);
require __DIR__ . '/vendor/composer/autoload.php';
ini_set('display_errors', true);
error_reporting(E_ALL);
UNL\UCBCN::$main_calendar_id = 1;
UNL\UCBCN\Frontend\Controller::$url = '/';
UNL\UCBCN\Frontend\Controller::$manager_url = '/manager/';
UNL\UCBCN\Manager\Controller::$url = "/manager/";
UNL\UCBCN\ActiveRecord\Database::setDbSettings(
array(
'host' => 'localhost',
'user' => 'events',
'password' => 'password',
'dbname' => 'events',
));
UNL\UCBCN::$defaultTimezone = 'America/Chicago';
UNL\UCBCN::setTimezoneOptions(
array(
'Eastern' => 'America/New_York',
'Central' => 'America/Chicago',
'Mountain' => 'America/Denver',
'Arizona' => 'America/Phoenix',
'Pacific' => 'America/Los_Angeles'
)
);
// CAS Auth Configuration
UNL\UCBCN\Manager\Auth::$eventsAuthSessionName = 'DEV_EVENTS_AUTH_SESSION_NAME';
UNL\UCBCN\Manager\Auth::$certPath = '/etc/pki/tls/cert.pem'; // Set this to false for local development
UNL\UCBCN\Manager\Auth::$directory_url = 'https://directory.unl.edu/';
// API v2 allowed cors domains regex
$api_v2_cors_allowed_domains_regex = array('/127\.0\.0\.1/', '/https:\/\/[a-zA-Z0-9\-_\.]+\.unl\.edu.*/');
// Site Notice
$siteNotice = new stdClass();
$siteNotice->display = false;
$siteNotice->noticePath = 'dcf-notice';
$siteNotice->containerID = 'dcf-main';
$siteNotice->type = 'dcf-notice-info';
$siteNotice->title = 'Maintenance Notice';
$siteNotice->message = 'We will be performing site maintenance on February 7th from 4:30 to 5:00 pm CST. This site may not be available during this time.';