plugins/SpecialUserFuncs.php
changeset 989 79d558a94798
parent 987 b13a42ebaefb
child 1032 9e61f16a8e47
equal deleted inserted replaced
988:11960d9b0087 989:79d558a94798
  1366 
  1366 
  1367   $session->make_captcha(7, $hash);
  1367   $session->make_captcha(7, $hash);
  1368   $code = $session->generate_captcha_code();
  1368   $code = $session->generate_captcha_code();
  1369   // Avoid letting our captchas end up on failblog.org
  1369   // Avoid letting our captchas end up on failblog.org
  1370   // BTW, the last one was a real-life encounter: http://files.ha.xx0r.info/murder.png
  1370   // BTW, the last one was a real-life encounter: http://files.ha.xx0r.info/murder.png
  1371   foreach ( array('shit', 'cock', 'fuck', 'nazi', 'cunt', 'pussy', 'penis', 'piss', 'tits', 'murder') as $word )
  1371   foreach ( array('shit', 'cock', 'fuck', 'nazi', 'cunt', 'clit', 'pussy', 'penis', 'piss', 'tits', 'murder') as $word )
  1372   {
  1372   {
  1373     if ( stristr($code, $word) )
  1373     if ( stristr($code, $word) )
  1374     {
  1374     {
  1375       // but don't put too much effort into this (will only correct this once)
  1375       // but don't put too much effort into this (will only correct this once)
  1376       $code = $session->generate_captcha_code();
  1376       $code = $session->generate_captcha_code();