src/Neuron/GameServer/Windows/Window.php
public final function getWindowContent ()
	{
		$out = $this->getContent ();
		
		if (!$out || $this->getType () == 'invisible')
		{
			return false;
		}
		
		// Tracker (yes, we need opensocial as well)
		if (isset ($_SESSION['just_logged_in']) && $_SESSION['just_logged_in'])
		{
			$me = Neuron_GameServer::getPlayer ();
			if ($me)
			{
				$out .= '<iframe src="'.htmlentities ($me->getTrackerUrl ('login')).'" width="1" '.
					'height="1" border="0" class="hidden-iframe"></iframe>';
			}
			
			$_SESSION['just_logged_in'] = false;
		}
		
		return $out;
	}
public final function getWindowContent ()
	{
		$out = $this->getContent ();
		
		if (!$out || $this->getType () == 'invisible')
		{
			return false;
		}
		
		// Tracker (yes, we need opensocial as well)
		if (isset ($_SESSION['just_logged_in']) && $_SESSION['just_logged_in'])
		{
			$me = Neuron_GameServer::getPlayer ();
			if ($me)
			{
				$out .= '<iframe src="'.htmlentities ($me->getTrackerUrl ('login')).'" width="1" '.
					'height="1" border="0" class="hidden-iframe"></iframe>';
			}
			
			$_SESSION['just_logged_in'] = false;
		}
		
		return $out;
	}
/*
This function makes sure certain trackers are available in the window
content.