-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
44 lines (43 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
<html>
<head>
<title>Sampforum Respect Boost</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="https://bootswatch.com/darkly/bootstrap.min.css">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
</head>
<body>
<div class="container">
<span> </span>
<section id="main">
<div class="well well-sm main">
<ul class="nav nav-tabs">
<li <?php echo ( !isset($_GET['p']) || $_GET['p'] == 'home' ? 'class="active"' : '' ); ?>><a href="?p=home">Tisztelet</a></li>
<li <?php echo ( isset($_GET['p']) && $_GET['p'] == 'minus' ? 'class="active"' : '' ); ?>><a href="?p=minus">Mínusz</a></li>
</ul>
<?php
if(isset($_GET['p'])) {
if(ctype_alnum($_GET['p']) && !empty($_GET['p'])) {
$p = $_GET['p'];
if(file_exists("pages/".$p.".php")) {
include("pages/".$p.".php");
} else {
include("pages/home.php");
}
} else {
include("pages/home.php");
}
} else {
include("pages/home.php");
}
?>
</div>
</section>
<section id="footer">
<center><small>sampforum.hu respect booster - krook (c) 2015</small></center>
</section>
</div>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
</body>
</html>