Google+

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Who is banned
#1
Demo: http://tbo-s.com/bans.php
Salvati intr-un fisier.php codul de mai jos si il uploadati pe server.

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php

/*
* Banned Member List Page
* Author: Jesse Labrocca
* Website: http://www.mybbcentral.com
*/

define("IN_MYBB", 1);
require_once "./global.php";

add_breadcrumb("Ban List");

$lang->error = "Banned Member List";

$title = "Banned Member List";

if(!$mybb->user['uid']){
error_no_permission();
}

$message = '<table border="0" cellspacing="1" cellpadding="4" class="tborder">';
$message .= '<tr>
<td class="tcat"><span class="smalltext"><strong>Username</strong></span></td>
<td class="tcat"><span class="smalltext"><strong>Reason</strong></span></td>
<td class="tcat" align="center"><span class="smalltext"><strong>Banned By</strong></span></td>
<td class="tcat"><span class="smalltext"><strong>Ban Date</strong></span></td>
<td class="tcat"><span class="smalltext"><strong>Unban Date</strong></span></td>
</tr>';


$bannedlist = $db->query("SELECT * FROM `".TABLE_PREFIX."banned` ORDER BY `dateline` DESC");

  while($ban = $db->fetch_array($bannedlist)){

$user = get_user($ban['uid']);
$banby = get_user($ban['admin']);

if ($ban['lifted'] == "0"){
		$unban = "Never";
	}else{
		$unban = my_date($mybb->settings['dateformat'],$ban['lifted']);
	}

	$message .= '<tr>
<td class="trow1"><a href="member.php?action=profile&amp;uid='. $ban['uid']. '">' . $user[username] . '</a></td>
<td class="trow2">'. $ban['reason']. '</td>
<td class="trow1">'. $banby['username']. '</td>
<td class="trow2">'. my_date($mybb->settings['dateformat'],$ban['dateline']) .'</td>
<td class="trow1">'. $unban .'</td>
</tr>';
  }

$message .= "</table>";

error($message,$title);

?>

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)