This repository has been archived by the owner on Aug 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.inc.php
318 lines (260 loc) · 12.9 KB
/
config.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
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
<?php
/**
* This file is part of the Achievo ATK demo application.
* Detailed copyright and licensing information can be found
* in the doc/COPYRIGHT and doc/LICENSE files which should be
* included in the distribution.
*
* This file is a copy of ATK's default skeleton config file.
* It contains many default settings that you may adjust to
* the needs of your application.
*
* @package atk
* @subpackage demo
*
* @author Ivo Jansch <ivo@ibuildings.com>
*
* @copyright (c)2000-2010 Ibuildings
* @license http://www.atkframework.com/licensing ATK Open Source License
*
*/
/**
* Unique application identifier
*/
$config_identifier = "atkdemo";
//----------------- DATABASE CONFIGURATION --------------------
// Currently supported drivers are:
// "mysql" - All MySQL versions since 3.23
// "mysqli" - MySQL 4.1+. This one has transaction support.
// "oci805" - Oracle 8.0.5
// "oci8" - All Oracle 8i versions
// "oci9" - Oracle9i+ (also works for 10G)
// "pgsql" - PostgreSQL 7.1+
// "mssql" - Microsoft SQL Server
$config_db["default"]["driver"] = "mysqli";
$config_db["default"]["host"] = "localhost";
$config_db["default"]["db"] = "atkdemo";
$config_db["default"]["user"] = "demo";
$config_db["default"]["password"] = "demo";
/**
* Cache table meta data and compiled meta node code.
*
* On development environments this option should be set to false, but
* on production environments you should really enable it. If you enable
* this option and your table structure changes you should manually clear
* the cache in the atktmp directory!
*
* @var bool
*/
$config_meta_caching = false;
// In admin pages, atk shows you a number of records with previous and
// next buttons. You can specify the number of records to show on a page.
$config_recordsperpage=25;
//----------------- DEBUGGER CONFIGURATION ----------------------
// The automatic error reporter
// Error reports are sent to the given email address.
// If you set this to "", error reporting will be turned off.
// WARNING: DO NOT LEAVE THIS TO THE DEFAULT ADDRESS OR PREPARE TO BE
// SEVERELY FLAMED!
// $config_mailreport = "ivo@ibuildings.net";
// The debug level.
// -1 - No debug information
// 0 - No debug information, but still stored for atk errormails
// 1 - Print some debug information at the bottom of each screen
// 2 - Print debug information, and pause before redirects
// 3 - Like 2, but also adds trace information to each statement
$config_debug = 0;
// Smart debug parameters. Is used to dynamically enable debugging for
// certain IP addresses or if for example the special atkdebug[key] request
// variable equals a configured key etc. If smart debugging is enabled
// you can also change the debug level dynamically using the special
// atkdebug[level] request variable.
//
// $config_smart_debug[] = array("type" => "request", "key" => "test");
// $config_smart_debug[] = array("type" => "ip", "list" => array("10.0.0.4"));
$config_smart_debug = array();
//----------------- LAYOUT CONFIGURATION --------------------
// The theme defines the layout of your application. You can see which
// themes there are in the directory atk/themes.
$config_defaulttheme = "stillblue";
// The language of the application. You can use any language for which
// a language file is present in the atk/languages directory.
$config_language="en";
// Menu configuration. You can have a menu at "top", "left", "right" or
// "bottom". If you use a horizontal menu (top or bottom, you may want
// to change the menu_delimiter to " " (menu_delimiter is what atk
// puts between menu items).
$config_menu_pos = "left";
$config_menu_delimiter = "<br />";
$config_menu_layout = "modern";
// If you have a menu at either left or right, you can add an
// extra topframe by setting the following option to 1.
// If you set it to 1, you must provide a "top.php" file in
// your application directory.
$config_top_frame = 1;
// Show icons in the recordlist or text?
$config_recordlist_icons = true;
// If the users are using IE, then the application can be run in fullscreen
// mode. Set the next variable to true to enable this:
$config_fullscreen = false;
// Lists that are obligatory, by default have no 'Select none' option. In
// some applications, this leads to the user just selecting the first item
// since that is the default. If this is a problem set this config variable
// to true; this will add a 'Select none' option to obligatory lists so the
// user is forced to make a selection.
$config_list_obligatory_null_item = false;
// Wether or not to use the keyboardhandler for attributes and the recordlist
// When set to true, arrow keys can be used to navigate through fields and
// records, as well as shortcuts 'e' for edit, 'd' for delete, and left/right
// cursor for paging. Note however, that using cursor keys to navigate
// through fields is not standard web application behaviour.
$config_use_keyboard_handler = false;
/*********************************** OUTPUT ********************************/
// Set to true, to output pages gzip compressed to the browser if the
// browser supports it.
$config_output_gzip = false;
//----------------- SECURITY CONFIGURATION --------------------
// The type of authentication (user/password verification) to use.
// Currently supported are:
// "none" - no authentication
// "config" - users / passwords are set in this configfile
// "db" - users / passwords are stored in a table in the database.
// "imap" - users / passwords are stored in the IMAP server
// "pop3" - users / passwords are stored in the POP3 server
// "ldap" - users / passwords are stored in an LDAP server
// "server" - authentication is done by the webserver (.htaccess)
// custom type with a fullclassname like 'module.mymodule.myauth' (syntax similar as atknew or atkimport)
// if you need to use multiple authentication types list them delimited by comma
$config_authentication = "db";
// The type of authorization (what is a user allowed to do?)
// Normally this will be the same as the authentication, but in
// special cases like POP3 authentication you might want to
// authorize via a table in the database.
// $config_authorization = "none";
// NOTE, the following options are only useful if authentication is not
// set to "none".
// This parameter specifies whether the passwords are stored as an md5
// string in the database / configfile / whatever.
// If set to false, the passwords are assumed to be plain text.
// Note: Not all authentication methods support md5! e.g, if you use
// pop3 authentication, set this to false.
// Note2: If set to false, and authentication_cookie is set to true,
// the password in the cookie will be stored plaintext!!!
$config_authentication_md5 = true;
// This parameter specified whether passwords are stored using the
// php/perl crypt() function. Applications using this are Bugzilla.
// Setting this to true, and setting $config_authentication_md5 to
// false, allows users to login to applications where the database
// uses crypted passwords.
$config_auth_usecryptedpassword = false;
// If you specify an administrator password here, you are always able
// to login using user 'administrator' and the specified password,
// regardless of the type of authentication used!
// if you set it to nothing (""), administrator login is disabled,
// and only valid users are allowed to login (depending on the type of
// authentication used).
$config_administratorpassword = "demo";
// The security scheme is used to determine who is allowed to do what.
// Currently supported:
// "none" - anyone who is logged in may do anything.
// "level" - users have a certain level, and certain features of the
// application require a minimum level.
// "group" - users belong to a group, and certain features may only
// be executed by a specific group.
$config_securityscheme = "group";
// If config_restrictive is set to true, access is denied for all features
// for which no access requirements are set. If set to false, access is
// always granted if no access requirements are set.
$config_restrictive = true;
// If set to true, a cookie with username/password is written, so
// users will stay logged in, even if they close their browser.
$config_authentication_cookie = false;
// If you use "db" as authentication type, you can set the table and fields
// from which atk should read the username and password information.
$config_auth_usernode = "lesson5.employee"; // module.nodename
$config_auth_usertable = "lesson5_employee";
$config_auth_userfield = "login";
$config_auth_passwordfield = "password";
// If you work with groups/levels you need these parameters
$config_auth_leveltable = "lesson5_employee";
$config_auth_levelfield = "profile_id";
$config_auth_accesstable = "lesson5_accessright";
// Setting this to true will make ATK use a loginform instead of a browser
// popup.
$config_auth_loginform = true;
$config_max_loginattempts = 5;
// When changerealm is true, the authentication realm is changed on every login.
// Advantage: the user is able to logout using the logout link.
// Disadvantage: browser's 'remember password' feature won't work.
// This setting only affects the http login box, so it is only relevant if
// $config_auth_loginform is set to false.
$config_auth_changerealm = false;
// if you use "pop3" or "imap" as authentication, you have to fill in
// these parameters:
// Set this to true if you have virtual mail domains.
// Atk will append '@' and the config_auth_mail_suffix
// to the login name.
// $config_auth_mail_virtual = false;
// Mail suffix, if mail_virtual is set to true.
//$config_auth_mail_suffix = "ibuildings.nl";
// Mail server name
// $config_auth_mail_server = "localhost";
// Port of the mail server (default is 110 (pop3) but you can set it
// to 143 (imap) or something else.
// $config_auth_mail_port = 143;
// if you use "ldap" as authentication, these parameters are nessesary
// $config_auth_ldap_host = "";
// $config_auth_ldap_context = "";
//filter prefix default: "uid"
//$config_auth_ldap_search_filter = "uid";
// Sometimes we can't bind anomynous, so we have
// to use an account to bind within the tree
//$config_auth_ldap_bind_tree = false; // default off
//$config_auth_ldap_bind_dn = "";
//$config_auth_ldap_bind_pw = "";
// The application root
// if you're using urlrewrites within your httpd or htaccess configuration i think this should be '/'
// be careful with this setting because it could create a major securityhole.
// It is used to set the cookiepath when using PHP sessions.
$config_application_root = "/";
// Atk can write security events to a logfile.
// There are several values you can choose for $config_logging.
// 0 - No logging
// 1 - Log logins
// 2 - Log actions ("User x performed action x on module y")
$config_logging = 0;
$config_logfile = "/tmp/atk-security.log";
// If you have config_authentication set to "config", you may now specify
// a set of usernames and passwords (in plain text).
// Example:
// atkConfig::addUser("harry","password");
// If securityscheme is "level" or "group", you may also specify the
// level or group as third parameter:
// atkConfig::addUser("harry","password",3);
// atkConfig::addUser("harry","password","admins");
// -------------- DOCUMENT WRITER CONFIGURATION ---------------
// For document attributes, ATK automatically searches for template
// documents in a specific directory. The base directory to search in
// can be specified below. The document templates must be put in a
// specific directory structure under this base directory: first of all
// a subdirectory must be made for every module for which you want to
// include document templates (equal to the modulename of that module, as
// set in config.inc.php). Then a subdirectory in that directory must be
// made according to the name of the node for which you want to include
// document templates. In this subdirectory you can put your document
// template files. So if you have $config_doctemplatedir set to
// "doctemplates/", then you can put your documents in
// "doctemplates/modulename/nodename/".
$config_doctemplatedir = "doctemplates/";
// --------- DATA INTERNATIONALISATION CONFIGURATION ---------
$config_supported_languages = array("EN","NL","DE");
$config_defaultlanguage="EN";
// ----------- CACHING CONFIGURATION ------------
// For the configuration of atkCache
// See: http://www.achievo.org/wiki/ATK_Cache
// Cache method
$config_cache_method = 'var';
// Cache namespace, change this when you are hosting your application on a
// shared hosting.
$config_cache_namespace = 'default';
?>