-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
53 lines (41 loc) · 790 Bytes
/
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
<?php
# error_reporting( 0 );
include('layout/header.php');
if(isset($_GET['id']))
{
$id = $_GET['id'];
}
if(isset($_GET['blog']))
{
$blog = $_GET['blog'];
}
if(isset($_GET['page']))
{
$page = $_GET['page'];
}
if(isset($_GET['view']))
{
$view = $_GET['view'];
}
if($blog == NULL && $page == NULL && $view == NULL)
{
write_pages($id);
}
else
{
if(isset($blog))
{
switch($blog)
{
case 'page':
pagination();
break;
case 'view':
write_post($view);
break;
}
}
}
include('layout/footer.php');
?>
</div>