forked from eti-lan/LANPage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
89 lines (74 loc) · 2.86 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
/**
* LANPage - A simple website template for your LAN Party that integrates with LAN Launcher
*
* @package lanpage
* @author eti and various anonymous
*
* things required:
* Webserver and PHP7 or newer with SQLite extension enabled
*/
include("inc.head.php");
?>
<body>
<div id="wrapper">
<?php include("inc.menu.php"); ?>
<div id="page-content-wrapper">
<!-- Start -->
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="page-header">
<h1 id="<?php echo $nav['home']; ?>"><?php echo($start['welcome']); ?>
<?php if (isset($lan_title)) { echo "<small>" . $start['welcome2'] . " " . $lan_title . "</small>"; } ?>
</h1>
</div>
<div class="jumbotron">
<h1>
<?php echo $_SERVER['REMOTE_ADDR']; ?>
</h1>
<p><?php echo($start['iptext']); ?>
<?php if (isset($lan_title)) { echo $lan_title; } ?> <?php echo($start['iptext2']); ?>
</p>
</div>
</div>
</div>
</div>
<!-- Chat -->
<?php if ($enable_chat == true) { include("chat/chat.php"); } ?>
<!-- Stats -->
<?php if ($enable_stats == true) { include("inc.stats.php"); } ?>
<!-- Downloads -->
<?php if ($enable_downloads == true) { include("inc.dl.php"); } ?>
<!-- Servers -->
<?php if ($enable_serverlist == true) {
echo "<div class=\"container-fluid\">\n";
echo " <div class=\"row\">\n";
echo " <div class=\"col-12 col-md-10\">\n";
echo " <div class=\"page-header\">\n";
echo " <h1 id=\"" . $nav['serverlist'] . "\"> " . $nav['serverlist'] . " </h1>\n";
echo " </div>\n";
echo " <div id=\"serverlist\">";
require("inc.servers.php");
echo " </div>\n";
echo " </div>\n";
echo " </div>\n";
echo "</div>\n";
};
?>
<!-- Competition -->
<?php if ($enable_competition == true) { include("inc.competition.php"); }; ?>
<!-- FAQ -->
<?php if ($enable_faq == true) { include("inc.faq.php"); } ?>
</div>
<footer>
<div class="col-lg-10">
<div class="row">
<hr>
<p class="pull-right">© 2021 eti Team</p>
</div>
</div>
</footer>
</div>
</body>
</html>