forked from mammuth/TUM.sexy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
87 lines (74 loc) · 3.22 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
<?php
if (!isset($_GET['cats'])) {
header('Location: /index.php?cats=0');
die();
}
include('./redirect/routes.php');
$Router = new Route();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>tum.sexy | Fancy stuff related to TUM</title>
<meta name="description" content="Helpfull links, subdomains, redirects and tools for students of the Technical University Munich (TUM)">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href='http://fonts.googleapis.com/css?family=Raleway:400,300,600' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/skeleton.css">
<link rel="stylesheet" href="css/custom.css">
<link rel="icon" type="image/png" href="favicon.png" />
<!-- Scripts at bottom -->
</head>
<body>
<!-- Primary Page Layout
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<div class="container">
<div class="row" style="margin-top: 10%">
<h1 id="sexy-name">TUM<strong>.sexy</strong></h1>
</div>
<div class="row" style="margin-top:10%">
<div class="one-half column">
<h3>Redirects</h3>
<p>No need for remembering long and ugly urls or bookmarks<br />
- Just use these redirects!</p>
<?php echo $Router->getHtmlList(); ?>
</div>
<div class="one-half column">
<h3>About</h3>
<ul>
<li>If you want to <strong>update or add redirects</strong>, take a look at the instructions on the <a href="https://github.com/mammuth/TUM.sexy/tree/master/redirect" target="_blank">Github Repo!</a></li>
<li>You have an idea for how to improve this site? Feel free to <strong>contribute</strong> on our <a href="https://github.com/mammuth/TUM.sexy" target="_blank">GitHub Page</a>!
<li>Contact: <a href="mailto:heilig@tum.sexy">heilig@tum.sexy</a></li>
</ul>
<h3>Projects / Links</h3>
<ul>
<li><a href="/calendar/">Calendar Proxy</a>
<ul>
<li>Nice and easy proxy to remove some clutter from the TUM online iCal export. E.g.: replaces 'Tutorübung' with 'TÜ' and Google Now readable locations</li>
</ul>
</li>
<li>FMI Bistro "Speiseplan" - <a href="http://hunger.tum.sexy">hunger.tum.sexy</a></li>
<li>MI Raumbelegungen - <a href="http://rooms.tum.sexy">rooms.tum.sexy</a></li>
<li><a href="https://sexipretschi.eu/Game/">Sexi Pretschi Game</a></li>
</ul>
</div>
</div>
</div>
<div id="footer" style="margin-left:10px; font-size: smaller;"><a href="?cats=1">Gimme' cats!</a></div>
<div id="footer"><p>Provided by Lukas, Kordian & Max</p></div>
<!-- End Document
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
</body>
<?php
if(isset($_GET['cats']) && $_GET['cats'] !== '0') {
?>
<script>
window.onload = function () {
document.body.background = 'http://thecatapi.com/api/images/get?format=src&type=gif';
};
</script>
<?php
}
?>
</html>