-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
60 lines (58 loc) · 2.14 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
<?php
session_start();
include_once('config.php');
?>
<!DOCTYPE html>
<html>
<head>
<title>cronRSS Torrent</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/themes/smoothness/jquery-ui.css" />
<link rel="stylesheet" href="//cdn.jsdelivr.net/jquery.ui.timepicker.addon/1.4.5/jquery-ui-timepicker-addon.min.css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/jquery-ui.min.js"></script>
<script src="//cdn.jsdelivr.net/jquery.ui.timepicker.addon/1.4.5/jquery-ui-timepicker-addon.min.js"></script>
<script src="script.js"></script>
</head>
<body>
<?php
if (isset($_SESSION['notification'])){
?>
<div id="notification" class="notification <?=$_SESSION['notification']['type']?>">
<h4><?=$_SESSION['notification']['header']?></h4>
<p>
<?=$_SESSION['notification']['content']?>
</p>
<a id="notification_close" href="">Close</a>
</div>
<?php
unset($_SESSION['notification']);
}
?>
<div id="container">
<div id="header">
<p class="title">cRSS-Torrent</p>
</div>
<div id="menu">
<ul>
<?php
foreach($menu as $menu_item){
?>
<li<?=($menu_item['URL']==$page ? ' class="selected"' : '')?>>
<a href="?page=<?=$menu_item['URL']?>" title="<?=$menu_item['TITLE']?>"><?=$menu_item['NAME']?></a>
</li>
<?php
}
?>
</ul>
</div>
<div id="main">
<?php
include_once('pages/'. $page. '.php');
?>
</div>
<div id="footer">
</div>
</div>
</body>
</html>