-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·62 lines (62 loc) · 1.45 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
<?php
error_reporting(E_ALL);
session_start();
function sw($name)
{
switch($name)
{
case 'upload':
return 'html/upload.html';
break;
case 'register':
return 'html/register.html';
break;
case 'authp':
return 'inc/auth.php';
break;
case 'sclose':
return 'inc/session_close.php';
break;
case 'registerp':
return 'inc/register.php';
break;
case 'uploadp':
return 'inc/upload.php';
break;
case 'docker':
return 'html/docker.html';
break;
case 'dockerp':
return 'inc/docker.php';
break;
default:
return 'html/auth.html';
}
}
?>
<html>
<head>
<title>CTreffOS RPS Competition</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="content-encoding" content="gzip" />
<link rel="stylesheet" type="text/css" href="res/global.css" />
</head>
<body>
<div id="head">
<center><img src="res/img/normal.png" alt="Chaostreff Osnabrück"/>
<h1>RPS Coding Competition</h1></center>
</div>
<div id="content">
<?php
if(!isset($_GET['site']))
{
$site= 'none';
}
else $site = $_GET['site'];
require_once(sw($site));?>
</div>
<div id="footer">
<?php if(isset($_SESSION['voucher'])) if($_SESSION['voucher']==true)echo('<a href="index.php?site=sclose">End session</a>'); ?>
</div>
</body>
</html>