///////////////////////////////////////////////////////////////
///                            ////
///    | salafiti.ru | ICQ: 2855587        ////
///////////////////////////////////////////////////////////////
=> "ICQ - " for JohnCMS 3.x.x
=>:
     .
  .
       sql.sql.
      sql.sql  readme.txt.
       mainmenu.php.
/////////////////////////////////////////////
//        ICQ -            ///
/////////////////////////////////////////////
echo '<div class="phdr">ICQ - </div>';
$kol = '3';//     
$total = mysql_result(mysql_query("SELECT COUNT(*) FROM `piramidka`;"), 0);
if ($total) {
$req = mysql_query("SELECT * FROM `piramidka` ORDER BY `id`  DESC LIMIT $kol");//
while ($res = mysql_fetch_array($req)){
echo ceil(ceil($i / 2) - ($i / 2)) == 0 ? '<div class="b">' : '<div class="c">';
echo '<img src="http://web.icq.com/whitepages/online?icq=' . $res['uin'] . '&amp;img=5" width="18" height="18" alt="icq" align="middle"/> <b>' . $res['uin'] . '</b>: ';
	  $text = htmlentities($res['kom'], ENT_QUOTES, 'UTF-8');
	  $text = eregi_replace("((https?|ftp)://)([[:alnum:]_=/-]+(\\.[[:alnum:]_=/-]+)*(/[[:alnum:]+&._=/~%]*(\\?[[:alnum:]?+&_=/;%]*)?)?)", "***",  $text);
	  $text = tags($text);
          $text = str_replace("\r\n", "<br />", $text);
	  $text = smileys($text);	  
	  $text = antilink($text);
      echo " " .$text. "";
      echo '</div>';
      ++$i;       
	  }
} else {
echo '<div class="menu"><p> .</p></div>';
}
echo '<div class="gmenu"><a href="piramidka/?act=add"></a> | <a href="piramidka/"></a> (' . $total . ')</div>';

 !