plugins/SpecialAdmin.php
changeset 826 dcf5381ce8ba
parent 825 9d5c04c1414f
child 828 c5bca53b857a
equal deleted inserted replaced
825:9d5c04c1414f 826:dcf5381ce8ba
   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