if ($hoeveelste == 8) { $_SESSION['mm_user']['gameover'] = 2; } Header("Location: " . $_SERVER['SCRIPT_NAME']); exit; } if (isset($_GET['action']) && $_GET['action'] == "stop") { $name = $_SESSION['mm_user']['name']; $_SESSION['mm_veld'] = NULL; $_SESSION['mm_user'] = NULL; $_SESSION['mm_user']['name'] = $name; Header("Location: " . $_SERVER['SCRIPT_NAME']); exit; } if (!isset($_SESSION['mm_user']['play']) || $_SESSION['mm_user']['play'] != 1) { if (isset($_POST['check']) && Goede_Gebruikersnaam($_POST['name'])) { $_SESSION['mm_user']['play'] = 1; $_SESSION['mm_user']['starttime'] = time(); $_SESSION['mm_user']['name'] = $_POST['name']; Create_Field(); Header("Location: " . $_SERVER['SCRIPT_NAME']); exit; } ?> <html> <head><title>MASTERMIND</title></head> <script> if (top.location != this.location) top.location = this.location; </script> <body style='margin:0px;'> <table border=0 cellpadding=0 cellspacing=0 width=100% height=100%>
$level[5] = array(array("x", "x", "x", "o", "o", "o", "x", "x", "x"), array("x", "x", "x", "o", "o", "o", "x", "x", "x"), array("x", "x", "x", "o", "s", "o", "x", "x", "x"), array("o", "o", "o", "s", "s", "s", "o", "o", "o"), array("o", "o", "o", "s", "s", "s", "o", "o", "o"), array("o", "o", "o", "s", "s", "s", "o", "o", "o"), array("x", "x", "x", "o", "o", "o", "x", "x", "x"), array("x", "x", "x", "o", "o", "o", "x", "x", "x"), array("x", "x", "x", "o", "o", "o", "x", "x", "x")); if (isset($_POST['check'], $_POST['name']) && empty($_SESSION[S_NAME]['play']) && Goede_Gebruikersnaam($_POST['name'])) { $_SESSION[S_NAME]['play'] = 1; $_SESSION[S_NAME]['starttime'] = time(); $_SESSION[S_NAME]['playtime'] = 0; $_SESSION[S_NAME]['saved'] = 0; $_SESSION[S_NAME]['name'] = $_POST['name']; $_SESSION[S_NAME]['level'] = 0; $_SESSION[S_NAME]['map'] = $level[$_SESSION[S_NAME]['level']]; $_SESSION[S_NAME]['stones'] = $stones[$_SESSION[S_NAME]['level']]; // $_SESSION[S_NAME]['jumper'] = $jumper[$_SESSION[S_NAME]['level']]; Header("Location: " . basename($_SERVER['SCRIPT_NAME'])); exit; } else { if (isset($_POST['new_name'])) { if (Goede_Gebruikersnaam($_POST['new_name'])) { $_SESSION[S_NAME]['name'] = $_POST['new_name']; } echo $_SESSION[S_NAME]['name']; exit; } else { if (isset($_GET['action']) && $_GET['action'] == "retry") { $l = !empty($_SESSION[S_NAME]['gameover']) ? 0 : $_SESSION[S_NAME]['level']; $_SESSION[S_NAME]['map'] = $level[$l]; $_SESSION[S_NAME]['stones'] = $stones[$l]; // $_SESSION[S_NAME]['jumper'] = $jumper[$l]; $_SESSION[S_NAME]['gameover'] = 0; $_SESSION[S_NAME]['playtime'] = 0; $_SESSION[S_NAME]['starttime'] = time(); $_SESSION[S_NAME]['saved'] = 0; $_SESSION[S_NAME]['level'] = $l;
// /* if (isset($_GET['action']) && $_GET['action']=="retry") { $name = $_SESSION['bb_user'][name]; $_SESSION['bb_user'] = NULL; $_SESSION['bb_user'][name] = $name; Header("Location: ".$_SERVER['SCRIPT_NAME']); exit; } // */ if ($_SESSION['bb_user']['play']!=2) { if ($_POST[check] == 1 && Goede_Gebruikersnaam($_POST[name])) { $_SESSION['bb_user']['play'] = 2; $_SESSION['bb_user']['name'] = $_POST['name']; $_SESSION['bb_user']['starttime'] = time(); Create_Field($SIDES,$ATOMS); Header("Location: ".$_SERVER['SCRIPT_NAME']); exit; } ?> <html> <head><title>BLACKBOX</title></head> <script> if (top.location!=this.location) top.location='<?php
$_SESSION['blackjack']['pauze'] = 1; $_SESSION['blackjack']['winner'] = $winner; Header("Location: " . BASEPAGE); exit; } /* EIND FUNCTIONS */ // if (isset($_SESSION['blackjack']['player'])) if (!isset($_SESSION['blackjack']['player']['balance']) || $_SESSION['blackjack']['player']['balance'] <= 0) { $_SESSION['blackjack']['player']['balance'] = $config['starting_budget']; } if (isset($_GET['action'])) { $action = $_GET['action']; } else { $action = ''; } if ($action == "save" && Goede_Gebruikersnaam($_POST['name'])) { if ($config['min_balance_for_hof'] <= (double) $_SESSION['blackjack']['player']['balance']) { // mysql_query("INSERT INTO blackjack (name,score) VALUES ('".$_POST['name']."','".$_SESSION['blackjack']['player']['balance']."');") or die(mysql_error()); Reset_Game(); } $_SESSION['blackjack']['player']['name'] = $_POST['name']; Header("Location: " . BASEPAGE); exit; } if ($action == "deal") { if (!Bereken_Score('dealer')) { Nieuwe_Kaart('dealer'); } if ($_POST['bet'] > $_SESSION['blackjack']['player']['balance']) { Reset_Game(); Header("Location: " . BASEPAGE);
$eml = $_POST[email]; $pwd = md5($_POST[password]); print_r($_POST); if (!($usr && $eml && trim($usr))) { Go("?msg=Je hebt niet alles ingevuld!&usr={$usr}&eml={$eml}"); } if ($usr == "iedereen" || $usr == "niemand" || ereg("admin", strtolower($usr)) || ereg("rudie", strtolower($usr)) || mysql_num_rows(mysql_query("SELECT * FROM {$TABLE['users']} WHERE username='******'"))) { Go("?msg=Deze <b>gebruikersnaam</b> is al in gebruik!&eml={$eml}"); } if (mysql_num_rows(mysql_query("SELECT * FROM {$TABLE['users']} WHERE email='{$eml}'"))) { Go("?msg=Dit <b>emailadres</b> is al in gebruik!&eml={$eml}&usr={$usr}"); } if (strlen($usr) < 2 || strlen($usr) > 15) { Go("?msg=Deze <b>gebruikersnaam</b> is invalid.Minimaal 4 en maximaal 15 tekens lang!&eml={$eml}"); } if (!Goede_Gebruikersnaam($usr)) { Go("?msg=Deze <b>gebruikersnaam</b> is invalid.Alleen letters&Cijfers mogelijk!&eml={$eml}"); } if (!preg_match("/(?i)^([a-z0-9._-])+@([a-z0-9.-])+\\.([a-z0-9]){2,4}\$/", $eml)) { Go("?msg=Je <b>emailadres</b> is niet juist!&usr={$usr}"); } $activationcode = Create_Password(14); $l1 = rand(1, $MAX_SECTORS); $l2 = rand(1, $MAX_SECTORS); mysql_query("INSERT INTO {$TABLE['users']} (username,password,email,activationcode,charachter,charachtername,turns,location_city,location_citypart) VALUES ('{$usr}','{$pwd}','{$eml}', '{$activationcode}', '{$_POST['charachter']}', '{$_POST['charachtername']}', '{$TICKS_START}','{$l1}','{$l2}')") or die(mysql_error()); $mailtje = File_To_String("include/mailtje.txt"); $mailtje = str_replace("[username]", $usr, $mailtje); $mailtje = str_replace("[password]", $_POST[password], $mailtje); $mailtje = str_replace("[code]", $activationcode, $mailtje); $url = "http://" . $_SERVER[HTTP_HOST] . $_SERVER[PHP_SELF] . "?mode=activation&code={$activationcode}&username={$usr}"; $mailtje = str_replace("[url]", $url, $mailtje);
if (isset($_GET['special'])) { Create_Field("special"); $_SESSION[S_NAME]['min_to_save'] = 1; } $_SESSION[S_NAME]['play'] = 1; $_SESSION[S_NAME]['name'] = $name; $_SESSION[S_NAME]['starttime'] = time(); $_SESSION[S_NAME]['min'] = 156; $_SESSION[S_NAME]['max'] = 156; $_SESSION[S_NAME]['score'] = 156; $_SESSION[S_NAME]['moves'] = 0; Header("Location: ?page=midden"); exit; } if (empty($_SESSION[S_NAME]['play'])) { if (isset($_POST['newgame_name']) && Goede_Gebruikersnaam($_POST['newgame_name'])) { Create_Field(); $_SESSION[S_NAME]['play'] = true; $_SESSION[S_NAME]['starttime'] = time(); $_SESSION[S_NAME]['name'] = $_POST['newgame_name']; $_SESSION[S_NAME]['min'] = 156; $_SESSION[S_NAME]['max'] = 156; $_SESSION[S_NAME]['score'] = 156; $_SESSION[S_NAME]['moves'] = 0; Header("Location: " . BASEPAGE); exit; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
if (!$username) { die("Username not specified!"); } if (!$email) { die("E-Mail not specified!"); } if (!$planet) { die("Planetname not specified!"); } if (!$ruler) { die("Rulername not specified!"); } if (!preg_match("/(?i)^([a-z0-9._-])+@([a-z0-9.-])+\\.([a-z0-9]){2,4}\$/", $email)) { die("E-mail is not valid!"); } if (!Goede_Gebruikersnaam($username)) { die("Username is not valid! Dont use any weird charachters!"); } $result = mysql_query("SELECT id FROM {$TABLE['users']}") or die(mysql_error()); $count = mysql_num_rows($result); $miny = 1; $minx = 1; for ($i = 1; $i <= $count; $i++) { $result2 = mysql_query("SELECT * FROM {$TABLE['users']} WHERE x='{$minx}' AND y='{$planets_in_one_galaxy}'") or die(mysql_error()); if ($myrow = mysql_fetch_array($result2)) { $minx++; $miny = 1; } $result = mysql_query("SELECT * FROM {$TABLE['users']} WHERE x='{$minx}' AND y='{$miny}'") or die(mysql_error()); if ($myrow = mysql_fetch_array($result)) { $miny++;