equal
deleted
inserted
replaced
264 { |
264 { |
265 $strength = strval($strength); |
265 $strength = strval($strength); |
266 setConfig('pw_strength_minimum', $strength); |
266 setConfig('pw_strength_minimum', $strength); |
267 } |
267 } |
268 |
268 |
|
269 setConfig('register_tou', RenderMan::preprocess_text($_POST['register_tou'], true, false)); |
|
270 |
269 // Account lockout policy |
271 // Account lockout policy |
270 if ( preg_match('/^[0-9]+$/', $_POST['lockout_threshold']) ) |
272 if ( preg_match('/^[0-9]+$/', $_POST['lockout_threshold']) ) |
271 setConfig('lockout_threshold', $_POST['lockout_threshold']); |
273 setConfig('lockout_threshold', $_POST['lockout_threshold']); |
272 |
274 |
273 if ( preg_match('/^[0-9]+$/', $_POST['lockout_duration']) ) |
275 if ( preg_match('/^[0-9]+$/', $_POST['lockout_duration']) ) |
511 <?php |
513 <?php |
512 echo '<label><input'; if(getConfig('account_activation') == 'disable') echo ' checked="checked"'; echo ' type="radio" name="account_activation" value="disable" /> ' . $lang->get('acpgc_field_activate_disable') . '</label><br />'; |
514 echo '<label><input'; if(getConfig('account_activation') == 'disable') echo ' checked="checked"'; echo ' type="radio" name="account_activation" value="disable" /> ' . $lang->get('acpgc_field_activate_disable') . '</label><br />'; |
513 echo '<label><input'; if(getConfig('account_activation') != 'user' && getConfig('account_activation') != 'admin' && getConfig('account_activation') != 'disable') echo ' checked="checked"'; echo ' type="radio" name="account_activation" value="none" /> ' . $lang->get('acpgc_field_activate_none') . '</label>'; |
515 echo '<label><input'; if(getConfig('account_activation') != 'user' && getConfig('account_activation') != 'admin' && getConfig('account_activation') != 'disable') echo ' checked="checked"'; echo ' type="radio" name="account_activation" value="none" /> ' . $lang->get('acpgc_field_activate_none') . '</label>'; |
514 echo '<label><input'; if(getConfig('account_activation') == 'user') echo ' checked="checked"'; echo ' type="radio" name="account_activation" value="user" /> ' . $lang->get('acpgc_field_activate_user') . '</label>'; |
516 echo '<label><input'; if(getConfig('account_activation') == 'user') echo ' checked="checked"'; echo ' type="radio" name="account_activation" value="user" /> ' . $lang->get('acpgc_field_activate_user') . '</label>'; |
515 echo '<label><input'; if(getConfig('account_activation') == 'admin') echo ' checked="checked"'; echo ' type="radio" name="account_activation" value="admin" /> ' . $lang->get('acpgc_field_activate_admin') . '</label>'; |
517 echo '<label><input'; if(getConfig('account_activation') == 'admin') echo ' checked="checked"'; echo ' type="radio" name="account_activation" value="admin" /> ' . $lang->get('acpgc_field_activate_admin') . '</label>'; |
|
518 ?> |
|
519 </td> |
|
520 </tr> |
|
521 |
|
522 <!-- Terms of Use --> |
|
523 |
|
524 <tr> |
|
525 <th class="subhead" colspan="2"> |
|
526 <?php echo $lang->get('acpgc_heading_tou'); ?> |
|
527 </th> |
|
528 </tr> |
|
529 |
|
530 <tr> |
|
531 <td class="row2"> |
|
532 <b><?php echo $lang->get('acpgc_field_tou'); ?></b><br /> |
|
533 <small><?php echo $lang->get('acpgc_field_tou_hint'); ?></small> |
|
534 </td> |
|
535 <td class="row2"> |
|
536 <?php |
|
537 $terms = getConfig('register_tou'); |
|
538 echo $template->tinymce_textarea('register_tou', $terms, 10, 40); |
516 ?> |
539 ?> |
517 </td> |
540 </td> |
518 </tr> |
541 </tr> |
519 |
542 |
520 <!-- Account lockout --> |
543 <!-- Account lockout --> |