Changeset 882
- Timestamp:
- Oct 8, 2005, 1:25:42 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r869 r882 112 112 if (isset($_POST[$row['param']])) 113 113 { 114 $value = $_POST[$row['param']]; 115 116 if ('gallery_title' == $row['param'] 117 or 'gallery_description' == $row['param']) 118 { 119 if (!$conf['allow_html_descriptions']) 120 { 121 $value = strip_tags($value); 122 } 123 } 124 114 125 $query = ' 115 126 UPDATE '.CONFIG_TABLE.' 116 SET value = \''. str_replace("\'", "''", $ _POST[$row['param']]).'\'127 SET value = \''. str_replace("\'", "''", $value).'\' 117 128 WHERE param = \''.$row['param'].'\' 118 129 ;'; … … 158 169 'GALLERY_LOCKED_YES'=>$lock_yes, 159 170 'GALLERY_LOCKED_NO'=>$lock_no, 171 'CONF_GALLERY_TITLE' => $conf['gallery_title'], 172 'CONF_GALLERY_DESCRIPTION' => $conf['gallery_description'], 160 173 )); 161 174 break; -
trunk/doc/ChangeLog
r881 r882 1 2005-10-08 Pierrick LE GALL 2 3 * modification: configuration parameters gallery_title and 4 gallery_description are GUI managed in 5 Administration>Configuration>General 6 7 * bug fixed: configuration parameters (use|show)_(exif|iptc) and 8 authorize_remembering should have been deleted from config table 9 some time ago. 10 1 11 2005-10-08 Pierrick LE GALL 2 12 -
trunk/include/config_default.inc.php
r880 r882 168 168 $conf['allow_html_descriptions'] = true; 169 169 170 // gallery_title : Title at top of each page and for RSS feed171 $conf['gallery_title'] = 'PhpWebGallery demonstration site';172 173 // gallery_description : Short description displayed with gallery title174 $conf['gallery_description'] = 'My photos web site';175 176 170 // galery_url : URL given in RSS feed 177 171 $conf['gallery_url'] = 'http://demo.phpwebgallery.net'; -
trunk/install/config.sql
r860 r882 14 14 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('auto_expand','false','Auto expand of the category tree'); 15 15 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('show_nb_comments','false','Show the number of comments under the thumbnails'); 16 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('use_iptc','false','Use IPTC data during database synchronization with files metadata');17 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('use_exif','false','Use EXIF data during database synchronization with files metadata');18 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('show_iptc','false','Show IPTC metadata on picture.php if asked by user');19 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('show_exif','true','Show EXIF metadata on picture.php if asked by user');20 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('authorize_remembering','true','Authorize users to be remembered, see $conf{remember_me_length}');21 16 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('gallery_locked','false','Lock your gallery temporary for non admin users'); 17 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('gallery_title','PhpWebGallery demonstration site','Title at top of each page and for RSS feed'); 18 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('gallery_description','My photos web site','Short description displayed with gallery title'); 19 -
trunk/template/yoga/admin/configuration.tpl
r859 r882 14 14 15 15 <ul> 16 <li> 17 <label for="gallery_title"><strong>{lang:Gallery title}</strong></label> 18 <input type="text" maxlength="255" size="50" name="gallery_title" id="gallery_title" value="{general.CONF_GALLERY_TITLE}" /> 19 </li> 20 21 <li> 22 <label for="gallery_description"><strong>{lang:Gallery description}</strong></label> 23 <textarea cols="50" rows="5" name="gallery_description" id="gallery_description">{general.CONF_GALLERY_DESCRIPTION}</textarea> 24 </li> 25 16 26 <li> 17 27 <label><strong>{lang:History}</strong></label>
Note: See TracChangeset
for help on using the changeset viewer.