src/Neuron/Core/Login.php
public function getUserId ()
	{
		$this->checkIfLoggedIn ();
	
		if (isset($_SESSION['is_admin']) && $_SESSION['is_admin']) {
			// Check for $_GET
			if (isset ($_GET['user'])) {
				$_SESSION['admin-user-overwrite'] = $_GET['user'] > 0 ? intval ($_GET['user']) : null;
			}
			
			if (isset ($_SESSION['admin-user-overwrite'])) {
				return $_SESSION['admin-user-overwrite'];
			}
		}
		
		return $this->uid;
	}
public function getUserId ()
	{
		$this->checkIfLoggedIn ();
	
		if (isset($_SESSION['is_admin']) && $_SESSION['is_admin']) {
			// Check for $_GET
			if (isset ($_GET['user'])) {
				$_SESSION['admin-user-overwrite'] = $_GET['user'] > 0 ? intval ($_GET['user']) : null;
			}
			
			if (isset ($_SESSION['admin-user-overwrite'])) {
				return $_SESSION['admin-user-overwrite'];
			}
		}
		
		return $this->uid;
	}
/*
Return the USER ID:
This can be abused to load other peoples game
if you are the administrator.