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-02 23:12:50 +0000 (Sat, 02 Oct 2004) $ |
---|
10 | // | last modifier : $Author: z0rglub $ |
---|
11 | // | revision : $Revision: 541 $ |
---|
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 | // How to change the order of display for images in a category ? |
---|
29 | // |
---|
30 | // You have to modify $conf['order_by']. |
---|
31 | // There are several fields that can order the display : |
---|
32 | // - date_available : the date of the adding to the gallery |
---|
33 | // - file : the name of the file |
---|
34 | // Once you've chosen which field(s) to use for ordering, |
---|
35 | // you must chose the ascending or descending order for each field. |
---|
36 | // examples : |
---|
37 | // 1. $conf['order_by'] = " order by date_available desc, file asc"; |
---|
38 | // will order pictures by date_available descending & by filename ascending |
---|
39 | // 2. $conf['order_by'] = " order by file asc"; |
---|
40 | // will only order pictures by file ascending |
---|
41 | // without taking into account the date_available |
---|
42 | $conf['order_by'] = ' ORDER BY date_available DESC, file ASC, id ASC'; |
---|
43 | |
---|
44 | $conf['nb_image_row'] = array(4,5,6,7,8); |
---|
45 | $conf['nb_row_page'] = array(2,3,4,5,6,7,10,20,1000); |
---|
46 | $conf['slideshow_period'] = 4; |
---|
47 | $conf['last_days'] = array(1,2,3,10,30,365); |
---|
48 | |
---|
49 | // $conf['file_ext'] lists all extensions (case insensitive) allowed for |
---|
50 | // your PhpWebGallery installation |
---|
51 | $conf['file_ext'] = array('jpg','JPG','png','PNG','gif','GIF' |
---|
52 | ,'mpg','zip','avi','mp3','ogg'); |
---|
53 | // $conf['picture_ext'] must bea subset of $conf['file_ext'] |
---|
54 | $conf['picture_ext'] = array('jpg','JPG','png','PNG','gif','GIF'); |
---|
55 | $conf['top_number'] = 10; // used for "best rated" and "most visited" |
---|
56 | $conf['anti-flood_time'] = 60; // seconds between 2 comments : 0 to disable |
---|
57 | $conf['max_LOV_categories'] = 50; |
---|
58 | |
---|
59 | // $conf['show_iptc_mapping'] is used for showing IPTC metadata on |
---|
60 | // picture.php page. For each key of the array, you need to have the same |
---|
61 | // key in the $lang array. For example, if my first key is 'iptc_keywords' |
---|
62 | // (associated to '2#025') then you need to have $lang['iptc_keywords'] set |
---|
63 | // in language/$user['language']/common.lang.php. If you don't have the lang |
---|
64 | // var set, the key will be simply displayed |
---|
65 | // |
---|
66 | // To know how to associated iptc_field with their meaning, use |
---|
67 | // tools/metadata.php |
---|
68 | $conf['show_iptc_mapping'] = array( |
---|
69 | 'iptc_keywords' => '2#025', |
---|
70 | 'iptc_caption_writer' => '2#122', |
---|
71 | 'iptc_byline_title' => '2#085', |
---|
72 | 'iptc_caption' => '2#120' |
---|
73 | ); |
---|
74 | |
---|
75 | // in EXIF fields, you can choose to display fields in sub-arrays, for |
---|
76 | // example ['COMPUTED']['ApertureFNumber']. for this, add |
---|
77 | // 'COMPUTED;ApertureFNumber' in $conf['show_exif_fields'] |
---|
78 | // |
---|
79 | // The key displayed in picture.php will be $lang['exif_field_Make'] for |
---|
80 | // example and if it exists. For compound fields, only take into account the |
---|
81 | // last part : for key 'COMPUTED;ApertureFNumber', you need |
---|
82 | // $lang['exif_field_ApertureFNumber'] |
---|
83 | $conf['show_exif_fields'] = array('Make', |
---|
84 | 'Model', |
---|
85 | 'DateTime', |
---|
86 | 'COMPUTED;ApertureFNumber'); |
---|
87 | // for PHP version newer than 4.1.2 : |
---|
88 | // $conf['show_exif_fields'] = array('CameraMake','CameraModel','DateTime'); |
---|
89 | |
---|
90 | $conf['calendar_datefield'] = 'date_available'; |
---|
91 | $conf['rate'] = true; |
---|
92 | |
---|
93 | // time of validity for "remember me" cookies, in seconds. |
---|
94 | $conf['remember_me_length'] = 31536000; |
---|
95 | |
---|
96 | // time of validity for normal session, in seconds. |
---|
97 | $conf['session_length'] = 3600; |
---|
98 | |
---|
99 | // session id length when session id in URI |
---|
100 | $conf['session_id_size_URI'] = 4; |
---|
101 | |
---|
102 | // session id length when session id in cookie |
---|
103 | $conf['session_id_size_cookie'] = 50; |
---|
104 | ?> |
---|