1 2 3 4 56 7 8 9 1011 12 13 14 1516 17 18 19 2021 22 23 24 25 | <?php // closure, because of namespace! $challenge = function() { $f = Common::getGetString('eval'); $f = str_replace(array('`', '$', '*', '#', ':', '\\', '"', "'", '(', ')', '.', '>'), '', $f); if((strlen($f) > 13) || (false !== stripos($f, 'return'))) { die('sorry, not allowed!'); } try { eval("\$spaceone = $f"); } catch (Exception $e) { return false; } return ($spaceone === '1337'); }; ?> |