Location: PHPKode > projects > DDL CMS > Upload these files to your webspace/topsites/templates/admin_cheattally.tpl
<?PHP

$DB->Connect();

$username = $DB->Escape($_REQUEST['Username']);

$cheats = $DB->Row("SELECT * FROM topsites_Cheats WHERE Username='$username'");

$hit_types = array('Hit_IP_Address' => 'Multiple Click - IP Address',
                   'Hit_Cookie' => 'Multiple Click - Cookie',
                   'Hit_Exp_Session' => 'Expired Gateway Session',
                   'Hit_Proxy' => 'Using Proxy Server',
                   'Hit_Referrer' => 'Bad Gateway Referrer',
                   'Hit_Browser' => 'Unsupported Browser',
                   'Hit_Banned_IP' => 'Banned IP Address',
                   'Hit_No_Cookies' => 'No Cookie Support');

$rate_types = array('Rate_IP_Address' => 'Multiple Rating - IP Address',
                    'Rate_Cookie' => 'Multiple Rating - Cookie',
                    'Rate_Exp_Session' => 'Expired Session',
                    'Rate_Proxy' => 'Using Proxy Server',
                    'Rate_Referrer' => 'Bad Referrer',
                    'Rate_Browser' => 'Unsupported Browser',
                    'Rate_No_Cookies' => 'No Cookie Support',
                    'Rate_Banned_IP' => 'Banned IP Address');

?>
<script type="text/javascript">
function checkForm(form)
{
    return true;
}
</script>
<?PHP
if( isset($message) )
{
?>
<div id="message">
<?PHP echo $message; ?>
</div>
<br />
<?PHP
}
?>

<form name="form" action="newwin.php?page=cheattally" method="post" onSubmit="return checkForm(this);">

<table>
<tr>
<td>
Cheat Tally for '<?PHP echo $_REQUEST['Username']; ?>'
</td>
</tr>

<tr>
<td>
Hit Cheat Tally
</td>
</tr>


<?PHP
foreach($hit_types as $key => $name)
{
?>
<tr>
<td>
<b><?PHP echo $name; ?></b>
</td>
<td>
<?PHP echo $cheats[$key]; ?>
</td>
</tr>
<?PHP
}
?>


<!-- <tr>
<td>
Rating Cheat Tally
</td>
</tr>


<?PHP
foreach($rate_types as $key => $name)
{
?>
<tr>
<td>
<b><?PHP echo $name; ?></b>
</td>
<td>
<?PHP echo $cheats[$key]; ?>
</td>
</tr>
<?PHP
}
?>
 -->
<tr>
<td>
<input type="hidden" name="Username" value="<?PHP echo $_REQUEST['Username']; ?>">
<input type="submit" name="sub" value="Reset Cheat Tally">
</td>
</tr>

</table>

</form>

<br />
Return current item: DDL CMS