Ejemplo n.º 1
0
 public function __construct(Server $server)
 {
     parent::__construct();
     $this->server = $server;
     $this->gameID = $server->game->GameID;
     $this->gameName = $server->game->Name;
     $this->serverID = $server->ServerID;
     $this->serverIP = $server->ip;
     $this->port = $server->port;
     // Set the current user
     $bfacp = \App::make('bfadmincp');
     $this->user = $bfacp->user;
     if (!is_null($this->user)) {
         $this->setAdmin();
     }
 }
Ejemplo n.º 2
0
 public function __construct(Server $server)
 {
     parent::__construct();
     $this->server = $server;
     $this->gameID = $server->game->GameID;
     $this->gameName = $server->game->Name;
     $this->serverID = $server->ServerID;
     $this->serverIP = $server->ip;
     $this->port = $server->port;
     if (!is_null($this->user)) {
         $this->setAdmin();
     }
 }
Ejemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     $path = app_path() . '/bfacp/ThirdParty/GeoIP2/GeoLite2-City.mmdb';
     $this->geo = new Reader($path);
 }