///////////// johncms 4.4 /////////////////////////

1.   users/bot.php
2.   users/profile.php (    ).

//() 
if($rights==9)
{
	echo '<div><img src="../images/settings.png" width="16" height="16"/>&#160;<a href="bot.php?id=' . $user['id'] . '">'.($user['bot']==1 ? ' ' : ' ').'</a></div>';
}
/////////
3.   incfiles/classes/core.php   $this->authorize();// 
   $this->bot_live();  //  
4.       (   ).
    /*
    -----------------------------------------------------------------
     
    -----------------------------------------------------------------
    */	
	private function bot_live()
	{
		$places = array('mainpage','pradd', 'usersearch', 'album', 'news', 'library', 'gallery', 'load', 'forum', 'downloads', 'faq', 'forumwho', 'online', 'profile', 'pm', 'userstop', 'userlist');
		
		$sql = mysql_query("SELECT `id` FROM `users` WHERE `bot`='1'");
		if(mysql_num_rows($sql))
		{
			while($bot = mysql_fetch_assoc($sql))
			{
				if($_SESSION['bot'.$bot['id']]<time()-30)
				{
					$place = $places[array_rand($places)];
					mysql_query("update `users` set `lastdate`='".time()."', `place`='$place' where `id`='$bot[id]' limit 1");
					$_SESSION['bot'.$bot['id']] = time();
				}
			}
		}
	}
5.   ,            .      30,   ,     .
p.s.      incfiles/classes/core.php   .