plugins/SpecialAdmin.php
changeset 473 518bc2b214f1
parent 465 fe8b8c9b54e8
child 504 bc8e0e9ee01d
equal deleted inserted replaced
472:bc4b58034f4d 473:518bc2b214f1
   277     
   277     
   278     // Default theme
   278     // Default theme
   279     $default_theme = ( isset($template->named_theme_list[@$_POST['default_theme']]) ) ? $_POST['default_theme'] : $template->theme_list[0]['theme_id'];
   279     $default_theme = ( isset($template->named_theme_list[@$_POST['default_theme']]) ) ? $_POST['default_theme'] : $template->theme_list[0]['theme_id'];
   280     setConfig('theme_default', $default_theme);
   280     setConfig('theme_default', $default_theme);
   281     
   281     
       
   282     // Breadcrumb mode
       
   283     if ( in_array($_POST['breadcrumb_mode'], array('subpages', 'always', 'never')) )
       
   284     {
       
   285       setConfig('breadcrumb_mode', $_POST['breadcrumb_mode']);
       
   286     }
       
   287     
   282     setConfig('register_tou', RenderMan::preprocess_text($_POST['register_tou'], true, false));
   288     setConfig('register_tou', RenderMan::preprocess_text($_POST['register_tou'], true, false));
   283     
   289     
   284     // Account lockout policy
   290     // Account lockout policy
   285     if ( preg_match('/^[0-9]+$/', $_POST['lockout_threshold']) )
   291     if ( preg_match('/^[0-9]+$/', $_POST['lockout_threshold']) )
   286       setConfig('lockout_threshold', $_POST['lockout_threshold']);
   292       setConfig('lockout_threshold', $_POST['lockout_threshold']);
   515                 $theme_name = htmlspecialchars($theme_data['theme_name']);
   521                 $theme_name = htmlspecialchars($theme_data['theme_name']);
   516                 $selected = ( $theme_id === getConfig('theme_default') ) ? ' selected="selected"' : '';
   522                 $selected = ( $theme_id === getConfig('theme_default') ) ? ' selected="selected"' : '';
   517                 echo "  <option value=\"$theme_id\"$selected>$theme_name</option>\n          ";
   523                 echo "  <option value=\"$theme_id\"$selected>$theme_name</option>\n          ";
   518               }
   524               }
   519             ?>
   525             ?>
       
   526           </select>
       
   527         </td>
       
   528       </tr>
       
   529       
       
   530     <!-- Breadcrumbs -->
       
   531     
       
   532       <tr>
       
   533         <td class="row1">
       
   534           <?php echo $lang->get('acpgc_field_breadcrumb_mode'); ?>
       
   535         </td>
       
   536         <td class="row1">
       
   537           <select name="breadcrumb_mode">
       
   538           <?php
       
   539             foreach ( array('subpages', 'always', 'never') as $mode )
       
   540             {
       
   541               $str = $lang->get("acpgc_field_breadcrumb_mode_$mode");
       
   542               $sel = ( getConfig('breadcrumb_mode') == $mode ) ? ' selected="selected"' : '';
       
   543               echo "  <option value=\"$mode\"$sel>$str</option>\n          ";
       
   544             }
       
   545           ?>
   520           </select>
   546           </select>
   521         </td>
   547         </td>
   522       </tr>
   548       </tr>
   523       
   549       
   524     </table>
   550     </table>