-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
50 lines (43 loc) · 1.21 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
<?php include_once $_SERVER['DOCUMENT_ROOT'] . "/engine.php"; ?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Painan's Updater</title>
<link type="text/css" rel="stylesheet" href="./css/compiled/styles.css" />
</head>
<body>
<div class="wrapper">
<?php if (!isset($_GET['action']) || $_GET['action'] == 1) {
ECHO <<<EOL
<div class="page-title">
<h1>Painan's Updater</h1>
</div>
<div class="buttons">
<div class="button button-website" data-site="-1">ALL SITES</div>
EOL;
foreach (Website::getAllWebsites() as $site) {
echo "<div class='button button-website' data-site='{$site->getId()}'>{$site->getName()}</div>";
}
} else {
ECHO <<<EOL
<div class="page-title">
<h1>Painan's Starter</h1>
</div>
<div class="buttons">
EOL;
foreach (Startables::getStartables() as $starter) {
echo "<div class='button button-startable' data-startable='{$starter->getId()}'>{$starter->getName()}</div>";
}
}
?>
</div>
<div class="spacer"></div>
<pre class="console">
Hi. Welcome to Painan.
</pre>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="./js/scripts.js"></script>
</body>
</html>