Script that figures out the answers to SAAS POTW Quiz’s. As a note, this is only the processing end. In order for the script to work, you will need to build a front end.
<? error_reporting (E_ERROR | E_WARNING | E_PARSE); $httpfile = $_POST['httpfile']; $userfile = $_POST['userfile']; if($httpfile != NULL){ $textarea = file_get_contents($httpfile); } else{ $textarea = file_get_contents($_FILES['userfile']['tmp_name']); } echo "1. "; $t = 2; $length = strlen($textarea); for($i = 0; $i < $length; $i++){ if(($textarea[$i-1].$textarea[$i]) == "l["){ while($textarea[$i+1].$textarea[$i+2] != ",#"){ $i++; echo $textarea[$i]; } $i++; if($t > 10){ die(); } echo "$t. "; $t++; } } ?>
Note: This was code that I originally had in a ‘Code’ page, but I’m moving it to a post now. This code is probably really old (years and years old). I enjoy laughing at myself and so should you.
0