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

Last change on this file since 12118 was 11978, checked in by plg, 13 years ago

feature 2413 added: move gallery_url configuration parameter from database to
local configuration file.

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