source: branches/2.0/include/config_default.inc.php @ 5254

Last change on this file since 5254 was 5254, checked in by laurent.duretz, 14 years ago

Issue 1521 : Integration of LinkRoot plugin in Piwigo core

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