<?
include_once($_SERVER['DOCUMENT_ROOT']."/inc/_include-config.php");
$cashhh = number_format($data->cash,0,",",".");
?>
<link rel="stylesheet" type="text/css" href="<?= $sitelink;?>/layout/layout<?= $page->layout; ?>/css/css.css">
<?
$casino = mysql_query("SELECT * FROM `[casinoo]` WHERE `spel`='3' AND `land`='$data->land'");
$casino = mysql_fetch_object($casino);
if($casino->vw > 0){
$vw = number_format($casino->vw,0,",",".");
$bjwinst = "<font color=green>\$$vw</font>";
}
if($casino->vw == 0){
$vw = number_format($vw,0,",",".");
$bjwinst = "\$$casino->vw";
}
if($casino->vw < 0){
$vw = number_format($casino->vw,0,",",".");
$bjwinst = "<font color=red>\$$vw</font>";
}
if($casino->owner ==$data->login){
print"</table>";
}
echo "<table width=100% align=center>";
if($casino->owner == ""){
print <<<ENDHTML
<table width=87% align=center>
<tr><td class=subTitle>$bj4</td></tr>
<tr><td class=mainTxt align=center>$bj2</td></tr>
<tr><td class=mainTxt align=center>
<a href="../koopitems/koopblackjack.php">$bj3</a>
</td></tr>
</table>
ENDHTML;
exit;
}
else{
print <<<ENDHTML
<tr><td class=subTitle>$bj4</td></tr>
ENDHTML;
if($data->login == $casino->owner){
if(isset($_POST['VA'])){
echo "<table width=\"100%\">";
if($_POST['inzet'] <1000)
{
print "<tr><td class=\"mainTxt\" width=\"100%\">$bj5</td></tr>";
}
elseif($_POST['inzet'] >10000000)
{
print"<tr><td class=\"mainTxt\" width=\"100%\">$bj6</td></tr>";
}
else
{
$inzet = $_POST['inzet'];
mysql_query("UPDATE `[casinoo]` SET `maximum`='$inzet' WHERE `land`='$data->land' AND `spel`='3'");
$inzett = number_format($inzet,0,",",".");
print "<tr><td class=\"mainTxt\" width=\"100%\">$bj7 $inzett.</td></tr>";
}
}
$winst = number_format($casino->vw, 0, ",", ".");
$casinobank = number_format($casino->casinobank, 0, ",", ".");
if(!isset($_POST['stort']) && !isset($_POST['afhalen']) ){
print <<<ENDHTML
<table width=100%>
<tr><td class="mainTxt" width="48%">
<form method="POST">
$bj8 $bjwinst $bj9<br><br>
$bj10 $casinobank <br>
$bj11 $cashhh<br><br>
<form action=blackjack.php method=post>
<input type=hidden name=casino value=>$bj12 <input type=text name=inzet value=$casino->maximum><input type=submit name=VA value="$bj13"></form>
<font color=red>$bj14</font><br><br>
<form action=blackjack.php method=post>
$bj15<br>€ <input type=text name=bedrag><br><Br>
<input type=submit name=stort value="$bj16"><input type=submit name=afhalen value="$bj17"></form>
ENDHTML;
}
if(isset($_POST['stort'])){
if($_POST['bedrag'] <= 0 OR !preg_match('/^[0-9]{1,15}$/',$_POST['bedrag']))
{
echo "<tr><td class=maintxt width=100% align=center>$bj18</font></tr></td>";
exit;
}
$geld = $_POST['bedrag'];
if($geld >$data->cash){
print" <table width=100%><tr><td class=mainTxt>$bj19</td></tr>";
}elseif($geld <1){
print" <table width=100%><tr><td class=mainTxt>$bj20 <i>$bj21</I> $bj22</td></tr>";
}elseif($geld >1111111111111111){
$helft = $geld/2;
print"<tr><td class=mainTxt><br>$bj23 $helft $bj24</td></tr>";
}else{
mysql_query("UPDATE `[users]` SET `cash`=`cash`-'$geld' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[casinoo]` SET `casinobank`=`casinobank`+'$geld' WHERE `owner`='{$data->login}' AND `land`='$data->land' AND `spel`='3'");
$casinobank4 = $casino->casinobank+$bedrag;
$casinobank4 = number_format($casinobank4, 0, ",", ".");
$geld2 = number_format($geld,0,",",".");
print <<<ENDHTML
<table width=100%>
<tr><td class=mainTxt>$bj2 $geld2 op de casinobank gestort.</td></tr>
<tr><td class="mainTxt" width="48%">
<form method="POST">
$bj8 $bjwinst $bj29<br><br>
$bj10 $casinobank <br>
$bj11 $cashhh<br><br>
<form action=blackjack.php method=post>
<input type=hidden name=casino value=>$bj12 <input type=text name=inzet value=$casino->maximum><input type=submit name=VA value="$bj13"></form>
<font color=red>$bj14</font><br><br>
<form action=blackjack.php method=post>
$bj16<br>€ <input type=text name=bedrag><br><br>
<input type=submit name=stort value="Stort op de casinobank"><input type=submit name=afhalen value="$bj17">
ENDHTML;
unset($_POST['stort']);
}
}
if(isset($_POST['afhalen'])) {
$geld = $_POST['bedrag'];
if($_POST['bedrag'] <= 0 OR !preg_match('/^[0-9]{1,15}$/',$_POST['bedrag']))
{
echo "<tr><td class=maintxt width=100% align=center>$bj18</font></tr></td>";
exit;
}
elseif($geld >$casino->casinobank){
print" <table width=100%><tr><td class=mainTxt>$bj27</td></tr>";
}elseif($geld <1){
print" <table width=100%><tr><td class=mainTxt>$bj20 <i>$bj21</I> $bj22</td></tr>";
}else{
$geld = $_POST['bedrag'];
mysql_query("UPDATE `[users]` SET `cash`=`cash`+'$geld' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[casinoo]` SET `casinobank`=`casinobank`-'$geld' WHERE `owner`='{$data->login}' AND `land`='$data->land' AND `spel`='3'");
$casinobank3 = $casino->casinobank-$bedrag;
$casinobank3 = number_format($casinobank3, 0, ",", ".");
$geld2 = number_format($geld,0,",",".");
print <<<ENDHTML
<table width=100%>
<tr><td class=maintxt>$bj8 $geld2 $bj28</td></tr>
<tr><td class="mainTxt" width="48%">
<form method="POST">
$bj8 $bjwinst $bj9<br><br>
$bj10 $casinobank <br>
$bj11 $cashhh<br><br>
<form action=blackjack.php method=post>
<input type=hidden name=casino value=>$bj12 <input type=text name=inzet value=$casino->maximum><input type=submit name=VA value="$bj13"></form>
<font color=red>$bj14</font><br><br>
<form action=blackjack.php method=post>
$bj15<br>
$bj30<br> <input type=text name=bedrag><br><br>
<input type=submit name=stort value="$bj16"><input type=submit name=afhalen value="$bj17"></form>
ENDHTML;
unset($_POST['afhalen']);
print"</td></tr>"; }
}}else{
if(isset($_POST['start'])){
if($_POST['inzet'] <= 0 OR !preg_match('/^[0-9]{1,15}$/',$_POST['inzet']))
{
echo "<tr><td class=maintxt width=100% align=center>$bj18</font></tr></td>";
exit;
}
}
$geldover =$data->cash+$inzet;
$eigenaar =ucfirst($casino->owner);
if($eigenaar =="Obay"){
print"<tr><td class=mainTxt>$bj31<br>$bj32</td></tr>";
exit;
}
else{
$dbres = mysql_query("SELECT maximum FROM `[casinoo]` WHERE `land`='$data->land' AND `spel`='3'");
$max = mysql_fetch_object($dbres);
$inzett = number_format($inzet,0,",",".");
$maximum = number_format($max->maximum,0,",",".");
$min = number_format($max->maximum/10,0,",",".");
$inzet = $_POST['inzet'];
if($inzet > $max->maximum)
{
print"<tr><td class=mainTxt>$bj33 $inzett $bj34 $maximum $bj35</td></tr>";
exit;
}
$picurl = "../images/gokken/blackjack/"; //zet hier je url met / op het einde
$ext = ".jpg"; // zet hier de extensie (.jpg bij de afbeeldingen die ik gebruik
if(isset($_POST['start']) && preg_match('/[0-9]{1,15}/',$_POST['inzet'])) {
$_POST['inzet'] = str_replace('+',"impossible",$_POST['inzet']);
$_POST['inzet'] = str_replace('-',"impossible",$_POST['inzet']);
if($_POST['inzet'] <= 0 OR !preg_match('/^[0-9]{1,15}$/',$_POST['inzet']))
{
echo "<tr><td class=maintxt width=100% align=center>$bj18</font></tr></td>";
exit;
}
else{$inzet = $_POST['inzet'];
if($inzet >$data->cash){ print"<tr><td class=mainTxt>$bj19</td></tr>"; exit; }
if($max->maximum/10 > $inzet)
{
print"<tr><td class=mainTxt>$bj36 {$min}.</td></tr>";
exit();
}
mysql_query("UPDATE `[users]` SET `cash`=`cash`-'$inzet' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[casinoo]` SET `casinobank`=`casinobank`+'$inzet' WHERE `land`='$data->land' AND `spel`='3'");
mysql_query("UPDATE `[casinoo]` SET `vw`=`vw`+'$inzet' WHERE `spel`='3' AND `land`='$data->land'");
mysql_query("DELETE FROM `blackjack` WHERE `login`='data->login'");
$winst = ($inzet * 3);
$getal = rand(1,13);
$soort = rand(1,4);
$getal2 = rand(1,13);
$soort2 = rand(1,4);
if($soort == 1) {$soort = "$bj37";}
if($soort == 2) {$soort = "$bj38";}
if($soort == 3) {$soort = "$bj39";}
if($soort == 4) {$soort = "$bj40";}
if($soort2 == 1) {$soort2 = "$bj37";}
if($soort2 == 2) {$soort2 = "$bj38";}
if($soort2 == 3) {$soort2 = "$bj39";}
if($soort2 == 4) {$soort2 = "$bj40";}
$geta = $getal;
$geta2 = $getal2;
if($getal == 11) {$geta = "$bj42"; $getal = 10;}
if($getal == 12) {$geta = "$bj43"; $getal = 10;}
if($getal == 13) {$geta = "$bj44"; $getal = 10;}
if($getal == 1) {$geta = "$bj45"; $getal = 11; $aas = 1;}
if($getal2 == 11) {$geta2 = "$bj42"; $getal2 = 10;}
if($getal2 == 12) {$geta2 = "$bj43"; $getal2 = 10;}
if($getal2 == 13) {$geta2 = "$bj44"; $getal2 = 10;}
if($getal2 == 1) {$geta2 = "$bj45"; $getal2 = 11; $aas = ($aas + 1);}
$picture = "<img src=".$picurl.$soort.$geta.$ext.">";
$picture2 = "<img src=".$picurl.$soort2.$geta2.$ext.">";
$pictures = $picture." ".$picture2;
$pictured = "<img src=".$picurl.$soortd.$getad.$ext.">";
$winsttt = number_format($winst,0,",",".");
$dealer = $vorige->dealer;
if(($getal + $getal2) == 21) {
$som = ($getal + $getal2);
mysql_query("UPDATE `[users]` SET `cash`=`cash`+'$winst'+'$inzet' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[casinoo]` SET `casinobank`=`casinobank`-'$winst'-'$inzet' WHERE `land`='$data->land' AND `spel`='3'");
mysql_query("UPDATE `[casinoo]` SET `vw`=`vw`-'$winst'-'$inzet' WHERE `spel`='3' AND `land`='$data->land'");
echo " <tr><td width=100 align=center valign=top class=maintxt>$bj46<br>($dealer)</td><td colspan=2 align=left class=maintxt>$pictured
</td></tr>
<tr><td width=100 align=center valign=top class=maintxt>$bj47 <br>($som)</td><td colspan=2 align=left class=maintxt>$pictures
</td></tr>
<tr><td colspan=3 align=center class=maintxt>$bj48 $soort $geta $bj50 $soort2 $geta2. $bj49 $winsttt $bj51</td></tr><tr><td colspan=3 align=cente class=maintxt>$bj52 $cashhh</td></tr></table></form>";
}
else {
$som = ($getal + $getal2);
if($aas > 0) {$som2 = $som-10;}
$getald = rand(1,13);
$soortd = rand(1,4);
if($soortd == 1) {$soortd = "$bj37";}
if($soortd == 2) {$soortd = "$bj38";}
if($soortd == 3) {$soortd = "$bj39";}
if($soortd == 4) {$soortd = "$bj40";}
$getad = $getald;
if($getald == 11) {$getad = "$bj42"; $getald = 10;}
if($getald == 12) {$getad = "$bj43"; $getald = 10;}
if($getald == 13) {$getad = "$bj44"; $getald = 10;}
if($getald == 1) {$getad = "$bj45"; $getald = 11;}
$pictured = "<img src=".$picurl.$soortd.$getad.$ext.">";
mysql_query("INSERT INTO `blackjack`(`login`,`inzet`,`kaart`,`kaartpic`,`aas`,`dealer`,`dealerpic`) values('{$data->login}','{$inzet}','{$som}','{$pictures}','{$aas}','{$getald}','{$pictured}')") or die (mysql_error());
if($aas > 0) {
echo "<tr><td width=100 align=cente class=maintxt>$bj46<br>(?)</td><td colspan=2 align=left class=maintxt><img src='../images/gokken/blackjack/closed.gif'> <img src='../images/gokken/blackjack/closed.gif'>
</td></tr>
<tr><td width=100 align=center valign=top class=maintxt>$bj47 <br>($som)</td><td colspan=2 align=left class=maintxt>$pictures
</td></tr>
<tr><td colspan=3 align=center class=maintxt>$bj53<br><form method='post'><input type='submit' name='aas' value='$bj56'> <input type='submit' name='aas2' value='$bj55'></form></td></tr></table></form>";
exit;}
echo " <tr><td width=100 align=center valign=top class=maintxt>$bj46<br>(?)</td><td colspan=2 align=left class=maintxt><img src='../images/gokken/blackjack/closed.gif'> <img src='../images/gokken/blackjack/closed.gif'>
</td></tr>
<tr><td width=100 align=center valign=top class=maintxt>$bj47 <br>($som)</td><td colspan=2 align=left class=maintxt>$pictures
</td></tr>
<tr><td colspan=3 align=center class=maintxt><form method='post'><input type='submit' name='nieuw' value='$bj61'> <input type='submit' name='stop' value='$bj54'></td></tr><tr><td colspan=3 align=center class=maintxt>$bj52$cashhh</td></tr></table></form>";
} }
}
elseif($_POST['nieuw']) {
session_start();
$dbres = mysql_query("SELECT * FROM `blackjack` WHERE `login`='{$data->login}'") or die (mysql_error());
$vorige = mysql_fetch_object($dbres);
$winst = (2*$vorige->inzet);
$inzet = $vorige->inzet;
$getal = rand(1,13);
$soort = rand(1,4);
if($soort == 1) {$soort = "$bj37";}
if($soort == 2) {$soort = "$bj38";}
if($soort == 3) {$soort = "$bj39";}
if($soort == 4) {$soort = "$bj40";}
$geta = $getal;
if($getal == 11) {$geta = "$bj42"; $getal = 10;}
if($getal == 12) {$geta = "$bj43"; $getal = 10;}
if($getal == 13) {$geta = "$bj44"; $getal = 10;}
if($getal == 1) {$geta = "$bj45"; $getal = 11; $aas = 1;}
$som = ($vorige->kaart + $getal);
$so = ($vorige->kaart + 1);
$picture = "<img src=".$picurl.$soort.$geta.$ext.">";
$pictures = $vorige->kaartpic." ".$picture;
$pictured = $vorige->dealerpic;
if($getal == 11) {$som2 = "of $so";}
mysql_query("UPDATE `blackjack` SET `aas`='{$aas}',`kaart`='{$som}',`kaartpic`='{$pictures}' WHERE `login`='{$data->login}'") or die (mysql_error());
if($aas > 0) {
echo "<tr><td width=100 align=center valign=top class=maintxt>$bj46<br>(?)</td><td colspan=2 align=left class=maintxt><img src='../images/gokken/blackjack/closed.gif'> <img src='../images/gokken/blackjack/closed.gif'>
</td></tr>
<tr><td width=100 align=center valign=top class=maintxt>$bj47 <br>($som)</td><td colspan=2 align=left class=maintxt>$pictures
</td></tr>
<tr><td colspan=3 align=center class=maintxt>$bj53<form method='post'><input type='submit' name='aas' value='$bj56'> <input type='submit' name='aas2' value='$bj55'></form></td></tr></table></form>";
exit;
}
if($som > 21) {
$dealer = $vorige->dealer;
$inzett = number_format($vorige->inzet,0,",",".");
echo "<tr><td width=100 align=center valign=top class=maintxt>$bj46<br>($dealer)</td><td colspan=2 align=left class=maintxt>$pictured
</td></tr>
<tr><td width=100 align=center valign=top class=maintxt>$bj47 <br>($som)</td><td colspan=2 align=left class=maintxt>$pictures
</td></tr>
<tr><td colspan=3 align=center class=maintxt>$bj57 $som.$bj58 $inzett $bj59<br><br><a href=blackjack.php>$bj60</a></td></tr></table></form>";
mysql_query("DELETE FROM `blackjack` WHERE `login`='{$data->login}'");
exit;
}
echo " <tr><td width=100 align=center valign=top class=maintxt>$bj46<br>(?)</td><td colspan=2 align=left class=maintxt><img src='../images/gokken/blackjack/closed.gif'> <img src='../images/gokken/blackjack/closed.gif'>
</td></tr>
<tr><td width=100 align=center valign=top class=maintxt>$bj47 <br>($som)</td><td colspan=2 align=left class=maintxt>$pictures
</td></tr>
<tr><td colspan=3 align=center class=maintxt><form method='post'><input type='submit' name='nieuw' value='$bj61'> <input type='submit' name='stop' value='$bj54'></td></tr><tr><td colspan=3 align=center class=maintxt>$bj52 $cashhh</td></tr></table></form>";
}
elseif($_POST['aas']) {
session_start();
$dbres = mysql_query("SELECT * FROM `blackjack` WHERE `login`='{$data->login}'") or die (mysql_error());
$vorige = mysql_fetch_object($dbres);
$pictures = $vorige->kaartpic;
$pictured = $vorige->dealerpic;
$i=0;
while ($i < $vorige->aas){
$som = ($vorige->kaart - 10);
$i++;
}
mysql_query("UPDATE `blackjack` SET `aas`='0',`kaart`='{$som}' WHERE `login`='{$data->login}'") or die (mysql_error());
echo " <tr><td width=100 align=center valign=top class=maintxt>$bj46<br>(?)</td><td colspan=2 align=left class=maintxt><img src='../images/gokken/blackjack/closed.gif'> <img src='../images/gokken/blackjack/closed.gif'>
</td></tr>
<tr><td width=100 align=center valign=top class=maintxt>$bj47 <br>($som)</td><td colspan=2 align=left class=maintxt>$pictures
</td></tr>
<tr><td colspan=3 align=center class=maintxt><form method='post'><input type='submit' name='nieuw' value='$bj61'> <input type='submit' name='stop' value='$bj54'></td></tr><tr><td colspan=3 align=center class=maintxt>$bj52 $cashhh</td></tr></table></form>";
}
elseif($_POST['aas2']) {
session_start();
$dbres = mysql_query("SELECT * FROM `blackjack` WHERE `login`='{$data->login}'") or die (mysql_error());
$vorige = mysql_fetch_object($dbres);
$som = $vorige->kaart;
$pictures = $vorige->kaartpic;
$pictured = $vorige->dealerpic;
mysql_query("UPDATE `blackjack` SET `aas`='0' WHERE `login`='{$data->login}'") or die (mysql_error());
echo " <tr><td width=100 align=center valign=top class=maintxt>$bj46<br>(?)</td><td colspan=2 align=left class=maintxt><img src='../images/gokken/blackjack/closed.gif'> <img src='../images/gokken/blackjack/closed.gif'>
</td></tr>
<tr><td width=100 align=center valign=top class=maintxt>$bj47 <br>($som)</td><td colspan=2 align=left class=maintxt>$pictures
</td></tr>
<tr><td colspan=3 align=center class=maintxt><form method='post'><input type='submit' name='nieuw' value='$bj61'> <input type='submit' name='stop' value='$bj54'></td></tr><tr><td colspan=3 align=center class=maintxt>$bj52 $cashhh</td></tr></table></form>";
}
elseif($_POST['stop']) {
session_start();
$dbres = mysql_query("SELECT * FROM `blackjack` WHERE `login`='{$data->login}'") or die (mysql_error());
$vorige = mysql_fetch_object($dbres);
$som = $vorige->kaart;
$pictures = $vorige->kaartpic;
$pictured = $vorige->dealerpic;
$dealer = $vorige->dealer;
if($som > 21) {
$inzett = number_format($vorige->inzet,0,",",".");
echo " <tr><td width=100 align=center valign=top class=maintxt>$bj46<br>($dealer)</td><td colspan=2 align=left class=maintxt>$pictured
</td></tr>
<tr><td width=100 align=center valign=top class=maintxt>$bj47 <br>($som)</td><td colspan=2 align=left class=maintxt>$pictures
</td></tr>
<tr><td colspan=3 align=center class=maintxt><br>$bj58 $inzett $bj63<br><br><a href=blackjack.php>$bj60</a></table></form>";
mysql_query("DELETE FROM `blackjack` WHERE `login`='{$data->login}'");
exit;
}
$dealer = $vorige->dealer;
$getal = rand(1,13);
$soort = rand(1,4);
if($soort == 1) {$soort = "$bj37";}
if($soort == 2) {$soort = "$bj38";}
if($soort == 3) {$soort = "$bj39";}
if($soort == 4) {$soort = "$bj40";}
$geta = $getal;
if($getal == 11) {$geta = "$bj42"; $getal = 10;}
if($getal == 12) {$geta = "$bj43"; $getal = 10;}
if($getal == 13) {$geta = "$bj44"; $getal = 10;}
if($getal == 1) {$geta = "$bj45"; $getal = 11; $aas = 1;}
$picture = "<img src=".$picurl.$soort.$geta.$ext.">";
$pictured = $pictured." ".$picture;
$somd = ($dealer + $getal);
if($somd > 21 && $aas == 1) {$dealer = ($dealer + 1); $aas = 0;}
else {$dealer = $somd;}
while ($dealer < $som){
$getal = rand(1,13);
$soort = rand(1,4);
if($soort == 1) {$soort = "$bj37";}
if($soort == 2) {$soort = "$bj38";}
if($soort == 3) {$soort = "$bj39";}
if($soort == 4) {$soort = "$bj40";}
$geta = $getal;
if($getal == 11) {$geta = "$bj42"; $getal = 10;}
if($getal == 12) {$geta = "$bj43"; $getal = 10;}
if($getal == 13) {$geta = "$bj44"; $getal = 10;}
if($getal == 1) {$geta = "$bj45"; $getal = 11; $aas = 1;}
$picture = "<img src=".$picurl.$soort.$geta.$ext.">";
$pictured = $pictured." ".$picture;
$somd = ($dealer + $getal);
if($somd > 21 && $aas == 1) {$dealer = ($dealer + 1); $aas = 0;}
else {$dealer = $somd;}
}
$winst = (2*$vorige->inzet);
$inzett = number_format($vorige->inzet,0,",",".");
$inzet = ($vorige->inzet);
if($dealer > 21){
if($casino->casinobank-$inzet <0){
mysql_query("UPDATE `[casinoo]` SET `casinobank`='0' WHERE `spel`='3' AND `land`='$data->land'");
mysql_query("UPDATE `[casinoo]` SET `vw`='0' WHERE `spel`='3' AND `land`='$data->land'");
mysql_query("UPDATE `[casinoo]` SET `maximum`='0' WHERE `spel`='3' AND `land`='$data->land'");
mysql_query("UPDATE `[casinoo]` SET `owner`='{$data->login}' WHERE `land`='$data->land' AND `spel`='3'");
print "<tr><td class=mainTxt align=center>$bj64</td></tr>";
exit();}
mysql_query("UPDATE `[users]` SET `cash`=`cash`+'$inzet'+'$inzet' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[casinoo]` SET `casinobank`=`casinobank`-'$inzet'-'$inzet' WHERE `land`='$data->land' AND `spel`='3'");
mysql_query("UPDATE `[casinoo]` SET `vw`=`vw`-'$inzet'-'$inzet' WHERE `spel`='3' AND `land`='$data->land'");
echo "<tr><td width=100 align=center valign=top class=maintxt>$bj46<br>($dealer)</td><td colspan=2 align=left class=maintxt>$pictured
</td></tr>
<tr><td width=100 align=center valign=top class=maintxt>$bj47 <br>($som)</td><td colspan=2 align=left class=maintxt>$pictures
</td></tr>
<td colspan=3 align=center class=maintxt><br>$bj65 $inzett $bj65a<br><br><a href=blackjack.php>$bj60</a></table></form>";
}
elseif($dealer < $som) {mysql_query("UPDATE `[users]` SET `cash`=`cash`+'$inzet'+'$inzet' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[casinoo]` SET `casinobank`=`casinobank`-'$inzet'-'$inzet' WHERE `land`='$data->land' AND `spel`='3'");
mysql_query("UPDATE `[casinoo]` SET `vw`=`vw`-'$inzet'-'$inzet' WHERE `spel`='3' AND `land`='$data->land'");
echo "<tr><td width=100 align=center valign=top class=maintxt>$bj46<br>($dealer)</td><td colspan=2 align=left class=maintxt>$pictured
</td></tr>
<tr><td width=100 align=center valign=top class=maintxt>$bj47 <br>($som)</td><td colspan=2 align=left class=maintxt>$pictures
</td></tr>
<tr><td colspan=3 align=center class=maintxt><br>$bj65 $inzett $bj65a<br><br><a href=blackjack.php>$bj60</a></table></form>";
}
elseif($dealer > $som){ echo "
<tr><td width=100 align=center valign=top class=maintxt>$bj46<br>($dealer)</td><td colspan=2 align=left class=maintxt>$pictured
</td></tr>
<tr><td width=100 align=center valign=top class=maintxt>$bj47 <br>($som)</td><td colspan=2 align=left class=maintxt>$pictures
</td></tr>
<tr><td colspan=3 align=center class=maintxt><br>$bj66 $inzett $bj67<br><br><a href=blackjack.php>$bj60</a></table></form>";}
elseif($dealer == $som){
mysql_query("UPDATE `[users]` SET `cash`=`cash`+'$inzet' WHERE `login`='{$data->login}'");
mysql_query("UPDATE `[casinoo]` SET `casinobank`=`casinobank`-'$inzet' WHERE `land`='$data->land' AND `spel`='3'");
mysql_query("UPDATE `[casinoo]` SET `vw`=`vw`-'$inzet' WHERE `spel`='3' AND `land`='$data->land'");
echo " <tr><td width=100 align=center valign=top class=maintxt>$bj46<br>($dealer)</td><td colspan=2 align=left class=maintxt>$pictured
</td></tr>
<tr><td width=100 align=center valign=top class=maintxt>$bj47 <br>($som)</td><td colspan=2 align=left class=maintxt>$pictures
</td></tr>
<tr><td colspan=3 align=center class=maintxt><br>$bj68<br><br><a href=blackjack.php>$bj60</a></table></form>";
}
mysql_query("DELETE FROM `blackjack` WHERE `login`='{$data->login}'");
}
else {$cas = mysql_query("SELECT * FROM `[casinoo]` WHERE `spel`='3' AND `land`='$data->land'");
$cas = mysql_fetch_object($cas);
$owner = ucfirst($cas->owner);
$max = number_format($cas->maximum, 0, ",", ".");
$min = number_format($cas->maximum/10, 0, ",", ".");
echo "
<form method='post'>
<tr><td class=mainTxt><table align=\"center\">
<tr><td width=150>$bj69 </td><td>$owner</td></tr>
<tr><td width=150>$bj70 </td><td>$max</td></tr>
<tr><td width=150>$bj71 </td><td>$min</td></tr>
<tr><td width=150>$bj72 </td><td><input type=text name=inzet></td></tr>
<tr><td width=150></td></tr>
<tr><td width=100 align=center colspan=2> <input type=submit name=start value=$bj73></td></tr>
</table></td></tr></form>";
echo "<tr><td class=subTitle>$bj74</td></tr>
<tr><td class=mainTxt>
$bj75<br>
$bj76<br>
$bj77<br>
$bj78<br>
$bj79<br>
</td></tr>";
}}}}
?></font></center>
</table>
Toon Meer
Hallo,
Ik zou graag willen weten of er fouten zitten in de script hierboven de reden daarvan is omdat als ik het upload en probeer te openen dan krijg ik deze foutmelding:
Citaat
Warning: include_once(/var/www/landencriminals.zijn-server-thuis.nl/web/inc/_include-config.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/clients/client3/web32/web/ingame/blackjack.php on line 2
Warning: include_once() [function.include]: Failed opening '/var/www/landencriminals.zijn-server-thuis.nl/web/inc/_include-config.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/clients/client3/web32/web/ingame/blackjack.php on line 2
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /var/www/clients/client3/web32/web/ingame/blackjack.php on line 8
(a)