equal
deleted
inserted
replaced
273 { |
273 { |
274 $strength = strval($strength); |
274 $strength = strval($strength); |
275 setConfig('pw_strength_minimum', $strength); |
275 setConfig('pw_strength_minimum', $strength); |
276 } |
276 } |
277 |
277 |
|
278 // Default theme |
|
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); |
|
281 |
278 setConfig('register_tou', RenderMan::preprocess_text($_POST['register_tou'], true, false)); |
282 setConfig('register_tou', RenderMan::preprocess_text($_POST['register_tou'], true, false)); |
279 |
283 |
280 // Account lockout policy |
284 // Account lockout policy |
281 if ( preg_match('/^[0-9]+$/', $_POST['lockout_threshold']) ) |
285 if ( preg_match('/^[0-9]+$/', $_POST['lockout_threshold']) ) |
282 setConfig('lockout_threshold', $_POST['lockout_threshold']); |
286 setConfig('lockout_threshold', $_POST['lockout_threshold']); |
490 <td class="row2"> |
494 <td class="row2"> |
491 <div id="site_disabled_notice"<?php if(getConfig('site_disabled')!='1') echo(' style="display:none"'); ?>> |
495 <div id="site_disabled_notice"<?php if(getConfig('site_disabled')!='1') echo(' style="display:none"'); ?>> |
492 <?php echo $lang->get('acpgc_field_disablesite_message'); ?><br /> |
496 <?php echo $lang->get('acpgc_field_disablesite_message'); ?><br /> |
493 <textarea name="site_disabled_notice" rows="7" cols="30"><?php echo getConfig('site_disabled_notice'); ?></textarea> |
497 <textarea name="site_disabled_notice" rows="7" cols="30"><?php echo getConfig('site_disabled_notice'); ?></textarea> |
494 </div> |
498 </div> |
|
499 </td> |
|
500 </tr> |
|
501 |
|
502 <!-- Default theme --> |
|
503 |
|
504 <tr><th class="subhead" colspan="2"><?php echo $lang->get('acpgc_heading_default_theme'); ?></th></tr> |
|
505 |
|
506 <tr> |
|
507 <td class="row2"> |
|
508 <?php echo $lang->get('acpgc_field_defualt_theme'); ?> |
|
509 </td> |
|
510 <td class="row2"> |
|
511 <select name="default_theme"> |
|
512 <?php |
|
513 foreach ( $template->named_theme_list as $theme_id => $theme_data ) |
|
514 { |
|
515 $theme_name = htmlspecialchars($theme_data['theme_name']); |
|
516 $selected = ( $theme_id === getConfig('theme_default') ) ? ' selected="selected"' : ''; |
|
517 echo " <option value=\"$theme_id\"$selected>$theme_name</option>\n "; |
|
518 } |
|
519 ?> |
|
520 </select> |
495 </td> |
521 </td> |
496 </tr> |
522 </tr> |
497 |
523 |
498 </table> |
524 </table> |
499 </div> |
525 </div> |