-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·92 lines (64 loc) · 1.61 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
session_start();
include('plugins/oi_mobilesupport.php');
$MOBILE = new oi_mobilesupport;
include_once('plugins/api_connector.php');
$API = new api_connector;
include_once('pages/process.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Phylobyte</title>
<?php $MOBILE->setScale(); ?>
<?php $MOBILE->addMobileStyle(null, 'style'); ?>
<link rel="icon"
type="image/icon"
href="gfx/favicon.ico" />
</head>
<body>
<div class="setlimits">
<div class="header">
<div class="navigation">
<dl>
<dt><a class="dtg" href="?at=home">Home</a></dt>
<?php
if($userInfo->name != null){$displayName = $userInfo->name;}else{$displayName = $userInfo->username;}
if($_SESSION['usertoken'] == null){
echo('<dt><a class="dtb" href="?at=login">Log In</a></dt>');
}else{
echo('
<dt><a class="dtn" href="?at=account">My Account</a></dt>
<dt><a class="dtb" href="?at=login&do=logout">Log Out, '.$displayName.'</a></dt>');
}
?>
</dl>
</div>
<div class="ff"> </div>
</div>
<div class="container">
<?php
$include = stripslashes($_GET['at']);
switch($include){
case 'about':
include('pages/about.php');
break;
case 'login':
include('pages/login.php');
break;
case 'account':
include('pages/account.php');
break;
default:
include('pages/home.php');
break;
}
?>
</div>
<div class="footer">
©2013 Phylobyte Site Template | <?php $MOBILE->mobileToggle('Go Mobile', 'Desktop Mode'); ?> | <a href="admin">Admin</a>
</div>
</div>
</body>
</html>