equal
deleted
inserted
replaced
352 } |
352 } |
353 |
353 |
354 setConfig('register_tou', RenderMan::preprocess_text($_POST['register_tou'], true, false)); |
354 setConfig('register_tou', RenderMan::preprocess_text($_POST['register_tou'], true, false)); |
355 |
355 |
356 // Account lockout policy |
356 // Account lockout policy |
357 if ( preg_match('/^[0-9]+$/', $_POST['lockout_threshold']) ) |
357 if ( ctype_digit($_POST['lockout_threshold']) ) |
358 setConfig('lockout_threshold', $_POST['lockout_threshold']); |
358 setConfig('lockout_threshold', $_POST['lockout_threshold']); |
359 |
359 |
360 if ( preg_match('/^[0-9]+$/', $_POST['lockout_duration']) ) |
360 if ( ctype_digit($_POST['lockout_duration']) ) |
361 setConfig('lockout_duration', $_POST['lockout_duration']); |
361 setConfig('lockout_duration', $_POST['lockout_duration']); |
362 |
362 |
363 if ( in_array($_POST['lockout_policy'], array('disable', 'captcha', 'lockout')) ) |
363 if ( in_array($_POST['lockout_policy'], array('disable', 'captcha', 'lockout')) ) |
364 setConfig('lockout_policy', $_POST['lockout_policy']); |
364 setConfig('lockout_policy', $_POST['lockout_policy']); |
365 |
365 |