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