<div id="column2" class="column">
<div class="habblet-container ">
<div class="cbb clearfix blue ">
<h2 class="title">Lottery</h2>
<div style="padding:5px">
<?php
// Thank F13rbo1 for this lottery php code :P
// idk what this is below 0.0
if(isset($_SESSION["Attempts"])) {
$tries = $_SESSION["Attempts"];
if($tries > 4) {
}
}
// Change the numbers below to the code you want max is 4 numbers
$currentPin = "1111";
// change "URL" to what page you want people to go when they click "Enter PIN"
// DO NOT DELETE THE DOTS NEXT TO "URL" OR SHIT WILL GET REAL.
if(isset($_POST["entered"])) {
$pin = $_POST["key1"] . $_POST["key2"] . $_POST["key3"] . $_POST["key4"];
if($pin == $currentPin) {
$_SESSION["Pincode_Passed"] = true;
header ("Location: ".URL."");
}
// idk what is below 0.0
else {
if(!isset($_SESSION["Attempts"])) {
$_SESSION["Attempts"] = 1;
}
else {
$_SESSION["Attempts"] = $_SESSION["Attempts"] + 4;
}
}
}
?>
<font face='verdana'> <b>Blah</b><br />
F13rbo1 is cool</font> <br /> <br />
<form method="post">
<select name = "key1">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
</select>
<select name = "key2">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
</select>
<select name = "key3">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
</select>
<select name = "key4">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
</select>
<br /> <br />
<input type='submit' value='Enter PIN' name='entered'>
</form>