-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.inc.php.example
executable file
·240 lines (199 loc) · 5.51 KB
/
config.inc.php.example
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
<?php
/**
* Filename: config.inc.php
* Function: Configuration file for phpDivingLog.
* @author Lloyd Borrett - www.borrett.id.au Rob Lensen <[email protected]>
* @package phpdivinglog
* @version $Rev$
* Last Modified: $Date: Mon Aug 1 15:13:21 2011 +0200 $
*/
/**
* database settings
*/
$_config['database_server'] = "localhost";
$_config['database_db'] = "divelog";
$_config['database_username'] = "divelog";
$_config['database_password'] = "password";
/**
* Enter prefix for single user mode (for multi user see below)
*/
$_config['table_prefix'] = "DL_";
/**
* language setting determines which language file is used
*/
$_config['language'] = "english";
/**
* Suppress DateTime warnings by setting the default timezone
* used by all date/time functions to the currently set one
* or you can set the timezone to what you want, e.g.
* date_default_timezone_set('Australia/Melbourne');
* See http://www.php.net/manual/en/timezones.php for the list of valid timezones
*/
if (function_exists("date_default_timezone_set") and function_exists("date_default_timezone_get")) {
@date_default_timezone_set(@date_default_timezone_get());
}
/**
* Some hosts don't support mod_rewrite, so we must have option to use old
* query strings like ?id=&user=
* If query_string = false normal rewrite is used, if set to true query string is used
*/
$_config['query_string'] = true;
/**
* change this to your website url (normally not needed)
*/
//$_config['web_root'] = 'http://localhost/lrb-2004/phpDivinglog3';
/**
* Your path where divelog is located
* EXAMPLE: http://www.foo.com/users/j/jo/john
* abs_url_path = /users/j/jo/john
* Nothing todo where phpdivinglog is installed on your harddrive!
* No need to change normally
*/
//$_config['abs_url_path'] = '/divelog';
/**
* See below for more file location settings
*/
/**
* Define if we need to embed phpDivinglog
* @todo make embedding possible
*/
$_config['embed_mode'] = false;
/**
* number of items per page in the lists
*/
$_config['max_list'] = 20;
/**
* Set to true if you want to display the profile in the dive detail
*/
$_config['show_profile'] = true;
/**
* comments in RTF format?
*/
$_config['dlog_comments_rtf'] = true;
/**
* specify what to show in user information
* @todo make these option work
*/
$_config['user_show'] = true;
$_config['user_show_general'] = true;
$_config['user_show_comments'] = true;
$_config['user_show_photo'] = true;
$_config['user_show_certs'] = true;
$_config['user_show_medical'] = true;
/**
* Specify if equipment service reminders should be shown
* and the number of days before the due date to start reminding
* @todo make this work
*/
$_config['equipment_service_reminder'] = true;
$_config['equipment_service_warning'] = 30;
/**
* Comma separated
* Specify if lists (like equipment used, dives at site etc.)
* should be comma separated.
*/
$_config['comma_separated'] = true;
$_config['comma_separator'] = ' |';
/**
* Set the maximum width and height of the thumbnails, which are created automaticly
* Usually a 4:3 ratio, e.g. 100:75, 120:100
* Width and height are set in px
*/
$_config['thumb-width'] = 100;
$_config['thumb-height'] = 75;
/**
* Set the maximum width of the pictures in the gallery
* Width is set in px
*/
$_config['pic-width'] = 800;
/**
* get exif data from the images
*/
$_config["get_exif_data"] = true;
/**
* DIVE PROFILE SETTINGS
* name of the graphic image to use as the dive profile background
* image size is expected to be 550 x 400
* set to "" for no background image
* $_config['graph_background_image'] = "images/jellyfish-and-divers.jpg";
*/
$_config['graph_background_image'] = "";
/**
* Set the background color for the diveprofile and pie chart
*/
$_config['background_color'] = '#ffffff';
/**
* set to 'true' to show Y scales on two sides
* set to 'false' to show Y scale only on left side
*/
$_config['graph_show_two_scales'] = true;
/**
* set to 'true' to show both metric and imperial units on chart scales
* set to 'false' to show only the length units specified by the unit conversion value
*/
$_config['graph_show_both_units'] = true;
/**
* UNIT CONVERSION
* set values to true if you want to convert from metric units to imperial units,
* or to false if values should be left as metric units.
*/
/**
* Define date format dmy- result in day-month-year
*/
$_config['date_format'] = 'date:dmy:-';
/**
* metres to feet
*/
$_config['length'] = false;
/**
* bar to psi
*/
$_config['pressure'] = false;
/**
* kilograms (kg) to pounds (lbs)
*/
$_config['weight'] = false;
/**
* Celsius to Farenheight
*/
$_config['temp'] = false;
/**
* litres to cubic feet
*/
$_config['volume'] = false;
/**
* Decimal separator
*/
$_config['decsep'] = ",";
/**
* default O2 %
*/
$_config['default_o2'] = 20.9;
$_config['default_maxppo2'] = 1.6;
/**
* Lattitue and Longitude format
* Valid values are:
* d - degrees - ddd.dddddd
* dm - degress & minutes - ddd mm.mmmm
* dms - degrees, minutes & seconds - ddd mm ss.ss
*/
$_config['coord_format'] = 'dm';
/**
* DEFAULT VALUES
* Values to use as defaults if none given.
*/
$_config['default_maxppo2'] = "1.4";
$_config['default_o2'] = "21";
/**
* ABS path to your website (no need to change normaly)
*/
define('ABSPATH_DIVELOG', dirname(__FILE__) . DIRECTORY_SEPARATOR);
if (!defined('ABSPATH'))
define('ABSPATH', dirname(__FILE__) . '/');
$_config['app_root'] = ABSPATH_DIVELOG;
/**
* For debug purpose
*/
$_config['enable_debug'] = false;
require_once(ABSPATH_DIVELOG . "settings.php");
?>