forked from 125125/htmltemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbody.php
39 lines (36 loc) · 764 Bytes
/
body.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
<?php
$page = $_GET['p'];
if ($page == "")
{
@include('pages/index.php');
}
switch($page)
{
case "index":
@include('pages/index.php');
break;
case "register":
@include('pages/register.php');
break;
case "login":
@include('pages/login.php');
break;
case "logout":
@include('models/logout.php');
break;
case "destroy":
@include('models/destroy_sessions.php');
break;
case "register_success":
@include('pages/register_success.php');
break;
case "download":
@include('pages/download.php');
break;
case "success":
@include('pages/upload_success.php');
break;
default:
@include('pages/error.php');
}
?>