Skip to content
Newer
Older
100644 160 lines (140 sloc) 4.87 KB
f826e17 @inghamn Initial Import
inghamn authored
1 <?php
2 /**
3 * Displayed in the banner
4 */
5 define('APPLICATION_NAME','application_name');
6
7 /**
8 * Where on the filesystem this application is installed
9 */
10 define('APPLICATION_HOME','/var/www/sites/application_name');
11
12 /**
13 * The URL to get to this site
14 * Do NOT use a trailing slash
15 */
16 define('BASE_URL','http://localhost/application_name');
17 define('BASE_URI','/application_name');
18
19
20 /**
21 * Where on the filesystem the framework is installed.
22 */
23 define('FRAMEWORK',APPLICATION_HOME.'/libraries/framework');
24
25 /**
26 * This needs to point to the library directory inside your
27 * installation of the ZendFramework
28 * http://framework.zend.com
29 */
30 define('ZEND',APPLICATION_HOME.'/libraries/ZendFramework/library');
31
32
33 /**
34 * Used when there's an error on the site. The Framework will
35 * print out a nice error message, encouraging users to report any problems
36 * See: FRAMEWORK/ITSFunctions.inc
37 *
38 * This is also the default Admin user information that gets added to the database
39 */
40 define('ADMINISTRATOR_NAME','Site Admin');
41 define('ADMINISTRATOR_EMAIL','admin@servername.com');
42
43 /**
44 * Set how we want to handle errors
45 * PHP_DEFAULT - do whatever's configured in php.ini
46 *
47 * If you do not define error handling to PHP_DEFAULT
48 * the custom error handlers kick in. All of the custom error display
49 * frunctions are in FRAMEWORK/globalFunctions.inc. The custom error
50 * function decide what to do based on $ERROR_REPORING array values
51 *
52 * PRETTY_PRINT - Display a message in the browser
53 * EMAIL_ADMIN - email the Administrator
54 * EMAIL_USER - email the logged in user
55 * SKIDDER - post errors to a Skidder server (see config below)
56 */
57 define('ERROR_REPORTING','PHP_DEFAULT');
58 //define('ERROR_REPORTING','CUSTOM');
59 //$ERROR_REPORTING = array('PRETTY_PRINT','SKIDDER');
60
61 /**
62 * Skidder is a web service for error notifications. Error reporting supports
63 * posting errors to a Skidder server. You must register for an application_id
64 * on the skidder server you want to post errors to.
65 */
082a5f4 @inghamn Updated to work with the latest version of Skidder
inghamn authored
66 //define('SKIDDER_URL','https://localhost/skidder/');
f826e17 @inghamn Initial Import
inghamn authored
67 //define('SKIDDER_APPLICATION_ID',);
68
69 /**
70 * Database Setup
71 * Refer to the PDO documentation for DSN sytnax for your database type
72 * http://www.php.net/manual/en/pdo.drivers.php
73 */
74 define('DB_ADAPTER','Pdo_Mysql');
75 define('DB_HOST','localhost');
76 define('DB_NAME',APPLICATION_NAME);
77 define('DB_USER',APPLICATION_NAME);
78 define('DB_PASS','password');
79
80 /**
81 * Directory Configuration
82 *
83 * This is required in order to use the LDAP or ADS authentication
84 * If you do not want to use external authentication, you can comment this out
85 */
86 // Example for ADS style authentication
87 define('DIRECTORY_SERVER','ldaps://example.org:636');
88 define('DIRECTORY_BASE_DN','OU=Department,DC=example,DC=org');
89 define('DIRECTORY_USERNAME_ATTRIBUTE', 'CN');
90 define('DIRECTORY_USER_BINDING','{username}@example.org');
91 define('DIRECTORY_ADMIN_BINDING', 'admin@example.org');
92 define('DIRECTORY_ADMIN_PASS','password');
93 // Example for LDAP style authentication
94 //define('DIRECTORY_SERVER','ldaps://example.org:636');
95 //define('DIRECTORY_BASE_DN','ou=people,o=ldap.domain.somewhere');
96 //define('DIRECTORY_USERNAME_ATTRIBUTE', 'uid');
97 //define('DIRECTORY_USER_BINDING','uid={username},'.DIRECTORY_BASE_DN);
98 //define('DIRECTORY_ADMIN_BINDING', 'uid=admin,'.DIRECTORY_BASE_DN);
99 //define('DIRECTORY_ADMIN_PASS','password');
100
101 /**
102 * CAS authentication http://www.jasig.org/cas
103 *
104 * https://wiki.jasig.org/display/CASC/phpCAS
105 *
106 * phpCAS is a PHP library for handling the calls to the CAS service
107 * It is the official library, part of the Jasig CAS project
108 */
109 //define('CAS','/var/www/libraries/phpCAS');
110 //define('CAS_SERVER','cas.somewhere.org');
111 //define('CAS_URI','cas');
112
f0502f1 @inghamn Embeddable forms now support posting to the Open311 servers
inghamn authored
113 /**
114 * YUI
115 * What host do you want to use for the YUI libraries
116 */
117 define('YUI','http://yui.yahooapis.com/3.4.1/build');
118
b699cea @inghamn Map-based location chooser is working. Tested embedding on a website …
inghamn authored
119 /**
120 * Default coordinates for map center
121 * This should probably be the center of your city
122 * If you can, it's best to adjust these values in your php.ini
123 */
124 define('DEFAULT_LATITUDE',ini_get('date.default_latitude'));
125 define('DEFAULT_LONGITUDE',ini_get('date.default_longitude'));
126
f826e17 @inghamn Initial Import
inghamn authored
127 //-------------------------------------------------------------------
128 // Bootstrap code
129 // No editing is usually needed after this point
130 //-------------------------------------------------------------------
131 /**
132 * Enable autoloading for the PHP libraries
133 */
134 ini_set('include_path','.'.PATH_SEPARATOR.ZEND);
135 require_once 'Zend/Loader/Autoloader.php';
136 Zend_Loader_Autoloader::getInstance();
137
138 include FRAMEWORK.'/globalFunctions.php';
139 spl_autoload_register('autoload');
140
141 /**
142 * Session Startup
143 * Don't start a session for CLI usage.
144 * We only want sessions when PHP code is executed from the webserver
145 */
146 if (!defined('STDIN')) {
147 ini_set('session.save_path',APPLICATION_HOME.'/data/sessions');
148 session_start();
149 }
150
151 /**
152 * Load the Zend_Acl
153 */
154 include APPLICATION_HOME.'/access_control.inc';
155
156 /**
157 * Grab a timestamp for calculating process time
158 */
159 $startTime = microtime(1);
Something went wrong with that request. Please try again.