source: trunk/include/config.inc.php @ 571

Last change on this file since 571 was 571, checked in by z0rglub, 20 years ago

admin/infos_image:$pagenb_image_page is replaced by
$confinfo_nb_elements_page : number of item to display on
admin/infos_images.php page

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.3 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// |                            config.inc.php                             |
4// +-----------------------------------------------------------------------+
5// | application   : PhpWebGallery <http://phpwebgallery.net>              |
6// | branch        : BSF (Best So Far)                                     |
7// +-----------------------------------------------------------------------+
8// | file          : $RCSfile$
9// | last update   : $Date: 2004-10-23 08:59:46 +0000 (Sat, 23 Oct 2004) $
10// | last modifier : $Author: z0rglub $
11// | revision      : $Revision: 571 $
12// +-----------------------------------------------------------------------+
13// | This program is free software; you can redistribute it and/or modify  |
14// | it under the terms of the GNU General Public License as published by  |
15// | the Free Software Foundation                                          |
16// |                                                                       |
17// | This program is distributed in the hope that it will be useful, but   |
18// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
19// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
20// | General Public License for more details.                              |
21// |                                                                       |
22// | You should have received a copy of the GNU General Public License     |
23// | along with this program; if not, write to the Free Software           |
24// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
25// | USA.                                                                  |
26// +-----------------------------------------------------------------------+
27
28/**
29 *                           configuration page
30 *
31 * Set configuration parameters that are not in the table config. In the
32 * application, configuration parameters are considered in the same way
33 * coming from config table or config.inc.php.
34 *
35 * Why having some parameters in config table and others in config.inc.php ?
36 * Modifying config.inc.php is a "hard" task for low skilled users, they
37 * need a GUI for this : admin/configuration. But only parameters that might
38 * be modified by low skilled users are in config table, other parameters
39 * are in config.inc.php
40 */
41
42// order_by : how to change the order of display for images in a category ?
43//
44// There are several fields that can order the display :
45//
46//  - date_available : the date of the adding to the gallery
47//  - file : the name of the file
48//  - id : element identifier
49//  - date_creation : date of element creation
50//
51// Once you've chosen which field(s) to use for ordering, you must chose the
52// ascending or descending order for each field.  examples :
53//
54// 1. $conf['order_by'] = " order by date_available desc, file asc";
55//    will order pictures by date_available descending & by filename ascending
56//
57// 2. $conf['order_by'] = " order by file asc";
58//    will only order pictures by file ascending without taking into account
59//    the date_available
60$conf['order_by'] = ' ORDER BY date_available DESC, file ASC, id ASC';
61
62// slideshow_period : waiting time in seconds before loading a new page
63// during automated slideshow
64$conf['slideshow_period'] = 4;
65
66// last_days : options for X last days to displays for comments
67$conf['last_days'] = array(1,2,3,10,30,365);
68
69// file_ext : file extensions (case insensitive) authorized
70$conf['file_ext'] = array('jpg','JPG','png','PNG','gif','GIF','mpg','zip',
71                          'avi','mp3','ogg');
72
73// picture_ext : file extensions for picture file, must be a subset of
74// file_ext
75$conf['picture_ext'] = array('jpg','JPG','png','PNG','gif','GIF');
76
77// top_number : number of element to display for "best rated" and "most
78// visited" categories
79$conf['top_number'] = 10;
80
81// anti-flood_time : number of seconds between 2 comments : 0 to disable
82$conf['anti-flood_time'] = 60;
83
84// max_LOV_categories : maximum number of categories to display in a list of
85// value. Over this limit, a textfield is displayed, asking for a category
86// identifier
87$conf['max_LOV_categories'] = 50;
88
89// show_iptc_mapping : is used for showing IPTC metadata on picture.php
90// page. For each key of the array, you need to have the same key in the
91// $lang array. For example, if my first key is 'iptc_keywords' (associated
92// to '2#025') then you need to have $lang['iptc_keywords'] set in
93// language/$user['language']/common.lang.php. If you don't have the lang
94// var set, the key will be simply displayed
95//
96// To know how to associated iptc_field with their meaning, use
97// tools/metadata.php
98$conf['show_iptc_mapping'] = array(
99  'iptc_keywords'        => '2#025',
100  'iptc_caption_writer'  => '2#122',
101  'iptc_byline_title'    => '2#085',
102  'iptc_caption'         => '2#120'
103  );
104
105// show_exif_fields : in EXIF fields, you can choose to display fields in
106// sub-arrays, for example ['COMPUTED']['ApertureFNumber']. for this, add
107// 'COMPUTED;ApertureFNumber' in $conf['show_exif_fields']
108//
109// The key displayed in picture.php will be $lang['exif_field_Make'] for
110// example and if it exists. For compound fields, only take into account the
111// last part : for key 'COMPUTED;ApertureFNumber', you need
112// $lang['exif_field_ApertureFNumber']
113//
114// for PHP version newer than 4.1.2 :
115// $conf['show_exif_fields'] = array('CameraMake','CameraModel','DateTime');
116//
117$conf['show_exif_fields'] = array('Make',
118                                  'Model',
119                                  'DateTime',
120                                  'COMPUTED;ApertureFNumber');
121
122// calendar_datefield : date field of table "images" used for calendar
123// catgory
124$conf['calendar_datefield'] = 'date_available';
125
126// rate : enable feature for rating elements
127$conf['rate'] = true;
128
129// remember_me_length : time of validity for "remember me" cookies, in
130// seconds.
131$conf['remember_me_length'] = 31536000;
132
133// session_length : time of validity for normal session, in seconds.
134$conf['session_length'] = 3600;
135
136// session_id_size : a session identifier is compound of alphanumeric
137// characters and is case sensitive. Each character is among 62
138// possibilities. The number of possible sessions is
139// 62^$conf['session_id_size'].
140//
141// 62^5  =             916,132,832
142// 62^10 = 839,299,365,868,340,224
143//
144$conf['session_id_size'] = 10;
145
146// info_nb_elements_page : number of elements to display per page on
147// admin/infos_images
148$conf['info_nb_elements_page'] = 5;
149?>
Note: See TracBrowser for help on using the repository browser.