src/Neuron/GameServer/Server.php
public function isOnline ()
	{
		$this->loadData ();
		$timecheck = isset ($this->data['lastDaily']) && intval ($this->data['lastDaily']) > (time () - 60*60*24*7);
		
		if (!$this->isInstalled ())
		{
			$this->error = 'not_installed';
			return false;
		}		
		elseif (!$timecheck)
		{
			$this->error = 'daily_cron_failed';
			return false;
		}
		else
		{
			return true;
		}
	}
public function isOnline ()
	{
		$this->loadData ();
		$timecheck = isset ($this->data['lastDaily']) && intval ($this->data['lastDaily']) > (time () - 60*60*24*7);
		
		if (!$this->isInstalled ())
		{
			$this->error = 'not_installed';
			return false;
		}		
		elseif (!$timecheck)
		{
			$this->error = 'daily_cron_failed';
			return false;
		}
		else
		{
			return true;
		}
	}
/*
Return true if the server is online