index.php
1.58 KB
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
<?php
session_start();
require_once("creds.php");
?>
<!DOCTYPE>
<html>
<head>
<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="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Site Web de la Coupe de Robotique des Ecoles Primaires">
<meta name="author" content="Club Informatique de PolytechLille">
<title>Coupe de Robotique des Ecoles Primaires</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/crep.css">
<link rel="shortcut icon" href="favicon.ico"/>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/whirlpool.min.js"></script>
<script type="text/javascript" src="js/crep.js"></script>
<script type="text/javascript" src="js/base64.js"></script>
</head>
<body>
<?php require_once("topnavbar.php");?>
<?php require_once("menu.php");?>
<div class="col-md-12 center-block">
<div class="col-md-12" id="mainContainer">
<?php
$page = end(explode('/', $_SERVER["REQUEST_URI"]));
switch ($page) {
case 'home':
case 'description':
case 'sponsors':
case 'schools':
case 'contact':
$toLoad = $page;
break;
case '':
$toLoad = 'home';
break;
default:
$toLoad = '404';
break;
}
require_once("$toLoad.php");
?>
</div>
</div>
<?php require_once("footer.php");?>
</body>
</html>