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

Last change on this file since 10570 was 10570, checked in by patdenice, 13 years ago

feature:2274
Create thumbnail through ajax.
Remove $conftn_width, $conftn_height and $conftn_compression_level parameters.

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