showHeader(); # ------ 8< ------ 8< ------ 8< ------ 8< ------ # if (isset($_POST['answer'])) { if (noother_says_correct(Common::getPostString('number'))) { $chall->onChallengeSolved(GWF_Session::getUserID()); } else { echo GWF_HTML::error('PHP 0818', $chall->lang('err_wrong'), false); } } function noother_says_correct($number) { $one = ord('1'); $nine = ord('9'); # Check all the input characters! for ($i = 0; $i < strlen($number); $i++) { # Disallow all the digits! $digit = ord($number[$i]); if ( ($digit >= $one) && ($digit <= $nine) ) { # Aha, digit not allowed! return false; } } # Allow the magic number ... return $number == "3735929054"; } # ------ 8< ------ 8< ------ 8< ------ 8< ------ # ?>