2003-05-09 14:42:42 +02:00
|
|
|
<?php
|
2004-02-12 00:20:38 +01:00
|
|
|
// +-----------------------------------------------------------------------+
|
2004-11-06 22:12:59 +01:00
|
|
|
// | PhpWebGallery - a PHP based picture gallery |
|
|
|
|
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
|
2006-02-01 00:38:48 +01:00
|
|
|
// | Copyright (C) 2003-2006 PhpWebGallery Team - http://phpwebgallery.net |
|
2004-02-12 00:20:38 +01:00
|
|
|
// +-----------------------------------------------------------------------+
|
2004-11-06 22:12:59 +01:00
|
|
|
// | branch : BSF (Best So Far)
|
2004-02-12 00:20:38 +01:00
|
|
|
// | file : $RCSfile$
|
|
|
|
// | last update : $Date$
|
|
|
|
// | last modifier : $Author$
|
|
|
|
// | revision : $Revision$
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | This program is free software; you can redistribute it and/or modify |
|
|
|
|
// | it under the terms of the GNU General Public License as published by |
|
|
|
|
// | the Free Software Foundation |
|
|
|
|
// | |
|
|
|
|
// | This program is distributed in the hope that it will be useful, but |
|
|
|
|
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
|
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
|
|
// | General Public License for more details. |
|
|
|
|
// | |
|
|
|
|
// | You should have received a copy of the GNU General Public License |
|
|
|
|
// | along with this program; if not, write to the Free Software |
|
|
|
|
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
|
|
|
|
// | USA. |
|
|
|
|
// +-----------------------------------------------------------------------+
|
2004-02-13 00:25:05 +01:00
|
|
|
|
2004-10-12 00:35:48 +02:00
|
|
|
/**
|
|
|
|
* configuration page
|
|
|
|
*
|
|
|
|
* Set configuration parameters that are not in the table config. In the
|
|
|
|
* application, configuration parameters are considered in the same way
|
2005-04-26 00:11:57 +02:00
|
|
|
* coming from config table or config_default.inc.php.
|
2004-10-12 00:35:48 +02:00
|
|
|
*
|
2005-04-26 00:11:57 +02:00
|
|
|
* It is recommended to let config_default.inc.php as provided and to
|
|
|
|
* overwrite configuration in your local configuration file
|
2005-09-21 00:04:57 +02:00
|
|
|
* config_local.inc.php. See tools/config_local.inc.php as an example.
|
2005-04-26 00:11:57 +02:00
|
|
|
*
|
|
|
|
* Why having some parameters in config table and others in
|
|
|
|
* config_*.inc.php? Modifying config_*.inc.php is a "hard" task for low
|
|
|
|
* skilled users, they need a GUI for this : admin/configuration. But only
|
|
|
|
* parameters that might be modified by low skilled users are in config
|
|
|
|
* table, other parameters are in config_*.inc.php
|
2004-10-12 00:35:48 +02:00
|
|
|
*/
|
|
|
|
|
2005-09-03 18:36:05 +02:00
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | misc |
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
|
2004-10-12 00:35:48 +02:00
|
|
|
// order_by : how to change the order of display for images in a category ?
|
2003-05-09 14:42:42 +02:00
|
|
|
//
|
|
|
|
// There are several fields that can order the display :
|
2004-10-12 00:35:48 +02:00
|
|
|
//
|
2003-05-09 14:42:42 +02:00
|
|
|
// - date_available : the date of the adding to the gallery
|
|
|
|
// - file : the name of the file
|
2004-10-12 00:35:48 +02:00
|
|
|
// - id : element identifier
|
|
|
|
// - date_creation : date of element creation
|
|
|
|
//
|
|
|
|
// Once you've chosen which field(s) to use for ordering, you must chose the
|
|
|
|
// ascending or descending order for each field. examples :
|
|
|
|
//
|
2003-05-09 14:42:42 +02:00
|
|
|
// 1. $conf['order_by'] = " order by date_available desc, file asc";
|
|
|
|
// will order pictures by date_available descending & by filename ascending
|
2004-10-12 00:35:48 +02:00
|
|
|
//
|
2003-05-09 14:42:42 +02:00
|
|
|
// 2. $conf['order_by'] = " order by file asc";
|
2004-10-12 00:35:48 +02:00
|
|
|
// will only order pictures by file ascending without taking into account
|
|
|
|
// the date_available
|
2004-08-29 19:25:33 +02:00
|
|
|
$conf['order_by'] = ' ORDER BY date_available DESC, file ASC, id ASC';
|
2003-05-09 14:42:42 +02:00
|
|
|
|
2004-10-12 00:35:48 +02:00
|
|
|
// slideshow_period : waiting time in seconds before loading a new page
|
|
|
|
// during automated slideshow
|
|
|
|
$conf['slideshow_period'] = 4;
|
|
|
|
|
2004-11-10 23:34:54 +01:00
|
|
|
// file_ext : file extensions (case sensitive) authorized
|
2004-10-12 00:35:48 +02:00
|
|
|
$conf['file_ext'] = array('jpg','JPG','png','PNG','gif','GIF','mpg','zip',
|
|
|
|
'avi','mp3','ogg');
|
|
|
|
|
|
|
|
// picture_ext : file extensions for picture file, must be a subset of
|
|
|
|
// file_ext
|
|
|
|
$conf['picture_ext'] = array('jpg','JPG','png','PNG','gif','GIF');
|
|
|
|
|
|
|
|
// top_number : number of element to display for "best rated" and "most
|
|
|
|
// visited" categories
|
2004-12-12 22:06:39 +01:00
|
|
|
$conf['top_number'] = 15;
|
2004-10-12 00:35:48 +02:00
|
|
|
|
|
|
|
// anti-flood_time : number of seconds between 2 comments : 0 to disable
|
|
|
|
$conf['anti-flood_time'] = 60;
|
|
|
|
|
2005-09-03 18:36:05 +02:00
|
|
|
// calendar_datefield : date field of table "images" used for calendar
|
|
|
|
// catgory
|
|
|
|
$conf['calendar_datefield'] = 'date_creation';
|
|
|
|
|
2006-02-24 06:58:48 +01:00
|
|
|
// calendar_show_any : the calendar shows an aditional 'any' button in the
|
|
|
|
// year/month/week/day navigation bars
|
|
|
|
$conf['calendar_show_any'] = true;
|
|
|
|
|
2006-02-28 05:28:06 +01:00
|
|
|
// calendar_show_empty : the calendar shows month/weeks/days even if there are
|
|
|
|
//no elements for these
|
|
|
|
$conf['calendar_show_empty'] = true;
|
|
|
|
|
2006-03-01 05:33:52 +01:00
|
|
|
// calendar_month_cell_width, calendar_month_cell_height : define the
|
|
|
|
// width and the height of a cell in the monthly calendar when viewing a
|
|
|
|
// given month. a value of 0 means that the pretty view is not shown.
|
|
|
|
// a good suggestion would be to have the width and the height equal
|
|
|
|
// and smaller than tn_width and tn_height. NOTE THAT tn_width AND tn_height
|
|
|
|
// MUST CORRESPOND APPROXIMATIVELY TO YOUR REAL THUMBNAIL SIZE, OTHERWISE
|
|
|
|
// THE IMAGES WILL NOT SHOW CORRECTLY
|
|
|
|
$conf['calendar_month_cell_width'] =80;
|
|
|
|
$conf['calendar_month_cell_height']=80;
|
|
|
|
|
2005-09-03 18:36:05 +02:00
|
|
|
// newcat_default_commentable : at creation, must a category be commentable
|
|
|
|
// or not ?
|
|
|
|
$conf['newcat_default_commentable'] = 'true';
|
|
|
|
|
|
|
|
// newcat_default_uploadable : at creation, must a category be uploadable or
|
|
|
|
// not ?
|
|
|
|
$conf['newcat_default_uploadable'] = 'false';
|
|
|
|
|
|
|
|
// newcat_default_visible : at creation, must a category be visible or not ?
|
|
|
|
// Warning : if the parent category is invisible, the category is
|
|
|
|
// automatically create invisible. (invisible = locked)
|
|
|
|
$conf['newcat_default_visible'] = 'true';
|
|
|
|
|
|
|
|
// newcat_default_status : at creation, must a category be public or private
|
|
|
|
// ? Warning : if the parent category is private, the category is
|
|
|
|
// automatically create private.
|
|
|
|
$conf['newcat_default_status'] = 'public';
|
|
|
|
|
2006-03-14 00:27:34 +01:00
|
|
|
// newuser_default_enabled_high : at creation, must a user with enabled_high or not
|
|
|
|
$conf['newuser_default_enabled_high'] = 'true';
|
|
|
|
|
2005-09-03 18:36:05 +02:00
|
|
|
// level_separator : character string used for separating a category level
|
|
|
|
// to the sub level. Suggestions : ' / ', ' » ', ' → ', ' - ',
|
|
|
|
// ' >'
|
|
|
|
$conf['level_separator'] = ' / ';
|
|
|
|
|
|
|
|
// paginate_pages_around : on paginate navigation bar, how many pages
|
|
|
|
// display before and after the current page ?
|
|
|
|
$conf['paginate_pages_around'] = 2;
|
|
|
|
|
|
|
|
// tn_width : default width for thumbnails creation
|
|
|
|
$conf['tn_width'] = 128;
|
|
|
|
|
|
|
|
// tn_height : default height for thumbnails creation
|
2005-11-16 23:06:16 +01:00
|
|
|
$conf['tn_height'] = 128;
|
2005-09-03 18:36:05 +02:00
|
|
|
|
|
|
|
// show_version : shall the version of PhpWebGallery be displayed at the
|
|
|
|
// bottom of each page ?
|
|
|
|
$conf['show_version'] = true;
|
|
|
|
|
|
|
|
// links : list of external links to add in the menu. An example is the best
|
|
|
|
// than a long explanation :
|
|
|
|
//
|
|
|
|
// $conf['links'] = array(
|
|
|
|
// 'http://phpwebgallery.net' => 'PWG website',
|
|
|
|
// 'http://forum.phpwebgallery.net' => 'PWG forum',
|
|
|
|
// 'http://phpwebgallery.net/doc' => 'PWG wiki'
|
|
|
|
// );
|
|
|
|
//
|
|
|
|
// If the array is empty, the "Links" box won't be displayed on the main
|
|
|
|
// page.
|
|
|
|
$conf['links'] = array();
|
|
|
|
|
|
|
|
// show_thumbnail_caption : on thumbnails page, show thumbnail captions ?
|
|
|
|
$conf['show_thumbnail_caption'] = true;
|
|
|
|
|
|
|
|
// show_picture_name_on_title : on picture presentation page, show picture
|
|
|
|
// name ?
|
|
|
|
$conf['show_picture_name_on_title'] = true;
|
|
|
|
|
|
|
|
// allow_random_representative : do you wish PhpWebGallery to search among
|
|
|
|
// categories elements a new representative at each reload ?
|
|
|
|
//
|
|
|
|
// If false, an element is randomly or manually chosen to represent its
|
|
|
|
// category and remains the representative as long as an admin does not
|
|
|
|
// change it.
|
|
|
|
//
|
|
|
|
// Warning : setting this parameter to true is CPU consuming. Each time you
|
|
|
|
// change the value of this parameter from false to true, an administrator
|
|
|
|
// must update categories informations in screen [Admin > General >
|
|
|
|
// Maintenance].
|
|
|
|
$conf['allow_random_representative'] = false;
|
|
|
|
|
|
|
|
// allow_html_descriptions : authorize administrators to use HTML in
|
|
|
|
// category and element description.
|
|
|
|
$conf['allow_html_descriptions'] = true;
|
|
|
|
|
- improvement: long localized messages are in HTML files instead of $lang
array. This is the case of admin/help and about pages.
- deletion: of unused functions (ts_to_mysqldt, is_image, TN_exists,
check_date_format, date_convert, get_category_directories,
get_used_metadata_list, array_remove, pwg_write_debug,
get_group_restrictions, get_all_group_restrictions, is_group_allowed,
style_select, deprecated_getAttribute).
- new: many new contextual help pages to replace descriptions previously
included in pages.
- modification: reorganisation of language files. Deletion of unused
language keys, alphabetical sort. No faq.lang.php anymore (replaced by
help.html). Only done for en_UK.iso-8859-1.
git-svn-id: http://piwigo.org/svn/trunk@862 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-09-14 23:57:05 +02:00
|
|
|
// prefix_thumbnail : string before filename. Thumbnail's prefix must only
|
|
|
|
// contain characters among : a to z (case insensitive), "-" or "_".
|
2005-09-03 18:36:05 +02:00
|
|
|
$conf['prefix_thumbnail'] = 'TN-';
|
|
|
|
|
2005-10-05 21:41:37 +02:00
|
|
|
// users_page: how many users to display in screen
|
|
|
|
// Administration>Identification>Users?
|
|
|
|
$conf['users_page'] = 20;
|
|
|
|
|
2005-10-18 23:37:08 +02:00
|
|
|
// mail_options: only set it true if you have a send mail warning with
|
|
|
|
// "options" parameter missing on mail() function execution.
|
|
|
|
$conf['mail_options'] = false;
|
|
|
|
|
2006-02-01 23:07:26 +01:00
|
|
|
// send_bcc_mail_webmaster: send bcc mail to webmaster. Set true for debug
|
|
|
|
// or test.
|
2006-02-01 00:38:48 +01:00
|
|
|
$conf['send_bcc_mail_webmaster'] = false;
|
|
|
|
|
2005-11-24 22:37:29 +01:00
|
|
|
// check_upgrade_feed: check if there are database upgrade required. Set to
|
|
|
|
// true, a message will strongly encourage you to upgrade your database if
|
|
|
|
// needed.
|
|
|
|
//
|
|
|
|
// This configuration parameter is set to true in BSF branch and to false
|
|
|
|
// elsewhere.
|
|
|
|
$conf['check_upgrade_feed'] = true;
|
|
|
|
|
2006-03-16 23:34:45 +01:00
|
|
|
// rate_items: available rates for a picture
|
|
|
|
$conf['rate_items'] = array(0,1,2,3,4,5);
|
|
|
|
|
2005-09-03 18:36:05 +02:00
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | metadata |
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
|
|
|
|
// show_iptc: Show IPTC metadata on picture.php if asked by user
|
|
|
|
$conf['show_iptc'] = false;
|
|
|
|
|
2004-10-12 00:35:48 +02:00
|
|
|
// show_iptc_mapping : is used for showing IPTC metadata on picture.php
|
|
|
|
// page. For each key of the array, you need to have the same key in the
|
|
|
|
// $lang array. For example, if my first key is 'iptc_keywords' (associated
|
|
|
|
// to '2#025') then you need to have $lang['iptc_keywords'] set in
|
|
|
|
// language/$user['language']/common.lang.php. If you don't have the lang
|
2004-08-25 23:09:09 +02:00
|
|
|
// var set, the key will be simply displayed
|
|
|
|
//
|
|
|
|
// To know how to associated iptc_field with their meaning, use
|
|
|
|
// tools/metadata.php
|
|
|
|
$conf['show_iptc_mapping'] = array(
|
|
|
|
'iptc_keywords' => '2#025',
|
|
|
|
'iptc_caption_writer' => '2#122',
|
|
|
|
'iptc_byline_title' => '2#085',
|
|
|
|
'iptc_caption' => '2#120'
|
|
|
|
);
|
|
|
|
|
2005-09-03 18:36:05 +02:00
|
|
|
// use_iptc: Use IPTC data during database synchronization with files
|
|
|
|
// metadata
|
|
|
|
$conf['use_iptc'] = false;
|
|
|
|
|
2004-11-10 23:34:54 +01:00
|
|
|
// use_iptc_mapping : in which IPTC fields will PhpWebGallery find image
|
|
|
|
// information ? This setting is used during metadata synchronisation. It
|
|
|
|
// associates a phpwebgallery_images column name to a IPTC key
|
|
|
|
$conf['use_iptc_mapping'] = array(
|
|
|
|
'keywords' => '2#025',
|
|
|
|
'date_creation' => '2#055',
|
|
|
|
'author' => '2#122',
|
|
|
|
'name' => '2#005',
|
|
|
|
'comment' => '2#120'
|
|
|
|
);
|
|
|
|
|
2005-09-03 18:36:05 +02:00
|
|
|
// show_exif: Show EXIF metadata on picture.php (table or line presentation
|
|
|
|
// avalaible)
|
|
|
|
$conf['show_exif'] = true;
|
|
|
|
|
2004-10-12 00:35:48 +02:00
|
|
|
// show_exif_fields : in EXIF fields, you can choose to display fields in
|
|
|
|
// sub-arrays, for example ['COMPUTED']['ApertureFNumber']. for this, add
|
2004-08-25 23:09:09 +02:00
|
|
|
// 'COMPUTED;ApertureFNumber' in $conf['show_exif_fields']
|
|
|
|
//
|
|
|
|
// The key displayed in picture.php will be $lang['exif_field_Make'] for
|
|
|
|
// example and if it exists. For compound fields, only take into account the
|
|
|
|
// last part : for key 'COMPUTED;ApertureFNumber', you need
|
|
|
|
// $lang['exif_field_ApertureFNumber']
|
2004-10-12 00:35:48 +02:00
|
|
|
//
|
|
|
|
// for PHP version newer than 4.1.2 :
|
|
|
|
// $conf['show_exif_fields'] = array('CameraMake','CameraModel','DateTime');
|
2006-02-28 05:28:06 +01:00
|
|
|
//
|
2005-09-03 18:36:05 +02:00
|
|
|
$conf['show_exif_fields'] = array(
|
|
|
|
'Make',
|
|
|
|
'Model',
|
|
|
|
'DateTimeOriginal',
|
|
|
|
'COMPUTED;ApertureFNumber'
|
|
|
|
);
|
2004-08-27 01:00:28 +02:00
|
|
|
|
2005-09-03 18:36:05 +02:00
|
|
|
// use_exif: Use EXIF data during database synchronization with files
|
|
|
|
// metadata
|
|
|
|
$conf['use_exif'] = false;
|
2004-10-12 00:35:48 +02:00
|
|
|
|
2005-09-03 18:36:05 +02:00
|
|
|
// use_exif_mapping: same behaviour as use_iptc_mapping
|
|
|
|
$conf['use_exif_mapping'] = array(
|
|
|
|
'date_creation' => 'DateTimeOriginal'
|
|
|
|
);
|
|
|
|
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | sessions |
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
|
2006-02-28 05:28:06 +01:00
|
|
|
// session_use_cookies: specifies to use cookie to store
|
2006-01-18 16:16:30 +01:00
|
|
|
// the session id on client side
|
|
|
|
$conf['session_use_cookies'] = true;
|
2006-01-15 14:45:42 +01:00
|
|
|
|
2006-02-28 05:28:06 +01:00
|
|
|
// session_use_only_cookies: specifies to only use cookie to store
|
2006-01-18 16:16:30 +01:00
|
|
|
// the session id on client side
|
|
|
|
$conf['session_use_only_cookies'] = true;
|
2006-01-15 14:45:42 +01:00
|
|
|
|
2006-01-18 16:16:30 +01:00
|
|
|
// session_use_trans_sid: do not use transparent session id support
|
|
|
|
$conf['session_use_trans_sid'] = false;
|
2006-01-15 14:45:42 +01:00
|
|
|
|
2006-01-18 16:16:30 +01:00
|
|
|
// session_name: specifies the name of the session which is used as cookie name
|
2006-01-15 14:45:42 +01:00
|
|
|
$conf['session_name'] = 'pwg_id';
|
|
|
|
|
2006-02-28 05:28:06 +01:00
|
|
|
// session_save_handler: comment the line below
|
2006-01-18 16:16:30 +01:00
|
|
|
// to use file handler for sessions.
|
2006-01-15 14:45:42 +01:00
|
|
|
$conf['session_save_handler'] = 'db';
|
|
|
|
|
2005-09-03 18:36:05 +02:00
|
|
|
// authorize_remembering : permits user to stay logged for a long time. It
|
|
|
|
// creates a cookie on client side.
|
|
|
|
$conf['authorize_remembering'] = true;
|
2004-10-03 01:12:50 +02:00
|
|
|
|
2004-10-12 00:35:48 +02:00
|
|
|
// remember_me_length : time of validity for "remember me" cookies, in
|
|
|
|
// seconds.
|
2004-10-03 01:12:50 +02:00
|
|
|
$conf['remember_me_length'] = 31536000;
|
|
|
|
|
2004-10-12 00:35:48 +02:00
|
|
|
// session_length : time of validity for normal session, in seconds.
|
2004-10-03 01:12:50 +02:00
|
|
|
$conf['session_length'] = 3600;
|
|
|
|
|
2005-09-03 18:36:05 +02:00
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | debug |
|
|
|
|
// +-----------------------------------------------------------------------+
|
2004-11-05 22:36:35 +01:00
|
|
|
|
|
|
|
// show_queries : for debug purpose, show queries and execution times
|
|
|
|
$conf['show_queries'] = false;
|
|
|
|
|
|
|
|
// show_gt : display generation time at the bottom of each page
|
|
|
|
$conf['show_gt'] = true;
|
2004-11-13 14:43:53 +01:00
|
|
|
|
2005-09-03 18:36:05 +02:00
|
|
|
// debug_l10n : display a warning message each time an unset language key is
|
|
|
|
// accessed
|
|
|
|
$conf['debug_l10n'] = false;
|
2005-07-17 16:58:42 +02:00
|
|
|
|
2005-09-03 18:36:05 +02:00
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | authentication |
|
|
|
|
// +-----------------------------------------------------------------------+
|
2005-07-17 17:06:39 +02:00
|
|
|
|
|
|
|
// apache_authentication : use Apache authentication as reference instead of
|
|
|
|
// users table ?
|
|
|
|
$conf['apache_authentication'] = false;
|
2005-08-08 22:52:19 +02:00
|
|
|
|
2005-09-18 00:22:22 +02:00
|
|
|
// users_table: which table is the reference for users? Can be a different
|
2005-08-08 22:52:19 +02:00
|
|
|
// table than PhpWebGallery table
|
2005-09-18 00:22:22 +02:00
|
|
|
//
|
|
|
|
// If you decide to use another table than the default one, you need to
|
|
|
|
// prepare your database by deleting some datas :
|
|
|
|
//
|
|
|
|
// delete from phpwebgallery_user_access;
|
|
|
|
// delete from phpwebgallery_user_cache;
|
|
|
|
// delete from phpwebgallery_user_feed;
|
|
|
|
// delete from phpwebgallery_user_group;
|
|
|
|
// delete from phpwebgallery_user_infos;
|
|
|
|
// delete from phpwebgallery_sessions;
|
|
|
|
// delete from phpwebgallery_rate;
|
|
|
|
// update phpwebgallery_images set average_rate = NULL;
|
|
|
|
// delete from phpwebgallery_caddie;
|
|
|
|
// delete from phpwebgallery_favorites;
|
|
|
|
//
|
|
|
|
// All informations contained in these tables and column are related to
|
|
|
|
// phpwebgallery_users table.
|
2005-08-08 22:52:19 +02:00
|
|
|
$conf['users_table'] = $prefixeTable.'users';
|
|
|
|
|
|
|
|
// user_fields : mapping between generic field names and table specific
|
|
|
|
// field names. For example, in PWG, the mail address is names
|
|
|
|
// "mail_address" and in punbb, it's called "email".
|
|
|
|
$conf['user_fields'] = array(
|
|
|
|
'id' => 'id',
|
|
|
|
'username' => 'username',
|
|
|
|
'password' => 'password',
|
|
|
|
'email' => 'mail_address'
|
|
|
|
);
|
|
|
|
|
|
|
|
// pass_convert : function to crypt or hash the clear user password to store
|
|
|
|
// it in the database
|
|
|
|
$conf['pass_convert'] = create_function('$s', 'return md5($s);');
|
|
|
|
|
|
|
|
// guest_id : id of the anonymous user
|
|
|
|
$conf['guest_id'] = 2;
|
2005-08-14 01:09:54 +02:00
|
|
|
|
2005-09-03 18:36:05 +02:00
|
|
|
// webmaster_id : webmaster'id.
|
|
|
|
$conf['webmaster_id'] = 1;
|
2005-08-18 19:59:00 +02:00
|
|
|
|
2006-03-17 18:59:59 +01:00
|
|
|
// allow to use adviser mode
|
|
|
|
$conf['allow_adviser'] = false;
|
|
|
|
|
2005-09-03 18:36:05 +02:00
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | upload |
|
|
|
|
// +-----------------------------------------------------------------------+
|
2005-08-19 15:54:40 +02:00
|
|
|
|
2005-09-03 18:36:05 +02:00
|
|
|
// upload_maxfilesize: maximum filesize for the uploaded pictures. In
|
|
|
|
// kilobytes.
|
|
|
|
$conf['upload_maxfilesize'] = 200;
|
- new : HTML BODY identifier to let CSS stylesheets manage specific
behaviour.
- deletion : admin/search useless
- improvement : in admin/user_list, special behaviour for true/false fields
(expand, show_comments)
- new : gallery_title and gallery_description are displayed at the top of
each page.
- improvement : simplification in HTML for categories menu.
- improvement : standardization of presentation in all public pages
(identification, registration, search, profile, notification, comments,
etc.)
(not in ChangeLog, below this line)
- add forgotten notification.php (should have been added in a previous
commit)
- [template cclear] deletion of useless class .bouton
- [template cclear] for test purpose, new presentation of register page
(using FORM.filter)
- [template cclear] adaptation of admin/group_list from template default
- [template cclear] deletion of obsolete admin/infos_images
- [template cclear] deletion of obsolete admin/search_username
- [template cclear] new icon register.png
git-svn-id: http://piwigo.org/svn/trunk@850 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-08-26 00:43:47 +02:00
|
|
|
|
2005-09-03 18:36:05 +02:00
|
|
|
// upload_maxheight: maximum height authorized for the uploaded images. In
|
|
|
|
// pixels.
|
|
|
|
$conf['upload_maxheight'] = 800;
|
2005-08-19 15:54:40 +02:00
|
|
|
|
2005-09-03 18:36:05 +02:00
|
|
|
// upload_maxwidth: maximum width authorized for the uploaded images. In
|
2005-10-18 22:22:51 +02:00
|
|
|
// pixels.
|
2005-09-03 18:36:05 +02:00
|
|
|
$conf['upload_maxwidth'] = 800;
|
|
|
|
|
|
|
|
// upload_maxheight_thumbnail: maximum height authorized for the uploaded
|
|
|
|
// thumbnails
|
|
|
|
$conf['upload_maxheight_thumbnail'] = 100;
|
- new : HTML BODY identifier to let CSS stylesheets manage specific
behaviour.
- deletion : admin/search useless
- improvement : in admin/user_list, special behaviour for true/false fields
(expand, show_comments)
- new : gallery_title and gallery_description are displayed at the top of
each page.
- improvement : simplification in HTML for categories menu.
- improvement : standardization of presentation in all public pages
(identification, registration, search, profile, notification, comments,
etc.)
(not in ChangeLog, below this line)
- add forgotten notification.php (should have been added in a previous
commit)
- [template cclear] deletion of useless class .bouton
- [template cclear] for test purpose, new presentation of register page
(using FORM.filter)
- [template cclear] adaptation of admin/group_list from template default
- [template cclear] deletion of obsolete admin/infos_images
- [template cclear] deletion of obsolete admin/search_username
- [template cclear] new icon register.png
git-svn-id: http://piwigo.org/svn/trunk@850 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-08-26 00:43:47 +02:00
|
|
|
|
2005-09-03 18:36:05 +02:00
|
|
|
// upload_maxwidth_thumbnail: maximum width authorized for the uploaded
|
|
|
|
// thumbnails
|
|
|
|
$conf['upload_maxwidth_thumbnail'] = 150;
|
2005-10-17 09:21:30 +02:00
|
|
|
|
|
|
|
// +-----------------------------------------------------------------------+
|
2005-10-18 23:37:08 +02:00
|
|
|
// | history |
|
2005-10-17 09:21:30 +02:00
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
|
|
|
|
// nb_logs_page : how many logs to display on a page
|
|
|
|
$conf['nb_logs_page'] = 300;
|
|
|
|
|
2005-10-18 23:37:08 +02:00
|
|
|
// history_admin : history admin visits ?
|
2005-10-17 09:21:30 +02:00
|
|
|
$conf['history_admin'] = false;
|
|
|
|
|
2006-03-23 02:49:04 +01:00
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | urls |
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
|
|
|
|
// question_mark_in_urls : the generated urls contain a ? sign. This can be
|
|
|
|
// changed to false only if the server translates PATH_INFO variable
|
|
|
|
// (depends on the server AcceptPathInfo directive configuration)
|
|
|
|
$conf['question_mark_in_urls'] = true;
|
|
|
|
|
|
|
|
// picture_url_style : one of 'id' 'id-file' or 'file'. 'id-file' or 'file'
|
|
|
|
// mean that the file name (without extension will appear in the url).
|
|
|
|
// Note that one aditionnal sql query will occur if 'file' is choosen.
|
|
|
|
// Note that you might experience navigation issues if you choose 'file'
|
|
|
|
// and your file names are not unique
|
|
|
|
$conf['picture_url_style'] = 'id';
|
|
|
|
|
|
|
|
|
|
|
|
// php_extension_in_urls : if true, the urls generated for picture and
|
|
|
|
// category will not contain the .php extension. This will work only if
|
|
|
|
// .htaccess defines Options +MultiViews parameter or url rewriting rules
|
|
|
|
// are active.
|
|
|
|
$conf['php_extension_in_urls'] = true;
|
|
|
|
|
2004-02-12 00:20:38 +01:00
|
|
|
?>
|