Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <body bgcolor = 'black'>
- <?php
- $host = "localhost";
- $user = "chickenx";
- $pass = "niglet4676";
- $dbname = "chickenx_samp";
- $dbtable = "samp_users";
- $con = mysql_connect($host, $user, $pass);
- mysql_select_db($dbname, $con);
- $result = mysql_query("SELECT * FROM samp_users WHERE `Banned` = '1' ORDER BY LastLogin DESC LIMIT 0, 100");
- $all = mysql_query("SELECT * FROM samp_users WHERE `Banned` = '1'");
- $users = mysql_num_rows($all);
- if ($users == 0)
- {
- echo "<center><font color='red'>There are currently <b>no</b> banned users.</font></center>";
- }
- else {
- echo "<center><font color='red'>There are a total of <b><u>".$users."</u></b> banned users, showing <b><u>100</u></b> of the most recent bans.</font></center>";
- while($row = mysql_fetch_array($result))
- {
- if ($row['Banned'] == 1)
- {
- echo "<center><font color='white'><b>".date("d/m/Y @ H:i:s A", $row['LastLogin'])." - <font color='red'><b><u>".$row['Name']."</u></b></font> was banned by <font color='#ff00ff'><b><u>".$row['Banee']."</u></b></font> for <font color='red'><b><u>".$row['BanReason']."</u></b></font><br></center></font>";
- }
- }
- }
- mysql_close($con);
- ?></body>
Add Comment
Please, Sign In to add comment