test php
Php
code posted
created at 07 Sep 23:49
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
$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>"; } } |
583 Bytes in 2 ms with coderay