-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
155 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
<?php | ||
class Server extends AppModel { | ||
|
||
public function findSelectableServers() { | ||
$search_servers = $this->find('all', array('conditions' => array('type' => 0))); | ||
if (empty($search_servers)) | ||
return array(); | ||
|
||
$servers = array(); | ||
foreach ($search_servers as $server) | ||
$servers[$server['Server']['id']] = $server['Server']['name']; | ||
return $servers; | ||
} | ||
|
||
class Server extends AppModel | ||
{ | ||
|
||
public function findSelectableServers($rcon = true) | ||
{ | ||
$types = [0]; | ||
if ($rcon) | ||
$types = [0, 2]; | ||
$search_servers = $this->find('all', array('conditions' => array('type' => $types))); | ||
if (empty($search_servers)) | ||
return array(); | ||
|
||
$servers = array(); | ||
foreach ($search_servers as $server) | ||
$servers[$server['Server']['id']] = $server['Server']['name']; | ||
return $servers; | ||
} | ||
|
||
} |
Submodule Shop
updated
from 879673 to 482851
Submodule Vote
updated
from bc5b6e to d868dc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters