-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathfrontpage.sample.php
More file actions
executable file
·36 lines (35 loc) · 1.02 KB
/
frontpage.sample.php
File metadata and controls
executable file
·36 lines (35 loc) · 1.02 KB
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
31
32
33
34
35
36
<?php
require_once("lib/services.php");
require_once("lib/types/RegionInfo.php");
$gridmap_htmlframing = false;
$gridmap_header = false;
$gridmap_body = false;
$gridmap_fullscreen_control = true;
$gridmap_enable_minimap = true;
require("gridmap.php");
$serverParams = getService("ServerParam");
$gridService = getService("Grid");
$gridname = $serverParams->getParam("gridname", "phpGridServer");
$numregions = $gridService->getNumberOfRegionsFlags(null, RegionFlags::RegionOnline);
?>
<html>
<head>
<title><?php echo $gridname ?></title>
<link rel="stylesheet" type="text/css" href="/css/main.css"/>
<?php
$gridmap_header = true;
$gridmap_body = false;
require("gridmap.php");
?>
</head>
<body>
<center><h1><?php echo $gridname ?></h1></center><br/>
<center><b>Regions online: <?php echo $numregions ?></b></center><br/>
<center><div id="map" class="map" style="width: 800px; height: 600px;"></div></center>
<?php
$gridmap_header = false;
$gridmap_body = true;
require("gridmap.php");
?>
</body>
</html>