forked from City-of-Bloomington/rosehill
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfiguration.inc.default
More file actions
142 lines (128 loc) · 4.61 KB
/
configuration.inc.default
File metadata and controls
142 lines (128 loc) · 4.61 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?php
/**
* Used to keep sessions on the same webserver seperate;
*/
define('APPLICATION_NAME','application_name');
/**
* Where on the filesystem this application is installed
*/
define('APPLICATION_HOME','/var/www/sites/application_name');
/**
* Where on the filesystem the framework is installed.
*/
define('FRAMEWORK',APPLICATION_HOME.'/libraries/framework');
/**
* This needs to point to the library directory inside your
* installation of the ZendFramework
* http://framework.zend.com
*/
define('ZEND',APPLICATION_HOME.'/libraries/ZendFramework/library');
ini_set('include_path','.'.PATH_SEPARATOR.ZEND);
require_once 'Zend/Loader/Autoloader.php';
Zend_Loader_Autoloader::getInstance();
/**
* The URL to get to this site
* Do NOT use a trailing slash
*/
define('BASE_URI' , '/burials');
define('BASE_HOST', isset($_SERVER['HTTP_X_FORWARDED_HOST'])
? $_SERVER['HTTP_X_FORWARDED_HOST']
: 'tarantula.bloomington.in.gov');
define('BASE_URL' , "http://".BASE_HOST.BASE_URI);
/**
* Used when there's an error on the site. The Framework will
* print out a nice error message, encouraging users to report any problems
* See: FRAMEWORK/ITSFunctions.inc
*
* This is also the default Admin user information that gets added to the database
*/
define('ADMINISTRATOR_NAME','Site Admin');
define('ADMINISTRATOR_EMAIL','admin@servername.com');
/**
* Set how we want to handle errors
* PHP_DEFAULT - do whatever's configured in php.ini
*
* If you do not define error handling to PHP_DEFAULT
* the custom error handlers kick in. All of the custom error display
* frunctions are in FRAMEWORK/globalFunctions.inc. The custom error
* function decide what to do based on $ERROR_REPORING array values
*
* PRETTY_PRINT - Display a message in the browser
* EMAIL_ADMIN - email the Administrator
* EMAIL_USER - email the logged in user
* SKIDDER - post errors to a Skidder server (see config below)
*/
define('ERROR_REPORTING','PHP_DEFAULT');
//define('ERROR_REPORTING','CUSTOM');
//$ERROR_REPORTING = array('PRETTY_PRINT','SKIDDER');
/**
* Skidder is a web service for error notifications. Error reporting supports
* posting errors to a Skidder server. You must register for an application_id
* on the skidder server you want to post errors to.
*/
//define('SKIDDER_URL','http://localhost/skidder/home.php');
//define('SKIDDER_APPLICATION_ID',);
/**
* Database Setup
* Refer to the PDO documentation for DSN sytnax for your database type
* http://www.php.net/manual/en/pdo.drivers.php
*/
define('DB_ADAPTER','Pdo_Mysql');
define('DB_HOST','localhost');
define('DB_NAME',APPLICATION_NAME);
define('DB_USER',APPLICATION_NAME);
define('DB_PASS','password');
/**
* Directory Configuration
*
* This is required in order to use the LDAP or ADS authentication
* If you do not want to use external authentication, you can comment this out
*/
// Example for ADS style authentication
define('DIRECTORY_SERVER','ldaps://example.org:636');
define('DIRECTORY_BASE_DN','OU=Department,DC=example,DC=org');
define('DIRECTORY_USERNAME_ATTRIBUTE', 'CN');
define('DIRECTORY_USER_BINDING','{username}@bloomington.in.gov');
define('DIRECTORY_ADMIN_BINDING', 'admin@bloomington.in.gov');
define('DIRECTORY_ADMIN_PASS','password');
// Example for LDAP style authentication
//define('DIRECTORY_SERVER','ldaps://example.org:636');
//define('DIRECTORY_BASE_DN','ou=people,o=ldap.domain.somewhere');
//define('DIRECTORY_USERNAME_ATTRIBUTE', 'uid');
//define('DIRECTORY_USER_BINDING','uid={username},'.DIRECTORY_BASE_DN);
//define('DIRECTORY_ADMIN_BINDING', 'uid=admin,'.DIRECTORY_BASE_DN);
//define('DIRECTORY_ADMIN_PASS','password');
define('YUI', BASE_URI.'/js/yui3/build');
/**
* Import global functions that we use for many applications we write
*/
include FRAMEWORK.'/globalFunctions.php';
spl_autoload_register('autoload');
/**
* Session Startup
* Don't start a session for CLI usage.
* We only want sessions when PHP code is executed from the webserver
*/
if (!defined('STDIN')) {
ini_set('session.save_path',APPLICATION_HOME.'/data/sessions');
session_start();
}
/**
* CAS authentication http://www.jasig.org/cas
*
* https://wiki.jasig.org/display/CASC/phpCAS
*
* phpCAS is a PHP library for handling the calls to the CAS service
* It is the official library, part of the Jasig CAS project
*/
define('CAS', APPLICATION_HOME.'/libraries/phpCAS');
define('CAS_SERVER','cas.somewhere.org');
define('CAS_URI','cas');
/**
* Load the Zend_Acl
* Access control is going to handled using the Zend_Acl
* We only need to load it, if someone is logged in
*/
if (isset($_SESSION['USER'])) {
include APPLICATION_HOME.'/access_control.inc';
}