1) В index.php:
elseif(isset($_GET['throwSnowball']) && intval($_GET['throwSnowball'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_user` WHERE `id` = '".intval($_GET['throwSnowball'])."'"),0)!=0)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_user` WHERE `id` = '".intval($_GET['throwSnowball'])."'"));
$au=$ank;
include_once 'throwSnowball/throwSnowball.php';
}
2) В functions.php
Вместо:
class='nick".($ank['status']==1?"Supporter":null)."".($ank['status']==2?"Moderator":null)."".($ank['status']==3?"Admin":null)."'>$anku[nick]</span>".($anku['date_last']<=$tx?"":"".($anku['date_last']<=$txx?"<span style='color:#228B22'>*</span>":null)."")."";
пишем:
class='nick".($ank['status']==1?"Supporter":null)."".($ank['status']==2?"Moderator":null)."".($ank['status']==3?"Admin":null)."".($ank['sneg']>time()?"Sneg":null)."'>$anku[nick]</span>".($anku['date_last']<=$tx?"":"".($anku['date_last']<=$txx?"<span style='color:#228B22'>*</span>":null)."")."";
3) В файл стиля (main.css или прочее)
Пишем:
.nickSneg {color:#398DFA;}
4) В user.php
if($ank['status']==0)echo "<img width='16' height='16' src='/throwSnowball/throwSnowball.png' alt='o'> <a href='?throwSnowball=$ank[id]'>Бросить снежок</a>"
if($ank['sneg']>$time)echo "<img width='16' height='16' src='/throwSnowball/throwSnowball.png' alt='o'><span class='minor'> Cнежок <span>".time_left($ank['sneg']-$time)."</span></span></li>";

5) Запрос в базу:
ALTER TABLE `kolhoz_user` ADD `sneg` INT(11) NULL;
