escape($_GET['q']) : ''; $filter = isset($_GET['f'])? $_GET['f'] : 'all'; $page = max(1, (int)($_GET['page']?? 1)); $limit = 50; $offset = ($page-1)*$limit; // ---- SINGLE REPORT - PĂSTRĂM VIZUALIZAREA CLASICĂ ---- if($bid > 0){ $rep = $database->getNotice2($bid); if(!$rep) die("Report ID $bid doesn't exist!"); $isAdmin = true; $message = new Message(); $message->readingNotice = $rep; ?>
← Back to reports

Report

getReportType($rep['ntype']).".tpl");?>
"ntype IN (2,9)", // attack + artefact attack 'defences' => "ntype IN (3)", 'scouts' => "ntype IN (4,14)", 'trades' => "ntype IN (5)" ]; if(isset($filterMap[$filter])) $where.= " AND ".$filterMap[$filter]; $total = $database->query("SELECT COUNT(*) c FROM ".TB_PREFIX."ndata WHERE $where")->fetch_assoc()['c']; $reps = $database->query("SELECT * FROM ".TB_PREFIX."ndata WHERE $where ORDER BY time DESC LIMIT $offset,$limit")->fetch_all(MYSQLI_ASSOC); $typeNames = [1=>'reinforcement',2=>'attack',3=>'defence',4=>'scout',5=>'trade',6=>'wonder',7=>'settlement',8=>'oasis',9=>'artefact',10=>'adventure',14=>'spy']; ?>

📜 Players Reports ()

'All','attacks'=>'Attacks','defences'=>'Defences','scouts'=>'Scouts','trades'=>'Trades'] as $k=>$v){?>
getUserField($r['uid'],'username',0); $time = date('d.m H:i',$r['time']); $preview = strip_tags($r['topic']?? $r['n1'].' '.$r['n2']); $preview = mb_substr($preview,0,80); ?>
#
...
view →
$limit){ $pages = ceil($total/$limit);?>