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

Last change on this file since 22661 was 22661, checked in by plg, 12 years ago

merge r22660 from branch 2.5 to trunk

feature 2899: ability to allow HTML in EXIF/IPTC (disabled by default)

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