Heres an addon for staff to see who has voted...
Add This to the bottom of Staff_Logs
function view_vote_logs()
{
global $ir,$c,$h,$userid;
print "<h3>Voting Logs</h3>
<table width=75% border=1> <tr> <th>ID</th> <th>Time</th><th>Player</th></tr>";
$q=mysql_query("SELECT * FROM votes ORDER BY userid ASC",$c);
while($r=mysql_fetch_array($q))
{
print"<tr><td>{$r['site']}</td> <td>".date('F j, Y, g:i:s a',$r['voteTIME'])."</td><td><a href='viewuser.php?u={$r['userid']}'>{$r['userid']}</a></td>
</tr>";
}
}
Add the case
case 'votelogs': view_vote_logs(); break;
In the File - Voted.php
if($r['rewardtype'] == 1)
{
$muneh=money_formatter($reward);
mysql_query("INSERT INTO votes values ($userid,$id,unix_timestamp())",$c);
event_add($userid,"Thank you for voting! You have receieved $muneh!", $c);
mysql_query("UPDATE users SET money=money+$reward WHERE userid=$userid",$c);
}
if($r['rewardtype'] == 2)
{
mysql_query("INSERT INTO votes values ($userid,$id,unix_timestamp())",$c);
^^ Lines 70-79
And for the link
<a href='staff_logs.php?action=votelogs'>Voting Logs</a><br />
Remove if not needed here.