forked from tltneon/lgsl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
53 lines (48 loc) · 2.57 KB
/
index.php
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
//------------------------------------------------------------------------------------------------------------+
header("Content-Type:text/html; charset=utf-8");
global $output, $lgsl_server_id;
$s = isset($_GET['s']) ? $_GET['s'] : "";
$title = "";
if (is_numeric($s)) { $lgsl_server_id = $s; require "lgsl_files/lgsl_details.php"; $title .= $server['s']['name'] . " - "; }
elseif ($s == "add") { require "lgsl_files/lgsl_add.php"; $title .= $lgsl_config["text"]["aas"] . " - "; }
else { require "lgsl_files/lgsl_list.php"; }
$title .= $lgsl_config['text']['ttl'];
//------------------------------------------------------------------------------------------------------------+
?>
<!DOCTYPE html>
<html>
<head>
<title><?php echo $title; ?></title>
<link rel="icon" href="lgsl_files/other/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="lgsl_files/other/favicon.ico" type="image/x-icon" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<meta http-equiv='content-style-type' content='text/css' />
<link rel='stylesheet' href='lgsl_files/styles/<?php echo $lgsl_config['style']; ?>' type='text/css' />
<?php echo ($lgsl_config['autoreload'] ? "<META HTTP-EQUIV='REFRESH' CONTENT=" . ($lgsl_config['cache_time'] + 1) . " />" : ""); ?>
</head>
<body>
<div id="topmenu">
<?php
echo '<li><a href="../../">' . $lgsl_config['text']['mpg'] . '</a></li>'; // MAIN PAGE
if($lgsl_config['public_add']) echo '<li><a href="?s=add">'.$lgsl_config["text"]["aas"].'</a></li>'; // ADD SERVER
if(file_exists("install.php")) echo '<li><a href="./install.php">INSTALLATION PAGE</a></li>'; // INSTALLATION PAGE
if(isset($_GET['s'])) echo '<li><a href="./">'.$lgsl_config['text']['bak'].'</a></li>'; // BACK TO SERVERS LIST
?>
</div>
<a id="adminlink" href="admin.php"></a>
<div id="container">
<?php
//------------------------------------------------------------------------------------------------------------+
if(isset($lgsl_config['scripts']))
foreach($lgsl_config['scripts'] as $script)
$output .= "<script src='lgsl_files/scripts/".$script."'></script>";
echo $output;
unset($output);
//------------------------------------------------------------------------------------------------------------+
?>
</div>
</body>
</html>
<!-- Powered by LGSL -->