Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
6 kaklik 1
<?php
2
// +-----------------------------------------------------------------------+
3
// | PhpWebGallery - a PHP based picture gallery                           |
4
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
5
// | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
6
// +-----------------------------------------------------------------------+
7
// | branch        : BSF (Best So Far)
8
// | file          : $RCSfile: config.inc.php,v $
9
// | last update   : $Date: 2005/05/01 07:47:49 $
10
// | last modifier : $Author: plg $
11
// | revision      : $Revision: 1.53.2.1 $
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 sensitive) 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'] = 15;
80
 
81
// anti-flood_time : number of seconds between 2 comments : 0 to disable
82
$conf['anti-flood_time'] = 60;
83
 
84
// show_iptc_mapping : is used for showing IPTC metadata on picture.php
85
// page. For each key of the array, you need to have the same key in the
86
// $lang array. For example, if my first key is 'iptc_keywords' (associated
87
// to '2#025') then you need to have $lang['iptc_keywords'] set in
88
// language/$user['language']/common.lang.php. If you don't have the lang
89
// var set, the key will be simply displayed
90
//
91
// To know how to associated iptc_field with their meaning, use
92
// tools/metadata.php
93
$conf['show_iptc_mapping'] = array(
94
  'iptc_keywords'        => '2#025',
95
  'iptc_caption_writer'  => '2#122',
96
  'iptc_byline_title'    => '2#085',
97
  'iptc_caption'         => '2#120'
98
  );
99
 
100
// use_iptc_mapping : in which IPTC fields will PhpWebGallery find image
101
// information ? This setting is used during metadata synchronisation. It
102
// associates a phpwebgallery_images column name to a IPTC key
103
$conf['use_iptc_mapping'] = array(
104
  'keywords'        => '2#025',
105
  'date_creation'   => '2#055',
106
  'author'          => '2#122',
107
  'name'            => '2#005',
108
  'comment'         => '2#120'
109
  );
110
 
111
// show_exif_fields : in EXIF fields, you can choose to display fields in
112
// sub-arrays, for example ['COMPUTED']['ApertureFNumber']. for this, add
113
// 'COMPUTED;ApertureFNumber' in $conf['show_exif_fields']
114
//
115
// The key displayed in picture.php will be $lang['exif_field_Make'] for
116
// example and if it exists. For compound fields, only take into account the
117
// last part : for key 'COMPUTED;ApertureFNumber', you need
118
// $lang['exif_field_ApertureFNumber']
119
//
120
// for PHP version newer than 4.1.2 :
121
// $conf['show_exif_fields'] = array('CameraMake','CameraModel','DateTime');
122
// 
123
$conf['show_exif_fields'] = array('Make',
124
                                  'Model',
125
                                  'DateTime',
126
                                  'COMPUTED;ApertureFNumber');
127
 
128
// calendar_datefield : date field of table "images" used for calendar
129
// catgory
130
$conf['calendar_datefield'] = 'date_creation';
131
 
132
// rate : enable feature for rating elements
133
$conf['rate'] = true;
134
 
135
// remember_me_length : time of validity for "remember me" cookies, in
136
// seconds.
137
$conf['remember_me_length'] = 31536000;
138
 
139
// session_length : time of validity for normal session, in seconds.
140
$conf['session_length'] = 3600;
141
 
142
// session_id_size : a session identifier is compound of alphanumeric
143
// characters and is case sensitive. Each character is among 62
144
// possibilities. The number of possible sessions is
145
// 62^$conf['session_id_size'].
146
//
147
// 62^5  =             916,132,832
148
// 62^10 = 839,299,365,868,340,224
149
//
150
$conf['session_id_size'] = 10;
151
 
152
// info_nb_elements_page : number of elements to display per page on
153
// admin/infos_images
154
$conf['info_nb_elements_page'] = 5;
155
 
156
// show_queries : for debug purpose, show queries and execution times
157
$conf['show_queries'] = false;
158
 
159
// show_gt : display generation time at the bottom of each page
160
$conf['show_gt'] = true;
161
 
162
// newcat_default_commentable : at creation, must a category be commentable
163
// or not ?
164
$conf['newcat_default_commentable'] = 'true';
165
 
166
// newcat_default_uploadable : at creation, must a category be uploadable or
167
// not ?
168
$conf['newcat_default_uploadable'] = 'false';
169
 
170
// newcat_default_visible : at creation, must a category be visible or not ?
171
// Warning : if the parent category is invisible, the category is
172
// automatically create invisible. (invisible = locked)
173
$conf['newcat_default_visible'] = 'true';
174
 
175
// newcat_default_status : at creation, must a category be public or private
176
// ? Warning : if the parent category is private, the category is
177
// automatically create private.
178
$conf['newcat_default_status'] = 'public';
179
 
180
// level_separator : character string used for separating a category level
181
// to the sub level. Suggestions : ' / ', ' &raquo; ', ' &rarr; ', ' - ',
182
// ' &gt;'
183
$conf['level_separator'] = ' / ';
184
 
185
// paginate_pages_around : on paginate navigation bar, how many pages
186
// display before and after the current page ?
187
$conf['paginate_pages_around'] = 2;
188
 
189
// tn_width : default width for thumbnails creation
190
$conf['tn_width'] = 128;
191
 
192
// tn_height : default height for thumbnails creation
193
$conf['tn_height'] = 96;
194
 
195
// show_version : shall the version of PhpWebGallery be displayed at the
196
// bottom of each page ?
197
$conf['show_version'] = false;
198
?>