2003-05-09 14:42:42 +02:00
|
|
|
<?php
|
2004-02-12 00:20:38 +01:00
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | config.inc.php |
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | application : PhpWebGallery <http://phpwebgallery.net> |
|
|
|
|
// | branch : BSF (Best So Far) |
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | 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
|
|
|
|
* coming from config table or config.inc.php.
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
|
|
|
|
// last_days : options for X last days to displays for comments
|
|
|
|
$conf['last_days'] = array(1,2,3,10,30,365);
|
|
|
|
|
|
|
|
// file_ext : file extensions (case insensitive) authorized
|
|
|
|
$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
|
|
|
|
$conf['top_number'] = 10;
|
|
|
|
|
|
|
|
// anti-flood_time : number of seconds between 2 comments : 0 to disable
|
|
|
|
$conf['anti-flood_time'] = 60;
|
|
|
|
|
|
|
|
// max_LOV_categories : maximum number of categories to display in a list of
|
|
|
|
// value. Over this limit, a textfield is displayed, asking for a category
|
|
|
|
// identifier
|
2004-02-02 01:55:18 +01:00
|
|
|
$conf['max_LOV_categories'] = 50;
|
2004-03-27 14:24:26 +01:00
|
|
|
|
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'
|
|
|
|
);
|
|
|
|
|
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');
|
|
|
|
//
|
2004-08-25 23:09:09 +02:00
|
|
|
$conf['show_exif_fields'] = array('Make',
|
|
|
|
'Model',
|
|
|
|
'DateTime',
|
|
|
|
'COMPUTED;ApertureFNumber');
|
2004-08-27 01:00:28 +02:00
|
|
|
|
2004-10-12 00:35:48 +02:00
|
|
|
// calendar_datefield : date field of table "images" used for calendar
|
|
|
|
// catgory
|
2004-09-04 10:07:33 +02:00
|
|
|
$conf['calendar_datefield'] = 'date_available';
|
2004-10-12 00:35:48 +02:00
|
|
|
|
|
|
|
// rate : enable feature for rating elements
|
2004-08-31 00:00:46 +02:00
|
|
|
$conf['rate'] = 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;
|
|
|
|
|
2004-10-12 00:35:48 +02:00
|
|
|
// session_id_size : a session identifier is compound of alphanumeric
|
2004-10-07 00:48:48 +02:00
|
|
|
// characters and is case sensitive. Each character is among 62
|
|
|
|
// possibilities. The number of possible sessions is
|
|
|
|
// 62^$conf['session_id_size'].
|
2004-10-12 00:35:48 +02:00
|
|
|
//
|
2004-10-07 00:48:48 +02:00
|
|
|
// 62^5 = 916,132,832
|
|
|
|
// 62^10 = 839,299,365,868,340,224
|
2004-10-12 00:35:48 +02:00
|
|
|
//
|
2004-10-07 00:48:48 +02:00
|
|
|
$conf['session_id_size'] = 10;
|
2004-10-23 10:59:46 +02:00
|
|
|
|
|
|
|
// info_nb_elements_page : number of elements to display per page on
|
|
|
|
// admin/infos_images
|
|
|
|
$conf['info_nb_elements_page'] = 5;
|
2004-02-12 00:20:38 +01:00
|
|
|
?>
|