 index.php : 
if(isset($_GET['news'])){include_once 'news/news.php';}
***
   index.php        : 
elseif($admin=='news')$admin_name='';
***
     , 'pets','plants','fish','trees'    :
,'news'
***
: admin.news.php    /inc/
***
: news.php    (     /inc/        )
***
  foot.php       : 
$news=mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_news` WHERE `id` >= '1'"),0);
echo '<a href="?news"><div class="block"><img src="news/new.gif" alt="o">  <font color="orange">(<b>'.$news.'</b>)</font></div></a>';

==========
,  : /inc/admin.list.php   :
echo "<div class='block'><img src='news/new.gif'> <a href='?admin=news'></a></div>";


============
 uhead.php : 



$x = mysql_querll("SELECT * FROM `kolhoz_news`".($ku['status']==0?" WHERE `dostup` = '1'":null)." ORDER BY `id` DESC LIMIT 1");
while($row=mysql_fetch_assoc($x)){
if($ku['read_news']==0){
if(isset($_GET['read_news'])){
mysql_querll("UPDATE `kolhoz_user` SET `read_news` = '1' WHERE `id` = '$ku[id]'");
header("Location:?news");}
echo '<div class="feedback"><b> :</b><br/>'.($row['name']!=NULL?'<font color="violet"><b>'.$row['name'].'</b></font><br/>':null).'';
if ($row['opis']!=NULL){$string = htmlspecialchars(mb_substr($row['opis'],0,50,'utf-8')); echo'<span class="small minor">'.$string.'..</span><br/>';}
echo ": ";
echo '<b>'.on_k($row['id_user']).' <a href="?user='.($row['id_user']).'">'.nc($row['id_user']).'</a></b><br/>';
echo "<img width='16' height='16' src='images/icons/down.png' alt='o'> <a href='?read_news'> </a></div></div>";}}






























