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

Last change on this file since 13170 was 13115, checked in by rvelices, 9 years ago

improvement of picture title on picture page, drop boxes on index page ...
sharpening uses a zider scale range

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