Re-code of crackasafe.php:
<?php
//****Modified by Immortal Thug
//****re-coded by Danny696
//***Please keep this notice.
@include_once(DIRNAME(__FILE__) .'/globals.php');
///////////////Setting
$cred = "Crystals"; //change this is you dont use crystals
///////////////Setting
if($ir['safetries']<=0) {
echo'<span style="color:#800517; font-weight: bold;"><h3>You have no more tries, please come back tommorow.</h3></span>';
exit($h->endpage());
}
$r = $db->fetch_row($db->query("SELECT * FROM `cracksafe` WHERE `sname`=1"));
$r2 = $db->fetch_row($db->query("SELECT * FROM `cracksafe2` WHERE `sname`=1"));
$r3 = $db->fetch_row($db->query("SELECT * FROM `cracksafe3` WHERE `sname`=1"));
echo'<table width="50%" class="table">
<tr>
<td colspan="3">Attempts Remaining:</td><td colspan="2"><span style="size: 3; color: green; font-weight: bold;">'.$ir['safetries'].'</span></td>
</tr>
<tr>
<th colspan="2">Crack the safe\'s</td><th colspan="2">Pot ammounts</th>
</tr>
<tr>
<th colspan="2"> </th><th>Cash</th><th>'.$cred.'</th>
</tr>
<tr>
<td>Safe 1 [Free]</td>
<td><a href="cracksafe.php">Crack</a></td>
<td><span style="color: green; font-weight: bold;">$'.number_format($r['winnings']).'</span></td>
<td><span style="color: green; font-weight: bold;">'.number_format($r['winnings2']).'</span></td>
</tr>
<tr>
<td>Safe 2 [$10,000]</td>
<td><a href="cracksafe2.php">Crack</a></td>
<td><span style="color: green; font-weight: bold;">$'.number_format($r2['winnings']).'</span></td>
<td><span style="color: green; font-weight: bold;">'.number_format($r2['winnings2']).'</span></td>
</tr>
<tr>
<td>Safe 3 [$100,000]</td>
<td><a href="cracksafe3.php">Crack</a></td>
<td><span style="color: green; font-weight: bold;">$'.number_format($r3['winnings']).'</span></td>
<td><span style="color: green; font-weight: bold;">'.number_format($r3['winnings2']).'</span></td>
</tr>
</table>';
$h->endpage();
?>