Advertisement
Guest User

FAC logs, replace "fac_scores" if your table has other name.

a guest
May 17th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. <title>FAC Logs</title>
  2. <body style="background-color:#000000">
  3. <center>
  4. <B><FONT COLOR="FFFFFF">All players that have used FAC v2.1 today.</FONT></B><center><br />
  5. </center>
  6. </body>
  7. <?php
  8. $host = 'localhost';
  9. $dbuser = 'carlos2_Michal';
  10. $dbpass = '~#BI&$i(T*k3';
  11. $dbname = 'carlos2_FAC';
  12. $db = @mysql_connect($host,$dbuser,$dbpass) or die("result=error");
  13. $db = mysql_select_db($dbname);
  14. mysql_query("DELETE FROM fac_scores WHERE Date < CURR_DATE()");
  15. $query = mysql_query("SELECT * FROM fac_scores group by USERname ORDER by USERname ASC");
  16. while ($row = mysql_fetch_array($query, MYSQL_BOTH)) {
  17. $user = $row['USERname'];
  18. $map = $row['Map'];
  19. $kills = $row['Kills'];
  20. $deaths = $row['Deaths'];
  21. $date = $row['Date'];
  22. echo "<tr>";
  23. echo "<center><td><a TARGET='_BLANK' href='record.php?user=$user'>" . $row['USERname'] . "</a></td>";
  24. echo "</tr></center>";
  25. if($user === prestige) {
  26. echo "<FONT COLOR='FF0000'>Chorea have messed with scores before so he's detected as hacker. Keep an eye on him if you still want to play with him.</FONT>";
  27. } else if($user === info) {
  28. echo "<FONT COLOR='FF0000'>Info/Jordan have messed with scores before so he's detected as hacker. Keep an eye on him if you still want to play with him.</FONT>";
  29. } else if($user === elvis) {
  30. echo "<FONT COLOR='FF0000'>Info/Jordan have messed with scores before so he's detected as hacker. Keep an eye on him if you still want to play with him.</FONT>";
  31. }
  32. }
  33. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement