source: trunk/include/config_default.inc.php @ 2284

Last change on this file since 2284 was 2284, checked in by rub, 17 years ago

Resolved issue 0000815: Email format standardization

Merge branch-1_7 2282:2283 into BSF

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