forked from yugene/Gearman-Monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservers.php
More file actions
30 lines (23 loc) · 734 Bytes
/
servers.php
File metadata and controls
30 lines (23 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
require_once('_init.php');
$options = array();
$pageUri = "{$_SERVER['PHP_SELF']}?";
if (isset($_REQUEST['filterServers']) && is_array($_REQUEST['filterServers']))
{
$options['filterServers'] = $_REQUEST['filterServers'];
foreach ($options['filterServers'] as $filterServer)
{
$pageUri .= 'filterServers[]=' . intval($filterServer) . '&';
}
}
if (isset($_REQUEST['sort']) && strlen(trim($_REQUEST['sort'])) > 0)
{
$options['sort'] = $_REQUEST['sort'];
}
$serverList = new GA_ServerList($options);
$serverList->addServers($cfgServers);
$view->versionData = $serverList->getVersionData();
$view->errors = $serverList->getErrors();
$view->pageUri = $pageUri;
$view->display('servers.tpl.php');
?>