classs('captcha'); session_start(); $captcha = new Captcha(); $captcha->build(150, 40); $key = complex_authkey(); $hash = md5(strtolower($captcha->phrase) . $key); isetcookie('__code', $hash); $_SESSION['__code'] = $hash; $captcha->output();