Cały kod od strony z banami:
case 'bans':
$this->registry->DB('acc')->execute();$this->registry->DB('acc')->build( array(
'select' => '*',
'from' => 'bans',
'order' => 'id desc',
) );
$this->registry->DB('acc')->execute();
while($ban = $this->registry->DB('acc')->fetch()) {
$bid = $ban['id'];
$bpid = $ban['bannedid'];
$bnick = $ban['banned'];
$badmid = $ban['adminid'];
if($badmid != 0){
$badmin = $ban['admin'];
}
else{
$badmin = "System";
}
$breason = $ban['reason'];
$admid = $this->memberData['samp_id'];
//$adm_acc = $this->registry->DB('acc')->buildAndFetch(array('select'=>'*','from'=>'players','where'=>'id=\''.$admid.'\''));
$i++;
$blist .='<tr align=\'center\'>';
$blist .='<td class=\'row1\'><a href=index.php?app=panel&module=admin&page=baninfo&banid='.$bid.'><font color="#FFFFFF">'.$i.'</font></a></td>';
$blist .='<td class=\'row1\'><a href=index.php?app=panel§ion=players&page=player&id='.$bpid.'>'.$bnick.'</a></td> ';
$blist .='<td class=\'row1\'>'.$breason.'</span></td>';
$blist .='<td class=\'row1\'><a href=index.php?app=panel§ion=players&page=player&id='.$badmid.'>(ID: '.$badmid.')'.$badmin.'</a></span></td>';
if($x > 2){
$btdub = 1;
$blist .='<td class=\'row1\'>Odbanuj</td>';
}
$blist .='</tr>';
}
$this->registry->output->setTitle( $this->lang->words['player_panel_title'] );
$this->registry->output->addNavigation( $this->lang->words['player_panel_title'], "app=panel", "panel-link", "panel_link", "public" );
$this->registry->output->addNavigation( "Strefa Adminów", "app=panel&module=admin", "admin-link", "admin_link", "public" );
$this->registry->output->addNavigation( "Lista Banów", NULL );
$this->registry->output->addContent( $this->registry->output->getTemplate( 'panel' )->mainBansArea( $blist, $btdub ) );
$this->registry->output->sendOutput();
break;