$content.='
';
$content.='';
$content.='BET ID | ';
$content.='PLAYER | ';
$content.='TIME | ';
$content.='BET | ';
$content.='MULTIPLIER | ';
$content.='TARGET | ';
$content.='ROLL | ';
$content.='PROFIT | ';
$content.='
';
$suda=0;
while ($my_bet=mysql_fetch_array($my_bets)) {
$content.=($suda==0)?'':'
';
$username=mysql_fetch_array(mysql_query("SELECT `alias` FROM `players` WHERE `id`=$my_bet[player] LIMIT 1"));
$chance['under']=floor((1/($my_bet['multiplier']/100)*((100-$settings['house_edge'])/100))*100)/100;
$chance['over']=100-$chance['under'];
$target=($my_bet['under_over']==0)?'<'.sprintf("%.2f",$chance['under']):'>'.sprintf("%.2f",$chance['over']);
$profit=-$my_bet['bet_amount'];
$profit_class='lose';
$plusko=($my_bet['bet_amount']==0)?'-':'';
if ($my_bet['win_lose']==1) {
$profit+=$my_bet['bet_amount']*$my_bet['multiplier'];
$profit_class='win';
$plusko='+';
}
$content.=''.$my_bet['id'].' | ';
$content.=''.$username['alias'].' | ';
$content.=''.date('H:i:s',strtotime($my_bet['time'])).' | ';
$content.=''.sprintf("%.8f",$my_bet['bet_amount']).' | ';
$content.=''.sprintf("%.2f",$my_bet['multiplier']).' | ';
$content.=''.$target.' | ';
$content.=''.sprintf("%.2f",$my_bet['result']).' | ';
$content.=''.$plusko.sprintf("%.8f",floor($profit*100000000)/100000000).' | ';
$content.='
';
$suda=($suda==0)?1:0;
}
$content.='
';
}
break;
case 'all_bets':
$all_bets=mysql_query("SELECT * FROM `bets` WHERE `bet_amount`!=0 ORDER BY `time` DESC LIMIT 30");
if (mysql_num_rows($all_bets)==0) $content.='
No one has bet yet.';
else {
this is for a dice game, of course its just a fraction of its content.
---------------------------------------------------------------------------------------------
$content.='
Bet | ';
$content.='
Result | ';
$content.='
Return | ';
$content.='
Time | ';
$content.='';
$query=mysql_query("SELECT * FROM `spins` ORDER BY `time` DESC LIMIT 30");
$sl=false;
while ($row=mysql_fetch_array($query)) {
if (mysql_num_rows(mysql_query("SELECT `alias` FROM `players` WHERE `id`=$row[player] LIMIT 1"))!=0) {
$player_inf_=mysql_fetch_array(mysql_query("SELECT `alias` FROM `players` WHERE `id`=$row[player] LIMIT 1"));
$row['player']=$player_inf_['alias'];
}
else $row['player']='-';
$class=($sl==true)?' class="odd"':'';
$content.='
';
$content.=''.$row['id'].' | ';
$content.=''.$row['player'].' | ';
$content.=''.rtrim(rtrim(sprintf("%0.12f",$row['wager']),'0'),'.').' '.$settings['currency_sign'].' | ';
$content.=''.rtrim(rtrim(sprintf("%0.12f",$row['multiplier']),'0'),'.').'x | ';
$content.=''.rtrim(rtrim(sprintf("%0.12f",($row['wager']*$row['multiplier'])),'0'),'.').' '.$settings['currency_sign'].' | ';
$content.=''.$row['time'].' CET | ';
$content.='
';
if ($sl==false) $sl=true; else $sl=false;
}
$content.='';
break;
case 'leaderbord':
$content.='
';
$content.='';
$content.='ID | ';
$content.='Alias | ';
$content.='Bet | ';
$content.='Result | ';
$content.='Return | ';
$content.='Time | ';
$content.='
';
$query=mysql_query("SELECT *,(`wager`*`multiplier`) AS `return` FROM `spins` ORDER BY `return` DESC LIMIT 30");
$sl=false;
while ($row=mysql_fetch_array($query)) {
if (mysql_num_rows(mysql_query("SELECT `alias` FROM `players` WHERE `id`=$row[player] LIMIT 1"))!=0) {
$player_inf_=mysql_fetch_array(mysql_query("SELECT `alias` FROM `players` WHERE `id`=$row[player] LIMIT 1"));
$row['player']=$player_inf_['alias'];
}
else $row['player']='-';
$class=($sl==true)?' class="odd"':'';
$content.='';
$content.=''.$row['id'].' | ';
$content.=''.$row['player'].' | ';
$content.=''.$row['wager'].' '.$settings['currency_sign'].' | ';
$content.=''.$row['multiplier'].'x | ';
$content.=''.rtrim(rtrim(sprintf("%0.12f",($row['wager']*$row['multiplier'])),'0'),'.').' '.$settings['currency_sign'].' | ';
$content.=''.$row['time'].' CET | ';
$content.='
';
if ($sl==false) $sl=true; else $sl=false;
}
$content.='
';
break;
case 'news':
$query=mysql_query("SELECT * FROM `news` ORDER BY `time` DESC");
while ($row=mysql_fetch_array($query)) {
$content.='
';
$content.=str_replace('','',str_replace('','',str_replace('
','
',str_replace('[/B]','',str_replace('','',$row['content']))))).'
'.$row['time'].'';
$content.='
';
}
$content.='
';
break;
case 'fair':
$unique=$_GET['_unique'];
$player=mysql_num_rows(mysql_query("SELECT `id` FROM `players` WHERE `hash`='".prot($unique)."' LIMIT 1"));
if ($player!=0) $player=mysql_fetch_array(mysql_query("SELECT `id`,`server_seed`,`client_seed`,`old_server_seed`,`old_client_seed` FROM `players` WHERE `hash`='".prot($unique)."' LIMIT 1"));
else exit();
$content.='
';
$content.='
Server seed hash: '.hash('sha256',$player['server_seed']).'';
$content.='
Client seed: '.$player['client_seed'].'';
$content.='
Set client seed for next spin';
$content.='
Old server seed: '.$player['old_server_seed'].'';
$content.='
Old client seed: '.$player['old_client_seed'].'';
$content.='
Formula: ((client_seed * 9) Mod 16) + 1 = final order in server seed';
$content.='
Served seed values:';
$content.='
0 = 1.25x';
$content.='
1 = 0.25x';
$content.='
2 = 2x';
$content.='
3 = 0x';
$content.='
4 = 2x';
$content.='
5 = 0.25x';
$content.='
6 = 2x';
this one is for a Wheel game.
BOTH for BITCOINS GAMBLING.
Selling both for 2 bitcoins
http://imgur.com/lre90JQhttp://imgur.com/XNuoKxpdemo :
www.wheelofsatoshi.comPm or Post, i usually reply very quickly.