Changeset 567
- Timestamp:
- Oct 12, 2004, 12:35:48 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/config.inc.php
r555 r567 26 26 // +-----------------------------------------------------------------------+ 27 27 28 // How to change the order of display for images in a category ? 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 ? 29 43 // 30 // You have to modify $conf['order_by'].31 44 // There are several fields that can order the display : 45 // 32 46 // - date_available : the date of the adding to the gallery 33 47 // - 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 : 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 // 37 54 // 1. $conf['order_by'] = " order by date_available desc, file asc"; 38 55 // will order pictures by date_available descending & by filename ascending 56 // 39 57 // 2. $conf['order_by'] = " order by file asc"; 40 // will only order pictures by file ascending 41 // without taking into accountthe date_available58 // will only order pictures by file ascending without taking into account 59 // the date_available 42 60 $conf['order_by'] = ' ORDER BY date_available DESC, file ASC, id ASC'; 43 61 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); 62 // slideshow_period : waiting time in seconds before loading a new page 63 // during automated slideshow 64 $conf['slideshow_period'] = 4; 48 65 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 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 57 87 $conf['max_LOV_categories'] = 50; 58 88 59 // $conf['show_iptc_mapping'] is used for showing IPTC metadata on60 // p icture.php page. For each key of the array, you need to have the same61 // 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'] set63 // inlanguage/$user['language']/common.lang.php. If you don't have the lang89 // 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 64 94 // var set, the key will be simply displayed 65 95 // … … 73 103 ); 74 104 75 // in EXIF fields, you can choose to display fields in sub-arrays, for76 // example ['COMPUTED']['ApertureFNumber']. for this, add105 // show_exif_fields : in EXIF fields, you can choose to display fields in 106 // sub-arrays, for example ['COMPUTED']['ApertureFNumber']. for this, add 77 107 // 'COMPUTED;ApertureFNumber' in $conf['show_exif_fields'] 78 108 // … … 81 111 // last part : for key 'COMPUTED;ApertureFNumber', you need 82 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 // 83 117 $conf['show_exif_fields'] = array('Make', 84 118 'Model', 85 119 'DateTime', 86 120 'COMPUTED;ApertureFNumber'); 87 // for PHP version newer than 4.1.2 :88 // $conf['show_exif_fields'] = array('CameraMake','CameraModel','DateTime');89 121 122 // calendar_datefield : date field of table "images" used for calendar 123 // catgory 90 124 $conf['calendar_datefield'] = 'date_available'; 125 126 // rate : enable feature for rating elements 91 127 $conf['rate'] = true; 92 128 93 // time of validity for "remember me" cookies, in seconds. 129 // remember_me_length : time of validity for "remember me" cookies, in 130 // seconds. 94 131 $conf['remember_me_length'] = 31536000; 95 132 96 // time of validity for normal session, in seconds.133 // session_length : time of validity for normal session, in seconds. 97 134 $conf['session_length'] = 3600; 98 135 99 // session id size. Asession identifier is compound of alphanumeric136 // session_id_size : a session identifier is compound of alphanumeric 100 137 // characters and is case sensitive. Each character is among 62 101 138 // possibilities. The number of possible sessions is 102 139 // 62^$conf['session_id_size']. 140 // 103 141 // 62^5 = 916,132,832 104 142 // 62^10 = 839,299,365,868,340,224 143 // 105 144 $conf['session_id_size'] = 10; 106 145 ?>
Note: See TracChangeset
for help on using the changeset viewer.