1 | <?php |
---|
2 | // +-----------------------------------------------------------------------+ |
---|
3 | // | PhpWebGallery - a PHP based picture gallery | |
---|
4 | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | |
---|
5 | // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | |
---|
6 | // +-----------------------------------------------------------------------+ |
---|
7 | // | file : $Id: config_default.inc.php 1970 2007-04-22 13:11:56Z plg $ |
---|
8 | // | last update : $Date: 2007-04-22 13:11:56 +0000 (Sun, 22 Apr 2007) $ |
---|
9 | // | last modifier : $Author: plg $ |
---|
10 | // | revision : $Revision: 1970 $ |
---|
11 | // +-----------------------------------------------------------------------+ |
---|
12 | // | This program is free software; you can redistribute it and/or modify | |
---|
13 | // | it under the terms of the GNU General Public License as published by | |
---|
14 | // | the Free Software Foundation | |
---|
15 | // | | |
---|
16 | // | This program is distributed in the hope that it will be useful, but | |
---|
17 | // | WITHOUT ANY WARRANTY; without even the implied warranty of | |
---|
18 | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
---|
19 | // | General Public License for more details. | |
---|
20 | // | | |
---|
21 | // | You should have received a copy of the GNU General Public License | |
---|
22 | // | along with this program; if not, write to the Free Software | |
---|
23 | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | |
---|
24 | // | USA. | |
---|
25 | // +-----------------------------------------------------------------------+ |
---|
26 | |
---|
27 | /** |
---|
28 | * configuration page |
---|
29 | * |
---|
30 | * Set configuration parameters that are not in the table config. In the |
---|
31 | * application, configuration parameters are considered in the same way |
---|
32 | * coming from config table or config_default.inc.php. |
---|
33 | * |
---|
34 | * It is recommended to let config_default.inc.php as provided and to |
---|
35 | * overwrite configuration in your local configuration file |
---|
36 | * config_local.inc.php. See tools/config_local.inc.php as an example. |
---|
37 | * |
---|
38 | * Why having some parameters in config table and others in |
---|
39 | * config_*.inc.php? Modifying config_*.inc.php is a "hard" task for low |
---|
40 | * skilled users, they need a GUI for this : admin/configuration. But only |
---|
41 | * parameters that might be modified by low skilled users are in config |
---|
42 | * table, other parameters are in config_*.inc.php |
---|
43 | */ |
---|
44 | |
---|
45 | // +-----------------------------------------------------------------------+ |
---|
46 | // | misc | |
---|
47 | // +-----------------------------------------------------------------------+ |
---|
48 | |
---|
49 | // order_by : how to change the order of display for images in a category ? |
---|
50 | // |
---|
51 | // There are several fields that can order the display : |
---|
52 | // |
---|
53 | // - date_available : the date of the adding to the gallery |
---|
54 | // - file : the name of the file |
---|
55 | // - id : element identifier |
---|
56 | // - date_creation : date of element creation |
---|
57 | // |
---|
58 | // Once you've chosen which field(s) to use for ordering, you must chose the |
---|
59 | // ascending or descending order for each field. examples : |
---|
60 | // |
---|
61 | // 1. $conf['order_by'] = " order by date_available desc, file asc"; |
---|
62 | // will order pictures by date_available descending & by filename ascending |
---|
63 | // |
---|
64 | // 2. $conf['order_by'] = " order by file asc"; |
---|
65 | // will only order pictures by file ascending without taking into account |
---|
66 | // the date_available |
---|
67 | $conf['order_by'] = ' ORDER BY date_available DESC, file ASC, id ASC'; |
---|
68 | |
---|
69 | // slideshow_period : waiting time in seconds before loading a new page |
---|
70 | // during automated slideshow |
---|
71 | $conf['slideshow_period'] = 4; |
---|
72 | |
---|
73 | // file_ext : file extensions (case sensitive) authorized |
---|
74 | $conf['file_ext'] = array('jpg','JPG','jpeg','JPEG', |
---|
75 | 'png','PNG','gif','GIF','mpg','zip', |
---|
76 | 'avi','mp3','ogg'); |
---|
77 | |
---|
78 | // picture_ext : file extensions for picture file, must be a subset of |
---|
79 | // file_ext |
---|
80 | $conf['picture_ext'] = array('jpg','JPG','jpeg','JPEG', |
---|
81 | 'png','PNG','gif','GIF'); |
---|
82 | |
---|
83 | // top_number : number of element to display for "best rated" and "most |
---|
84 | // visited" categories |
---|
85 | $conf['top_number'] = 15; |
---|
86 | |
---|
87 | // anti-flood_time : number of seconds between 2 comments : 0 to disable |
---|
88 | $conf['anti-flood_time'] = 60; |
---|
89 | |
---|
90 | // qualified spam comments are not registered (false will register them |
---|
91 | // but they will require admin validation) |
---|
92 | $conf['comment_spam_reject'] = true; |
---|
93 | |
---|
94 | // maximum number of links in a comment before it is qualified spam |
---|
95 | $conf['comment_spam_max_links'] = 3; |
---|
96 | |
---|
97 | // if the ip address of a comenteer is in spamhaus.org block list, the |
---|
98 | // comment is qualified spam |
---|
99 | $conf['comment_spam_check_ip'] = false; |
---|
100 | |
---|
101 | // calendar_datefield : date field of table "images" used for calendar |
---|
102 | // catgory |
---|
103 | $conf['calendar_datefield'] = 'date_creation'; |
---|
104 | |
---|
105 | // calendar_show_any : the calendar shows an aditional 'any' button in the |
---|
106 | // year/month/week/day navigation bars |
---|
107 | $conf['calendar_show_any'] = true; |
---|
108 | |
---|
109 | // calendar_show_empty : the calendar shows month/weeks/days even if there are |
---|
110 | //no elements for these |
---|
111 | $conf['calendar_show_empty'] = true; |
---|
112 | |
---|
113 | // calendar_month_cell_width, calendar_month_cell_height : define the |
---|
114 | // width and the height of a cell in the monthly calendar when viewing a |
---|
115 | // given month. a value of 0 means that the pretty view is not shown. |
---|
116 | // a good suggestion would be to have the width and the height equal |
---|
117 | // and smaller than tn_width and tn_height. |
---|
118 | $conf['calendar_month_cell_width'] =80; |
---|
119 | $conf['calendar_month_cell_height']=80; |
---|
120 | |
---|
121 | // newcat_default_commentable : at creation, must a category be commentable |
---|
122 | // or not ? |
---|
123 | $conf['newcat_default_commentable'] = true; |
---|
124 | |
---|
125 | // newcat_default_uploadable : at creation, must a category be uploadable or |
---|
126 | // not ? |
---|
127 | $conf['newcat_default_uploadable'] = false; |
---|
128 | |
---|
129 | // newcat_default_visible : at creation, must a category be visible or not ? |
---|
130 | // Warning : if the parent category is invisible, the category is |
---|
131 | // automatically create invisible. (invisible = locked) |
---|
132 | $conf['newcat_default_visible'] = true; |
---|
133 | |
---|
134 | // newcat_default_status : at creation, must a category be public or private |
---|
135 | // ? Warning : if the parent category is private, the category is |
---|
136 | // automatically create private. |
---|
137 | $conf['newcat_default_status'] = 'public'; |
---|
138 | |
---|
139 | // level_separator : character string used for separating a category level |
---|
140 | // to the sub level. Suggestions : ' / ', ' » ', ' → ', ' - ', |
---|
141 | // ' >' |
---|
142 | $conf['level_separator'] = ' / '; |
---|
143 | |
---|
144 | // paginate_pages_around : on paginate navigation bar, how many pages |
---|
145 | // display before and after the current page ? |
---|
146 | $conf['paginate_pages_around'] = 2; |
---|
147 | |
---|
148 | // tn_width : default width for thumbnails creation |
---|
149 | $conf['tn_width'] = 128; |
---|
150 | |
---|
151 | // tn_height : default height for thumbnails creation |
---|
152 | $conf['tn_height'] = 128; |
---|
153 | |
---|
154 | // show_version : shall the version of PhpWebGallery be displayed at the |
---|
155 | // bottom of each page ? |
---|
156 | $conf['show_version'] = true; |
---|
157 | |
---|
158 | |
---|
159 | // links : list of external links to add in the menu. An example is the best |
---|
160 | // than a long explanation : |
---|
161 | // |
---|
162 | // Simple use: |
---|
163 | // for each link is associated a label |
---|
164 | // $conf['links'] = array( |
---|
165 | // 'http://phpwebgallery.net' => 'PWG website', |
---|
166 | // 'http://forum.phpwebgallery.net' => 'PWG forum', |
---|
167 | // 'http://phpwebgallery.net/doc' => 'PWG wiki' |
---|
168 | // ); |
---|
169 | // |
---|
170 | // Advenced use: |
---|
171 | // You can also used special options. Instead to pass a string like parameter value |
---|
172 | // you can pass a array with different optional parameter values |
---|
173 | // $conf['links'] = array( |
---|
174 | // 'http://phpwebgallery.net' => array('label' => 'PWG website', 'new_window' => false, 'eval_visible' => 'return true;'), |
---|
175 | // 'http://forum.phpwebgallery.net' => array('label' => 'For ADMIN', 'new_window' => true, 'eval_visible' => 'return is_admin();'), |
---|
176 | // 'http://phpwebgallery.net/doc' => array('label' => 'For Guest', 'new_window' => true, 'eval_visible' => 'return $user[\'is_the_guest\'];'), |
---|
177 | // 'http://download.gna.org/phpwebgallery/' => |
---|
178 | // array('label' => 'PopUp', 'new_window' => true, |
---|
179 | // 'nw_name' => 'PopUp', 'nw_features' => 'width=800,height=450,location=no,status=no,toolbar=no,scrollbars=no,menubar=no'), |
---|
180 | // ); |
---|
181 | // Parameters: |
---|
182 | // 'label': |
---|
183 | // Label to display for the link, must be defined |
---|
184 | // 'new_window': |
---|
185 | // If true open link on tab/window |
---|
186 | // [Default value is true if it's not defined] |
---|
187 | // 'nw_name': |
---|
188 | // Name use when new_window is true |
---|
189 | // [Default value is '' if it's not defined] |
---|
190 | // 'nw_features': |
---|
191 | // features use when new_window is true |
---|
192 | // [Default value is '' if it's not defined] |
---|
193 | // 'eval_visible': |
---|
194 | // It's php code witch must return if the link is visible or not |
---|
195 | // [Default value is true if it's not defined] |
---|
196 | // |
---|
197 | // Equivalence: |
---|
198 | // $conf['links'] = array( |
---|
199 | // 'http://phpwebgallery.net' => 'PWG website', |
---|
200 | // ); |
---|
201 | // $conf['links'] = array( |
---|
202 | // 'http://phpwebgallery.net' => array('label' => 'PWG website', 'new_window' => false, 'visible' => 'return true;'), |
---|
203 | // ); |
---|
204 | // |
---|
205 | // If the array is empty, the "Links" box won't be displayed on the main |
---|
206 | // page. |
---|
207 | $conf['links'] = array(); |
---|
208 | |
---|
209 | // random_index_redirect: list of 'internal' links to use when no section is defined on index.php. |
---|
210 | // An example is the best than a long explanation : |
---|
211 | // |
---|
212 | // for each link is associated a php condition |
---|
213 | // '' condition is equivalent to 'return true;' |
---|
214 | // $conf['random_index_redirect'] = array( |
---|
215 | // PHPWG_ROOT_PATH.'index.php?/best_rated' => 'return true;', |
---|
216 | // PHPWG_ROOT_PATH.'index.php?/recent_pics' => 'return $user[\'is_the_guest\'];', |
---|
217 | // PHPWG_ROOT_PATH.'random.php' => '', |
---|
218 | // PHPWG_ROOT_PATH.'index.php?/categories' => '', |
---|
219 | // ); |
---|
220 | $conf['random_index_redirect'] = array(); |
---|
221 | |
---|
222 | // List of notes to display on all header page |
---|
223 | // example $conf['header_notes'] = array('Test', 'Hello'); |
---|
224 | $conf['header_notes'] = array(); |
---|
225 | |
---|
226 | // show_thumbnail_caption : on thumbnails page, show thumbnail captions ? |
---|
227 | $conf['show_thumbnail_caption'] = true; |
---|
228 | |
---|
229 | // show_picture_name_on_title : on picture presentation page, show picture |
---|
230 | // name ? |
---|
231 | $conf['show_picture_name_on_title'] = true; |
---|
232 | |
---|
233 | // subcatify: display thumbnails representing a category a different way |
---|
234 | // than thumbnails representing a picture. |
---|
235 | $conf['subcatify'] = true; |
---|
236 | |
---|
237 | // display_fromto: in subcatify mode, display the date creation bounds of a |
---|
238 | // category. |
---|
239 | $conf['display_fromto'] = false; |
---|
240 | |
---|
241 | // allow_random_representative : do you wish PhpWebGallery to search among |
---|
242 | // categories elements a new representative at each reload ? |
---|
243 | // |
---|
244 | // If false, an element is randomly or manually chosen to represent its |
---|
245 | // category and remains the representative as long as an admin does not |
---|
246 | // change it. |
---|
247 | // |
---|
248 | // Warning : setting this parameter to true is CPU consuming. Each time you |
---|
249 | // change the value of this parameter from false to true, an administrator |
---|
250 | // must update categories informations in screen [Admin > General > |
---|
251 | // Maintenance]. |
---|
252 | $conf['allow_random_representative'] = false; |
---|
253 | |
---|
254 | // allow_html_descriptions : authorize administrators to use HTML in |
---|
255 | // category and element description. |
---|
256 | $conf['allow_html_descriptions'] = true; |
---|
257 | |
---|
258 | // prefix_thumbnail : string before filename. Thumbnail's prefix must only |
---|
259 | // contain characters among : a to z (case insensitive), "-" or "_". |
---|
260 | $conf['prefix_thumbnail'] = 'TN-'; |
---|
261 | |
---|
262 | // users_page: how many users to display in screen |
---|
263 | // Administration>Identification>Users? |
---|
264 | $conf['users_page'] = 20; |
---|
265 | |
---|
266 | // mail_options: only set it true if you have a send mail warning with |
---|
267 | // "options" parameter missing on mail() function execution. |
---|
268 | $conf['mail_options'] = false; |
---|
269 | |
---|
270 | // send_bcc_mail_webmaster: send bcc mail to webmaster. Set true for debug |
---|
271 | // or test. |
---|
272 | $conf['send_bcc_mail_webmaster'] = false; |
---|
273 | |
---|
274 | // enabled_format_email: |
---|
275 | // on true email will be formatted with name and address |
---|
276 | // on false email will be only address |
---|
277 | // There are webhosting wich not allow email formatted (Lycos, ...) |
---|
278 | $conf['enabled_format_email'] = true; |
---|
279 | |
---|
280 | // default_email_format: |
---|
281 | // Define the default email format use to send email |
---|
282 | // Value could be text/plain or text/html |
---|
283 | $conf['default_email_format'] = 'text/html'; |
---|
284 | |
---|
285 | // check_upgrade_feed: check if there are database upgrade required. Set to |
---|
286 | // true, a message will strongly encourage you to upgrade your database if |
---|
287 | // needed. |
---|
288 | // |
---|
289 | // This configuration parameter is set to true in BSF branch and to false |
---|
290 | // elsewhere. |
---|
291 | $conf['check_upgrade_feed'] = true; |
---|
292 | |
---|
293 | // rate_items: available rates for a picture |
---|
294 | $conf['rate_items'] = array(0,1,2,3,4,5); |
---|
295 | |
---|
296 | // Define default method to use ('http' or 'html' in order to do redirect) |
---|
297 | $conf['default_redirect_method'] = 'http'; |
---|
298 | |
---|
299 | // +-----------------------------------------------------------------------+ |
---|
300 | // | metadata | |
---|
301 | // +-----------------------------------------------------------------------+ |
---|
302 | |
---|
303 | // show_iptc: Show IPTC metadata on picture.php if asked by user |
---|
304 | $conf['show_iptc'] = false; |
---|
305 | |
---|
306 | // show_iptc_mapping : is used for showing IPTC metadata on picture.php |
---|
307 | // page. For each key of the array, you need to have the same key in the |
---|
308 | // $lang array. For example, if my first key is 'iptc_keywords' (associated |
---|
309 | // to '2#025') then you need to have $lang['iptc_keywords'] set in |
---|
310 | // language/$user['language']/common.lang.php. If you don't have the lang |
---|
311 | // var set, the key will be simply displayed |
---|
312 | // |
---|
313 | // To know how to associated iptc_field with their meaning, use |
---|
314 | // tools/metadata.php |
---|
315 | $conf['show_iptc_mapping'] = array( |
---|
316 | 'iptc_keywords' => '2#025', |
---|
317 | 'iptc_caption_writer' => '2#122', |
---|
318 | 'iptc_byline_title' => '2#085', |
---|
319 | 'iptc_caption' => '2#120' |
---|
320 | ); |
---|
321 | |
---|
322 | // use_iptc: Use IPTC data during database synchronization with files |
---|
323 | // metadata |
---|
324 | $conf['use_iptc'] = false; |
---|
325 | |
---|
326 | // use_iptc_mapping : in which IPTC fields will PhpWebGallery find image |
---|
327 | // information ? This setting is used during metadata synchronisation. It |
---|
328 | // associates a phpwebgallery_images column name to a IPTC key |
---|
329 | $conf['use_iptc_mapping'] = array( |
---|
330 | 'keywords' => '2#025', |
---|
331 | 'date_creation' => '2#055', |
---|
332 | 'author' => '2#122', |
---|
333 | 'name' => '2#005', |
---|
334 | 'comment' => '2#120' |
---|
335 | ); |
---|
336 | |
---|
337 | // show_exif: Show EXIF metadata on picture.php (table or line presentation |
---|
338 | // avalaible) |
---|
339 | $conf['show_exif'] = true; |
---|
340 | |
---|
341 | // show_exif_fields : in EXIF fields, you can choose to display fields in |
---|
342 | // sub-arrays, for example ['COMPUTED']['ApertureFNumber']. for this, add |
---|
343 | // 'COMPUTED;ApertureFNumber' in $conf['show_exif_fields'] |
---|
344 | // |
---|
345 | // The key displayed in picture.php will be $lang['exif_field_Make'] for |
---|
346 | // example and if it exists. For compound fields, only take into account the |
---|
347 | // last part : for key 'COMPUTED;ApertureFNumber', you need |
---|
348 | // $lang['exif_field_ApertureFNumber'] |
---|
349 | // |
---|
350 | // for PHP version newer than 4.1.2 : |
---|
351 | // $conf['show_exif_fields'] = array('CameraMake','CameraModel','DateTime'); |
---|
352 | // |
---|
353 | $conf['show_exif_fields'] = array( |
---|
354 | 'Make', |
---|
355 | 'Model', |
---|
356 | 'DateTimeOriginal', |
---|
357 | 'COMPUTED;ApertureFNumber' |
---|
358 | ); |
---|
359 | |
---|
360 | // use_exif: Use EXIF data during database synchronization with files |
---|
361 | // metadata |
---|
362 | $conf['use_exif'] = true; |
---|
363 | |
---|
364 | // use_exif_mapping: same behaviour as use_iptc_mapping |
---|
365 | $conf['use_exif_mapping'] = array( |
---|
366 | 'date_creation' => 'DateTimeOriginal' |
---|
367 | ); |
---|
368 | |
---|
369 | // +-----------------------------------------------------------------------+ |
---|
370 | // | sessions | |
---|
371 | // +-----------------------------------------------------------------------+ |
---|
372 | |
---|
373 | // session_use_cookies: specifies to use cookie to store |
---|
374 | // the session id on client side |
---|
375 | $conf['session_use_cookies'] = true; |
---|
376 | |
---|
377 | // session_use_only_cookies: specifies to only use cookie to store |
---|
378 | // the session id on client side |
---|
379 | $conf['session_use_only_cookies'] = true; |
---|
380 | |
---|
381 | // session_use_trans_sid: do not use transparent session id support |
---|
382 | $conf['session_use_trans_sid'] = false; |
---|
383 | |
---|
384 | // session_name: specifies the name of the session which is used as cookie name |
---|
385 | $conf['session_name'] = 'pwg_id'; |
---|
386 | |
---|
387 | // session_save_handler: comment the line below |
---|
388 | // to use file handler for sessions. |
---|
389 | $conf['session_save_handler'] = 'db'; |
---|
390 | |
---|
391 | // authorize_remembering : permits user to stay logged for a long time. It |
---|
392 | // creates a cookie on client side. |
---|
393 | $conf['authorize_remembering'] = true; |
---|
394 | |
---|
395 | // remember_me_name: specifies the name of the cookie used to stay logged |
---|
396 | $conf['remember_me_name'] = 'pwg_remember'; |
---|
397 | |
---|
398 | // remember_me_length : time of validity for "remember me" cookies, in |
---|
399 | // seconds. |
---|
400 | $conf['remember_me_length'] = 5184000; |
---|
401 | |
---|
402 | // session_length : time of validity for normal session, in seconds. |
---|
403 | $conf['session_length'] = 3600; |
---|
404 | |
---|
405 | // +-----------------------------------------------------------------------+ |
---|
406 | // | debug | |
---|
407 | // +-----------------------------------------------------------------------+ |
---|
408 | |
---|
409 | // show_queries : for debug purpose, show queries and execution times |
---|
410 | $conf['show_queries'] = false; |
---|
411 | |
---|
412 | // show_gt : display generation time at the bottom of each page |
---|
413 | $conf['show_gt'] = true; |
---|
414 | |
---|
415 | // debug_l10n : display a warning message each time an unset language key is |
---|
416 | // accessed |
---|
417 | $conf['debug_l10n'] = false; |
---|
418 | |
---|
419 | // die_on_sql_error: if an SQL query fails, should everything stop? |
---|
420 | $conf['die_on_sql_error'] = true; |
---|
421 | |
---|
422 | // +-----------------------------------------------------------------------+ |
---|
423 | // | authentication | |
---|
424 | // +-----------------------------------------------------------------------+ |
---|
425 | |
---|
426 | // apache_authentication : use Apache authentication as reference instead of |
---|
427 | // users table ? |
---|
428 | $conf['apache_authentication'] = false; |
---|
429 | |
---|
430 | // users_table: which table is the reference for users? Can be a different |
---|
431 | // table than PhpWebGallery table |
---|
432 | // |
---|
433 | // If you decide to use another table than the default one, you need to |
---|
434 | // prepare your database by deleting some datas : |
---|
435 | // |
---|
436 | // delete from phpwebgallery_user_access; |
---|
437 | // delete from phpwebgallery_user_cache; |
---|
438 | // delete from phpwebgallery_user_feed; |
---|
439 | // delete from phpwebgallery_user_group; |
---|
440 | // delete from phpwebgallery_user_infos; |
---|
441 | // delete from phpwebgallery_sessions; |
---|
442 | // delete from phpwebgallery_rate; |
---|
443 | // update phpwebgallery_images set average_rate = NULL; |
---|
444 | // delete from phpwebgallery_caddie; |
---|
445 | // delete from phpwebgallery_favorites; |
---|
446 | // |
---|
447 | // All informations contained in these tables and column are related to |
---|
448 | // phpwebgallery_users table. |
---|
449 | $conf['users_table'] = $prefixeTable.'users'; |
---|
450 | |
---|
451 | // user_fields : mapping between generic field names and table specific |
---|
452 | // field names. For example, in PWG, the mail address is names |
---|
453 | // "mail_address" and in punbb, it's called "email". |
---|
454 | $conf['user_fields'] = array( |
---|
455 | 'id' => 'id', |
---|
456 | 'username' => 'username', |
---|
457 | 'password' => 'password', |
---|
458 | 'email' => 'mail_address' |
---|
459 | ); |
---|
460 | |
---|
461 | // pass_convert : function to crypt or hash the clear user password to store |
---|
462 | // it in the database |
---|
463 | $conf['pass_convert'] = create_function('$s', 'return md5($s);'); |
---|
464 | |
---|
465 | // guest_id : id of the anonymous user |
---|
466 | $conf['guest_id'] = 2; |
---|
467 | // default_user_id : id of user used for default value |
---|
468 | $conf['default_user_id'] = $conf['guest_id']; |
---|
469 | |
---|
470 | // webmaster_id : webmaster'id. |
---|
471 | $conf['webmaster_id'] = 1; |
---|
472 | |
---|
473 | // allow to use adviser mode |
---|
474 | $conf['allow_adviser'] = false; |
---|
475 | |
---|
476 | // does the guest have access ? |
---|
477 | // (not a security feature, set your categories "private" too) |
---|
478 | // If false it'll be redirected from index.php to identification.php |
---|
479 | $conf['guest_access'] = true; |
---|
480 | |
---|
481 | // +-----------------------------------------------------------------------+ |
---|
482 | // | upload | |
---|
483 | // +-----------------------------------------------------------------------+ |
---|
484 | |
---|
485 | // upload_maxfilesize: maximum filesize for the uploaded pictures. In |
---|
486 | // kilobytes. |
---|
487 | $conf['upload_maxfilesize'] = 200; |
---|
488 | |
---|
489 | // upload_maxheight: maximum height authorized for the uploaded images. In |
---|
490 | // pixels. |
---|
491 | $conf['upload_maxheight'] = 800; |
---|
492 | |
---|
493 | // upload_maxwidth: maximum width authorized for the uploaded images. In |
---|
494 | // pixels. |
---|
495 | $conf['upload_maxwidth'] = 800; |
---|
496 | |
---|
497 | // upload_maxheight_thumbnail: maximum height authorized for the uploaded |
---|
498 | // thumbnails |
---|
499 | $conf['upload_maxheight_thumbnail'] = 128; |
---|
500 | |
---|
501 | // upload_maxwidth_thumbnail: maximum width authorized for the uploaded |
---|
502 | // thumbnails |
---|
503 | $conf['upload_maxwidth_thumbnail'] = 128; |
---|
504 | |
---|
505 | // +-----------------------------------------------------------------------+ |
---|
506 | // | history | |
---|
507 | // +-----------------------------------------------------------------------+ |
---|
508 | |
---|
509 | // nb_logs_page : how many logs to display on a page |
---|
510 | $conf['nb_logs_page'] = 300; |
---|
511 | |
---|
512 | // +-----------------------------------------------------------------------+ |
---|
513 | // | urls | |
---|
514 | // +-----------------------------------------------------------------------+ |
---|
515 | |
---|
516 | // question_mark_in_urls : the generated urls contain a ? sign. This can be |
---|
517 | // changed to false only if the server translates PATH_INFO variable |
---|
518 | // (depends on the server AcceptPathInfo directive configuration) |
---|
519 | $conf['question_mark_in_urls'] = true; |
---|
520 | |
---|
521 | // php_extension_in_urls : if true, the urls generated for picture and |
---|
522 | // category will not contain the .php extension. This will work only if |
---|
523 | // .htaccess defines Options +MultiViews parameter or url rewriting rules |
---|
524 | // are active. |
---|
525 | $conf['php_extension_in_urls'] = true; |
---|
526 | |
---|
527 | // category_url_style : one of 'id' (default) or 'id-name'. 'id-name' |
---|
528 | // means that an simplified ascii represntation of the category name will |
---|
529 | // appear in the url |
---|
530 | $conf['category_url_style'] = 'id'; |
---|
531 | |
---|
532 | // picture_url_style : one of 'id' (default), 'id-file' or 'file'. 'id-file' |
---|
533 | // or 'file' mean that the file name (without extension will appear in the |
---|
534 | // url). Note that one aditionnal sql query will occur if 'file' is choosen. |
---|
535 | // Note that you might experience navigation issues if you choose 'file' |
---|
536 | // and your file names are not unique |
---|
537 | $conf['picture_url_style'] = 'id'; |
---|
538 | |
---|
539 | // tag_url_style : one of 'id-tag' (default), 'id' or 'tag'. |
---|
540 | // Note that if you choose 'tag' and the url (ascii) representation of your |
---|
541 | // tags is not unique, all tags with the same url representation will be shown |
---|
542 | $conf['tag_url_style'] = 'id-tag'; |
---|
543 | |
---|
544 | // +-----------------------------------------------------------------------+ |
---|
545 | // | tags | |
---|
546 | // +-----------------------------------------------------------------------+ |
---|
547 | |
---|
548 | // full_tag_cloud_items_number: number of tags to show in the full tag |
---|
549 | // cloud. Only the most represented tags will be shown |
---|
550 | $conf['full_tag_cloud_items_number'] = 200; |
---|
551 | |
---|
552 | // menubar_tag_cloud_items_number: number of tags to show in the tag |
---|
553 | // cloud in the menubar. Only the most represented tags will be shown |
---|
554 | $conf['menubar_tag_cloud_items_number'] = 100; |
---|
555 | |
---|
556 | // content_tag_cloud_items_number: number of tags to show in the tag |
---|
557 | // cloud on the content page. Only the most represented tags will be shown |
---|
558 | $conf['content_tag_cloud_items_number'] = 12; |
---|
559 | |
---|
560 | // tags_levels: number of levels to use for display. Each level is bind to a |
---|
561 | // CSS class tagLevelX. |
---|
562 | $conf['tags_levels'] = 5; |
---|
563 | |
---|
564 | // +-----------------------------------------------------------------------+ |
---|
565 | // | Notification by mail | |
---|
566 | // +-----------------------------------------------------------------------+ |
---|
567 | |
---|
568 | // Default Value for nbm user |
---|
569 | $conf['nbm_default_value_user_enabled'] = false; |
---|
570 | |
---|
571 | // Search list user to send quickly (List all without to check news) |
---|
572 | // More quickly but less fun to use |
---|
573 | $conf['nbm_list_all_enabled_users_to_send'] = false; |
---|
574 | |
---|
575 | // Max time used on one pass in order to send mails. |
---|
576 | // Timeout delay ratio. |
---|
577 | $conf['nbm_max_treatment_timeout_percent'] = 0.8; |
---|
578 | |
---|
579 | // If timeout cannot be compite with nbm_max_treatment_timeout_percent, |
---|
580 | // nbm_treatment_timeout_default is used by default |
---|
581 | $conf['nbm_treatment_timeout_default'] = 20; |
---|
582 | |
---|
583 | // Parameters used in get_recent_post_dates for the 2 kind of notification |
---|
584 | $conf['recent_post_dates'] = array( |
---|
585 | 'RSS' => array('max_dates' => 5, 'max_elements' => 6, 'max_cats' => 6), |
---|
586 | 'NBM' => array('max_dates' => 7, 'max_elements' => 3, 'max_cats' => 9) |
---|
587 | ); |
---|
588 | |
---|
589 | // +-----------------------------------------------------------------------+ |
---|
590 | // | Set default admin layout | |
---|
591 | // +-----------------------------------------------------------------------+ |
---|
592 | |
---|
593 | // Must be user setable in future |
---|
594 | // Default value of admin layout |
---|
595 | // Step 1, default_admin_layout is not defined |
---|
596 | // null value, user_layout is used for admin layout |
---|
597 | // defined value, this value are used for admin layout |
---|
598 | // Next on step 2, default_admin_layout will be used |
---|
599 | // if there are not checked like admin layout |
---|
600 | // stored on user informations |
---|
601 | //$conf['default_admin_layout']='yoga/dark'; |
---|
602 | |
---|
603 | // should we load the active plugins ? true=Yes, false=No |
---|
604 | $conf['enable_plugins']=true; |
---|
605 | |
---|
606 | // +-----------------------------------------------------------------------+ |
---|
607 | // | Set default for Web Service | |
---|
608 | // +-----------------------------------------------------------------------+ |
---|
609 | |
---|
610 | // Web services are allowed (true) or completely forbidden (false) |
---|
611 | $conf['allow_web_services'] = true; |
---|
612 | |
---|
613 | // Maximum number of images to be returned foreach call to the web service |
---|
614 | $conf['ws_max_images_per_page'] = 500; |
---|
615 | |
---|
616 | // On Access control false / Admim Web Service need Php cURL extension |
---|
617 | // Controls are done on public basis or |
---|
618 | // if connected on member authorization basis |
---|
619 | $conf['ws_access_control'] = false; |
---|
620 | |
---|
621 | // On Access control true |
---|
622 | // Additionnal controls are made based on Web Service Access Table |
---|
623 | |
---|
624 | // Max returned rows number ( > 0 ) |
---|
625 | $conf['ws_allowed_limit'] = array(1,2,3,5,10,25); |
---|
626 | |
---|
627 | // By default can be delayed by 0, 1, 2, 3, 5, 7, 14 or 30 days |
---|
628 | // 0 it's Now(), don't remove that one |
---|
629 | $conf['ws_postponed_start'] = array(0,1,2,3,5,7,14,30); /* In days */ |
---|
630 | |
---|
631 | // By default 10, 5, 2, 1 year(s) or 6, 3, 1 month(s) |
---|
632 | // or 15, 10, 7, 5, 1, 0 day(s) |
---|
633 | // 0 it's temporary closed (Useful for one access) |
---|
634 | $conf['ws_durations'] = array(3650,1825,730,365,182,91,30,15,10,7,5,1,0); |
---|
635 | |
---|
636 | // +-----------------------------------------------------------------------+ |
---|
637 | // | Filter | |
---|
638 | // +-----------------------------------------------------------------------+ |
---|
639 | // $conf['filter_pages'] contains configuration for each pages |
---|
640 | // o If values are not defined for a specific page, default value are used |
---|
641 | // o Array is composed by the basename of each page without extention |
---|
642 | // o List of value names: |
---|
643 | // - used: filter function are used |
---|
644 | // (if false nothing is done [start, cancel, stop, ...] |
---|
645 | // - cancel: cancel current started filter |
---|
646 | // - add_notes: add notes about current started filter on the header |
---|
647 | // o Empty configuration in order to disable completely filter functions |
---|
648 | // No filter, No icon,... |
---|
649 | // $conf['filter_pages'] = array(); |
---|
650 | $conf['filter_pages'] = array |
---|
651 | ( |
---|
652 | // Default page |
---|
653 | 'default' => array( |
---|
654 | 'used' => true, 'cancel' => false, 'add_notes' => false), |
---|
655 | // Real pages |
---|
656 | 'index' => array('add_notes' => true), |
---|
657 | 'tags' => array('add_notes' => true), |
---|
658 | 'search' => array('add_notes' => true), |
---|
659 | 'comments' => array('add_notes' => true), |
---|
660 | 'admin' => array('used' => false), |
---|
661 | 'feed' => array('used' => false), |
---|
662 | 'notification' => array('used' => false), |
---|
663 | 'nbm' => array('used' => false), |
---|
664 | 'popuphelp' => array('used' => false), |
---|
665 | 'profile' => array('used' => false), |
---|
666 | 'web_service' => array('used' => false), |
---|
667 | 'ws' => array('used' => false), |
---|
668 | 'identification' => array('cancel' => true), |
---|
669 | 'install' => array('cancel' => true), |
---|
670 | 'password' => array('cancel' => true), |
---|
671 | 'register' => array('cancel' => true), |
---|
672 | 'upgrade_feed' => array('cancel' => true), |
---|
673 | ); |
---|
674 | |
---|
675 | // +-----------------------------------------------------------------------+ |
---|
676 | // | Light slideshow | |
---|
677 | // +-----------------------------------------------------------------------+ |
---|
678 | // $conf['light_slideshow'] indicates to use slideshow.tpl in state of |
---|
679 | // picture.tpl for slideshow |
---|
680 | // Take care to have slideshow.tpl in all available templates |
---|
681 | // Or set it false. |
---|
682 | // Check if Picture's plugins are compliant with it |
---|
683 | // Every plugin from 1.7 would be design to manage light_slideshow case. |
---|
684 | $conf['light_slideshow'] = true; |
---|
685 | |
---|
686 | ?> |
---|