Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('IN_MYBB', 1);
- require "global.php";
- global $db, $headerinclude, $header, $theme, $footer;
- $bnq = $db->simple_select("banned", "uid, admin, reason, dateline, lifted", "uid", array("order_by" => 'dateline', "order_dir" => 'DESC'));
- $nobans = "
- <tr>
- <td colspan='5' align='center' valign='middle' class='trow1'>There are no banned members</td>
- </tr>";
- if($db->num_rows($bnq) != 0)
- {
- $banlined = "";
- while($bnqv = $db->fetch_array($bnq))
- {
- $b_uid = $bnqv['uid'];
- $b_reason = $bnqv['reason'];
- $b_admin = $bnqv['admin'];
- $b_date = my_date($bnqv['dateline']);
- $getname = $db->query("SELECT username FROM ".TABLE_PREFIX."users WHERE uid='".$b_uid."'");
- $fetchn = $db->fetch_array($getname);
- $nameb = $fetchn['username'];
- $getnamea = $db->query("SELECT username FROM ".TABLE_PREFIX."users WHERE uid='".$b_admin."'");
- $fetchna = $db->fetch_array($getnamea);
- $nameba = $fetchna['username'];
- $banlined .= '
- <div><span style="color:#ababab; font-size: 20px;">User</span> - '.$nameb.' , <span style="color:#ababab; font-size: 20px;">Reason</span> - '.$b_reason.' , <span style="color:#ababab; font-size: 20px;">Banned by</span> - '.$nameba.' , <span style="color:#ababab; font-size: 20px;">Lift Date</span> - '.$b_date.' </div>
- ';
- }
- }
- else
- {
- $banlined = '<tr><td class="trow1" colspan="2" align="center">'. "None Nigguh" .'</td></tr>';
- }
- $template='<html>
- <head>
- <title>Ban Page</title>
- {$headerinclude}
- </head>
- <body>
- {$header}
- <table border="0" cellspacing="1" cellpadding="2" class="tborder">
- <tr>
- <td>
- {$banlined}
- </td>
- </tr>
- </table>
- {$footer}
- </body>
- </html>';
- $template=str_replace("\'", "'", addslashes($template));
- eval("\$page=\"".$template."\";");
- output_page($page);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement