-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_app.inc.php
81 lines (63 loc) · 4.61 KB
/
config_app.inc.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
// modify these statements for your site and application
//---------------------------------------------------
// This section is for technical support
// initialize application site constants
define ('APP_PATH', dirname($_SERVER['SCRIPT_FILENAME'])) ; // disk path of application`s home directory
define ('COMMON', APP_PATH.'/_common') ; // disk path to application`s common files
define ('SMARTY_PATH', APP_PATH.'/_smarty'); // disk path to application`s Smarty files
define ('VIEW_PATH', APP_PATH.'/_view'); // disk path to application`s View files
define ('SMARTY_TPL', VIEW_PATH.'/templates'); // disk path to application`s templates
define ('APP_SERVER_URL', "HTTP://".$_SERVER['SERVER_NAME']) ; // URL of server root
define ('APP_URL', APP_SERVER_URL.dirname($_SERVER['PHP_SELF'])); // URL of application`s home directory
define ('VIEW_URL', APP_URL.'/_view'); // URL to application`s images
define ('IMAGES_URL', VIEW_URL.'/images'); // URL to application`s images
define ('CSS_URL', VIEW_URL.'/css'); // URL path to application`s CSS files
define ('JS_URL', VIEW_URL.'/js'); // URL to application`s Javascript files
// modify PHP include_path
set_include_path(get_include_path() . PATH_SEPARATOR . COMMON);
// Email setup
// NOTE TO TECH SUPPORT: port 25 MUST be open on your firewall
//---------------------------------------------------
// This section is for system support
// parameters for Database
$cfg['db']['driver'] ='mySQL'; // DB type
$cfg['db']['host'] ='localhost'; // DB server
$cfg['db']['name'] ='foodbank_fbdb'; // DB name
$cfg['db']['user'] ='fbadmin'; // DB user id
$cfg['db']['password']='password'; // DB password
// set DSN only if database not defined through Windows (ODBC DSN-less connection)
// $cfg['db']['dsn'] = 'Driver={Microsoft Access Driver (*.mdb)}; DBQ='.$cfg['db']['name'];
define ('DEBUG_FILE', APP_PATH.'/debugFile.txt') ; // debug log file
define ('XML_FILE', APP_PATH.'/view.xml') ; // XML file
define ('NL', "\r\n") ; // carriage return & line feed
define ('DEBUG', 0) ; // '1' to write debug log
define ('ERROR_PAGE', '_default'); // when requested page not found
define ('LOGIN', '_login'); // login MVC script directory
define ('LOGOUT', '_logout'); // logout MVC script directory
define ('TIMEOUT', '_timeout'); // timeout MVC script directory
define ('MASTER_PAGE', 'master_page.tpl'); // master page template
define ('AUTHORIZE', 'access'); // session variable set to security
// level of current user
$smarty = 'objView'; // name of object to contain view data
//---------------------------------------------------
// This section is for application administration
// Specify application`s security levels here - low to high
// variable name must be '$security_levels'
// Example 1: $security_levels = array('public', 'person', 'organization', 'administrator');
// Example 2: $security_levels = array('p', 'p', 'o', 'a');
$security_levels = array('', 'P', 'O', 'A');
// set max seconds of inactivity per request and
// message to be display on log on screen
$minutes = 30;
define ('MAX_INACTIVITY', $minutes * 60);
$timeout_msg = "For security reasons, you have been logged out due to ".$minutes." minutes of inactivity. Please Login again";
// Application specific data
// set your own names and values
define ('DATE_FORMAT', "m-d-Y H:i:s");
define ('MFB_URL', 'http://www.sample.org');
// variables for Email - 'from' addresses
$newUser_from = '[email protected]' ; // from address for email sent to new user
$newPerson_from = '[email protected]' ; // from address for email sent to new applicant
$intentToStay_from = '[email protected]' ; // from address for email sent to new resident
?>