Browse Source

Bestanden uploaden naar ''

master
LennartC 4 years ago
parent
commit
bc1e1ecce9
1 changed files with 44 additions and 0 deletions
  1. 44
    0
      Index.php

+ 44
- 0
Index.php View File

@@ -0,0 +1,44 @@
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head><title>Ganzenbord</title></head>
<body>
<?php
if (!isset($_SESSION["PlayerOne"]) or (!$_SESSION["PlayerOne"])){
$_SESSION["PlayerOne"] = true;
echo "<h1>Player One</h1>";
} else {
$_SESSION["PlayerOne"] = false;
echo "<h1>Player Two</h1>";
}
if(!isset($_SESSION["PosPOne"])){
$_SESSION["PosPOne"] = 0;
}
if(!isset($_SESSION["PosPTwo"])){
$_SESSION["PosPTwo"] = 0;
}
if(!isset($_SESSION["SkipPOne"])){
$_SESSION["SkipPOne"] = 0;
}
if(!isset($_SESSION["SkipPTwo"])){
$_SESSION["SkipPTwo"] = 0;
}
$PlayerOne = $_SESSION["PlayerOne"];
$PosPOne = $_SESSION["PosPOne"];
$PosPTwo = $_SESSION["PosPTwo"];
$SkipPOne = $_SESSION["SkipPOne"];
$SkipPTwo = $_SESSION["SkipPTwo"];
$dobbelsteen = rand(1,6);
echo "<hr/>Je hebt " . $dobbelsteen . " gesmeten."
if(PlayerOne)
?>
</body>
</html>

Loading…
Cancel
Save