<?php
  
IF (ISSET($_SESSION['search'])){
  
  $search = STRIPSLASHES(HTMLSPECIALCHARS($_SESSION['search']));
  
}ELSE{
  
  $search = NULL;
  
}
  
$column = DB::GET_COLUMN("SELECT COUNT(*) FROM `FORUM_THEM` WHERE (`NAME` LIKE '%".$search."%' OR `MESSAGE` LIKE '%".$search."%') AND `BAN` = '0'");

IF ($column >= 1){
  
  ECHO "<a href='/modules/?path=search&type=forum'><div class='list-menu hover'>";
  ECHO "".ICONS('comments', 15, 'fa-fw')." ".LG('Форум')." <span class='count'>".$column."</span>";
  ECHO "</div></a>";
  
}
  
?>