Title / Description
Code $filename = 'secret-combination.txt'; extract($_GET); if (isset($attempt)) { $combination = trim(file_get_contents($filename)); if ($attempt === $combination) { echo "<p>How did you know the secret combination was" . " $combination!?</p>"; $next = file_get_contents('level02-password.txt'); echo "<p>You've earned the password to the access Level 2:" . " $next</p>"; } else { echo "<p>Incorrect! The secret combination is not $attempt</p>"; } }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code