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

Revision 5138, 30.4 KB checked in by plg, 10 years ago (diff)

feature 1505: when there is no photo yet in the gallery, displays a big and
obvious message, guiding to the Administration>Images>Add page.

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