<?php // Plug-in 92: Captcha Bypass
/*
* 忽略检测码或检测字
* 插件说明:
* 插件不接受任何参数,但是如果认为当前用户是人,则返回TRUE,否则返回FALSE
*/
// This is an executable example with additional code supplied
// To obtain just the plug-ins please click on the Download link
$result = PIPHP_CaptchaBypass();
if (!$result) echo "A Captcha <b>should</b> probably be used.";
else echo "A Captcha probably <b>isn't</b> required.";
echo "<br /><a href='$_SERVER[PHP_SELF]'>Now click here</a>";
function PIPHP_CaptchaBypass()
{
// Plug-in 92: Captcha Bypass
//
// This plug-in checks whether it looks like a real person
// is using your website and returns TRUE if so, otherwise
// it returns FALSE. It requires no arguments
if (isset($_SERVER['HTTP_REFERER']) &&
isset($_SERVER['HTTP_USER_AGENT']))
return TRUE;
return FALSE;
}
?>