Quiz

!"; $Einde = "The Quiz has ended!"; $Top10Gebruiken = true; $Top10Bestand = "top10.html"; $Vraag[1] = "What's Buu last stage?|1|Super Buu|Kid Buu|Evil Buu|Buubidi"; $Vraag[2] = "What are the race of Vegeta and Goku?|2|Human|Namekian|Saiyans|Androids"; $Vraag[3] = "Who's Pan's grandad?|0|Goku|Gohan|Goten|I am!"; $Vraag[4] = "What's the name of the machine used to find the Dragonballs?|3|Nimbus|Dragonballsearcher|Magic Carpet|Dragonradar"; $Vraag[5] = "What's the color of the BlackStar Dragonballs' Stars?|0|Black?|White|Green|Blue|Red"; $Vraag[6] = "Who is capable to do the Galic Gun Attack?|3|Gohan|Goku|Trunks|Vegeta"; $Vraag[7] = "What's the color of Bulma's hair?|2|Blund|Red|Green|Mr.Satan"; $Vraag[8] = "What's the name of Gohan and Videl's daughter?|2|Genki|Lunch|Pan|Bulma"; $Vraag[9] = "What attack causes the enemy can't see for a while?|2|Freeze Lighting|Final Flash|Solarflare|Masenko"; $Vraag[10] = "Which beans make you regain your strengh?|0|Senzu Beans|Engery Beans|KI Beans|HP Beans"; $AntwoordenGoed[0] = "You are really stupid!"; $AntwoordenGoed[1] = "Ever been to school?!?"; $AntwoordenGoed[2] = "Never made a quiz, did you?"; $AntwoordenGoed[3] = "Bad!"; $AntwoordenGoed[4] = "Only 4 correct??"; $AntwoordenGoed[5] = "Not very good..."; $AntwoordenGoed[6] = "Try again, you might be nore lucky next time!!"; $AntwoordenGoed[7] = "Nice work! Try again!"; $AntwoordenGoed[8] = "Impressive... How do you know all these things?"; $AntwoordenGoed[9] = "You've checked the answers at Google, right??"; $AntwoordenGoed[10] = "Congratilations! You've got all the questions right!"; ?>
 Correct Questions:  Commentaar: \n"); for($i = 1; $i < (count($Vraag)+1); $i++) { echo(" $i  $AntwoordenGoed[$i] \n"); } echo("

Go Back"); } else { $vraag = intval($vraag); $volgendevraag = ($vraag+1); $action = $DitBestand; if($PaginaScript) { $action .= "&"; } else { $action .= "?"; } if(!$Vraag[$volgendevraag]) { $action .= "einde=true"; } else { $action .= "vraag=$volgendevraag"; } if(!$vraag && !$einde) { echo("$Begin

Start the quiz!

Click here to see the toplist!"); } elseif(!$Vraag[$vraag] && $einde) { $einde = true; for($i = 1; $i < (count($Vraag)+1); $i++) { if(!$devraag[$i]) { $einde = false; } } if($einde) { $goed = 0; for($i = 1; $i < (count($Vraag)+1); $i++) { $QuizSplit = explode("|",$Vraag[$i]); if($QuizSplit[(intval($QuizSplit[1])+2)] == $devraag[$i]) { $goed++; $devraaggoed[$i] = true; } } echo("$Einde
You had $goed answers correct!
Comments: $AntwoordenGoed[$goed]

\n"); for($i = 1; $i < (count($Vraag)+1); $i++) { $QuizSplit = explode("|",$Vraag[$i]); if($devraag[$i]) { echo("\n"); } } echo("
 $i  $QuizSplit[0]  $devraag[$i]  "); if($devraaggoed[$i]) { echo("Correct"); } else { echo("Incorrect"); } echo(" 
"); if($Top10Gebruiken) { echo("
If you'll enter your name and e-mail adress here, you might get in the top10!
Name:
E-mail adress:

"); } } else { echo("Niet alle vragen zijn ingevuld!
Begin opnieuw."); } } else { $QuizSplit = explode("|",$Vraag[$vraag]); echo("Question $vraag


$QuizSplit[0]
\n"); for($i = 2; $i < count($QuizSplit); $i++) { echo("\n"); } for($i = 1; $i < (count($Vraag)+1); $i++) { if($i != $vraag) { echo("\n"); } } echo("
 $QuizSplit[$i]   



"); } if(!$einde) { echo("

\n"); for($i = 1; $i < (count($Vraag)+1); $i++) { $QuizSplit = explode("|",$Vraag[$i]); if($devraag[$i]) { echo("\n"); } } echo("
 $i  $QuizSplit[0]  $devraag[$i] 
"); } } if($vraag || $einde || $commentaar) { echo("

Restart the quiz!
"); } ?>