⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kop.php

📁 还是WEB游戏源码 Darkstep 还是WEB游戏源码 Darkstep
💻 PHP
字号:
<?php /* ------------------------- */

  include("_include-jail.php");

/* ------------------------- */ ?>
<html>


<head>

<title>[( Elite Avengers )]</title>
<link rel="stylesheet" type="text/css" href="css-v1.css">
</head>

<body>
<table width=100%>

<?php

if (isset($_POST['submit2'],$_POST['inzet']) && $_POST['inzet'] >= 0) {
           if(!empty($color) ) {
                   $inzet = preg_replace('#[^0-9]#', '', $_POST['inzet']);
                   $genoegcash = "$inzet";
           if($genoegcash <= $data->cash) {
$insert = "UPDATE `[users]` set `cash`=`cash`-$inzet WHERE login = '{$data->login}'";
$insert_now = mysql_query($insert) or die("FOUT in query ");

$random_color = rand(1,2);
if($color == $random_color) {
$insert = "UPDATE `[users]` set `cash`=`cash`+$inzet*2 WHERE login = '{$data->login}'";
$insert_now = mysql_query($insert) or die("FOUT in query ");
echo "<table align=center width=100%>
  <tr><td class=subTitle><b>Head or tail</b></td></tr>
  <tr><td class=mainTxt>
  Congratualations! You guesed the right answer. You won 2x your bet back.";
  echo " </td></tr>
</table><br>";

}
else {
if($color == 1 && $random_color == 1) {
echo "<table align=center width=100%>
  <tr><td class=subTitle><b>Head or tail</b></td></tr>
  <tr><td class=mainTxt>You choosed head.<br> And that was the right answer!
";
echo " </td></tr>
</table><br>";
}
if($color == 2 && $random_color == 1) {
echo "<table align=center width=100%>
  <tr><td class=subTitle><b>Head or tail</b></td></tr>
  <tr><td class=mainTxt>You choosed tail. But it needed to be head.

";
echo " </td></tr>
</table><br>";
}
if($color == 1 && $random_color == 2) {
echo "<table align=center width=100%>
  <tr><td class=subTitle><b>Head or tail</b></td></tr>
  <tr><td class=mainTxt>You choosed head.<br>But it needed to be tail.

";
echo " </td></tr>
</table><br>";
}
if($color == 2 && $random_color == 2) {
echo "<table align=center width=100%>
  <tr><td class=subTitle><b>Head or tail</b></td></tr>
  <tr><td class=mainTxt>You choosed tail.<br> And that was the right answer!
";
echo " </td></tr>
</table><br>";
}
}
}
else {
echo "<table align=center width=100%>
  <tr><td class=subTitle><b>Head or tail</b></td></tr>
  <tr><td class=mainTxt>You haven't got enough money.";
echo " </td></tr>
</table><br>";
}
}
}
else {
echo "<table align=center width=100%>
  <tr><td class=subTitle><b>Head or tail</b></td></tr>
  <tr><td class=mainTxt>Head or tail is an easy game.<br>
You can choose between Head or tail.<br>
Then you can choose your bet.<br>
You have always 50% change to win.<br>
You can win 200% back!<br>
<br>";

?>






 <big><FORM METHOD=post ACTION="">


<select name="color">
<option value="1">Head</option>
<option value="2">Tail</option>
</select>  </big>
  <br>
 <br>
Inzet:<BR>
<select name="inzet">
<option>None</option>
<option value="500">$500</option>
<option value="1000">$1,000</option>
<option value="2500">$2,500</option>
<option value="5000">$5,000</option>
<option value="10000">$10,000</option>
<option value="25000">$25,000</option>
</select>
 <br>
 <br>
<br>
<INPUT name="submit2" type="submit" VALUE="Bet">
</FORM>
</td></tr>
</table><br>

<?PHP
}
?>


<?PHP
echo "

</body>
</html>";

?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -