/*
////////////////////////////////////////////////////////////////////////////////
// -   Jane
// icq: 355-350-450
// e-mail: jane_job@list.ru
// : kiwimobile.ru
//   !

// MOD  by FanLoko(  Zidan_@777@)
// : https://vk.com/fanlokos
// : http://megafoot.ru/
// P.S. / / ,    . /  /
////////////////////////////////////////////////////////////////////////////////
*/


1.  SQL    sql.txt ( 4 )
2.   fish   
3.    (pages/mainmenu.php):

echo '<div class="menu"><img src="/fish/img/icon.gif" alt=""/><a href="fish/index.php"> </a> ('. fish().')</div>';

4.    (str/anketa.php)     ,    :

echo'<li><a href="../fish/index.php?act=my_fish&amp;id='. $user['id'] .'"></a></li>';
$fish = mysql_query("select * FROM `fish_present` WHERE  `id_user`= '" . $user['id'] . "' LIMIT 6");
$count = mysql_num_rows($fish);
if ($count) {

	while($f= mysql_fetch_array($fish)) {
	echo '
				<a href="../fish/index.php?act=presentfish&amp;id='.$f['id'].'"><img border="1" src="../fish/img/'.$f['num_fish'].'.png" alt="" width="35" height="35"/></a>
		';
		}
	}
echo'<li><a href="../fish/index.php?act=collect&amp;id='. $user['id'] .'"> </a></li>';

5.   str/online.php ( )   " ":

case 'fish':
                    $place = '<a href="../fish/index.php">  </a>';
                    break;

6.   incfiles/func.php:

function fish() {

    global $realtime;
    $onltime = $realtime - 300;
    $fish = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `lastdate` > $onltime AND `place` = 'fish'"), 0);
    return $fish;
} 

