Changeset 1071 for trunk/admin/configuration.php
- Timestamp:
- Mar 9, 2006, 2:57:13 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r1048 r1071 51 51 { 52 52 $conf[$row['param']] = $_POST[$row['param']]; 53 } 54 } 53 if ( 'page_banner'==$row['param'] ) 54 { // should we do it for all ? 55 $conf[$row['param']] = stripslashes( $conf[$row['param']] ); 56 } 57 } 58 } 55 59 //------------------------------ verification and registration of modifications 56 60 if (isset($_POST['submit'])) … … 106 110 } 107 111 } 108 112 109 113 // updating configuration if no error found 110 114 if (count($page['errors']) == 0) … … 117 121 { 118 122 $value = $_POST[$row['param']]; 119 120 if ('gallery_title' == $row['param'] 121 or 'gallery_description' == $row['param']) 123 124 if ('gallery_title' == $row['param']) 122 125 { 123 126 if (!$conf['allow_html_descriptions']) … … 126 129 } 127 130 } 128 131 129 132 $query = ' 130 133 UPDATE '.CONFIG_TABLE.' … … 153 156 154 157 'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=configuration', 155 158 156 159 'F_ACTION'=>$action 157 160 )); … … 162 165 { 163 166 $html_check='checked="checked"'; 164 167 165 168 $history_yes = ($conf['log']=='true')?'checked="checked"':''; 166 169 $history_no = ($conf['log']=='false')?'checked="checked"':''; 167 170 $lock_yes = ($conf['gallery_locked']=='true')?'checked="checked"':''; 168 171 $lock_no = ($conf['gallery_locked']=='false')?'checked="checked"':''; 169 172 170 173 $template->assign_block_vars( 171 174 'general', … … 179 182 ? 'RATE_ANONYMOUS_YES' : 'RATE_ANONYMOUS_NO')=>$html_check, 180 183 'CONF_GALLERY_TITLE' => $conf['gallery_title'], 181 'CONF_ GALLERY_DESCRIPTION' => $conf['gallery_description'],184 'CONF_PAGE_BANNER' => $conf['page_banner'], 182 185 'CONF_GALLERY_URL' => $conf['gallery_url'], 183 186 )); … … 190 193 $validate_yes = ($conf['comments_validation']=='true')?'checked="checked"':''; 191 194 $validate_no = ($conf['comments_validation']=='false')?'checked="checked"':''; 192 195 193 196 $template->assign_block_vars( 194 197 'comments', … … 208 211 $expand_yes = ($conf['auto_expand']=='true')?'checked="checked"':''; 209 212 $expand_no = ($conf['auto_expand']=='false')?'checked="checked"':''; 210 213 211 214 $template->assign_block_vars( 212 215 'default', … … 223 226 'SHOW_COMMENTS_NO'=>$show_no 224 227 )); 225 228 226 229 $blockname = 'default.language_option'; 227 230 228 231 foreach (get_languages() as $language_code => $language_name) 229 232 { … … 242 245 $selected = ''; 243 246 } 244 247 245 248 $template->assign_block_vars( 246 249 $blockname, … … 270 273 $selected = ''; 271 274 } 272 275 273 276 $template->assign_block_vars( 274 277 $blockname, … … 281 284 } 282 285 283 286 284 287 break; 285 288 }
Note: See TracChangeset
for help on using the changeset viewer.