-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhnf_.php
114 lines (94 loc) · 3.15 KB
/
hnf_.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php
function fheader($title='', $css='', $js='')
{
global $globals, $user;
$themedir = "themes";
$user["theme_type"] = ( isset($_SESSION["user"]["theme_type"] ) ? $_SESSION["user"]["theme_type"] : "default" );
$css = (!$css) ? $globals["boardurl"]."/$themedir/".$user["theme_type"] . "/css/style.css" : $css;
$js = (!$js) ? $globals["boardurl"]."/$themedir/". $user["theme_type"] . "/js/javascript.js" : $js;
echo '
<html>
<head>
<title>
'.(!empty($title) ? $title : '').
'
</title>
<link rel="stylesheet" type="text/css" href="'.$css.'">
<script language="javascript" type="text/javascript" src="'.$js.'">
</script>
</head>
<body>
<table width="100%" border="1">
<tr>
<td>
<img src="images/site/s8.jpeg" >
</td>
</tr>
</table>
';
}
function fnav()
{
global $user;
// if $user['uid'] not set
// $uid = ( isset($user['uid'] ) ? $user['uid'] : '' );
/*
echo '
<table border="1" cellspacing="0" cellpadding="5" id="nav">
<tr>
<td><a href="index.php?">Home</a></td> ' .
/* <td>
<ul>
<a href="index.php?action=usercp">User Panel</a>
<li><a href="index.php?action=modifyprofile"></a></li>
</ul>
</td>
*/ /* ' <td><a href="index.php?action=modifyprofile&uid='.$user['uid'].'">Modify Profile</a></td>
<td><a href="index.php?action=viewProfile&uid='.$user['uid'].'">View Profile</a></td> ' .
( ( $_SESSION["user"]["uid"] == 1 ) ? '<td><a href="index.php?action=admin">Admin Board</a></td>' : '' ) .
' <td><a href="index.php?action=bannedList">Banned </a> </td> ' .
( ( !isset( $_SESSION["user"]["uid"] ) ) ? '<td><a href="index.php?action=register">Register</a></td><td><a href="index.php?action=login">Login</a></td>' : '<td><a href="index.php?action=logout">Logout</a></td>' ) .
' </tr>
</table>
';
*/
echo '
<table border="1" cellspacing="0" cellpadding="5" id="nav">
<tr>
<td><a href="index.php?">Home</a></td> ' .
/* <td>
<ul>
<a href="index.php?action=usercp">User Panel</a>
<li><a href="index.php?action=modifyprofile"></a></li>
</ul>
</td>
*/ ' <td><a href="index.php?action=mainBoard">Forums</a></td>
<td><a href="index.php?action=modifyprofile">Modify Profile</a></td>
<td><a href="index.php?action=listUsers">List Users</a></td>
<td><a href="index.php?action=viewProfile">View Profile</a></td> ' .
( ( isset( $_SESSION["user"]["uid"] ) && $_SESSION["user"]["uid"] == 1 ) ? '<td><a href="index.php?action=admin">Admin Board</a></td>' : '' ) .
' <td><a href="index.php?action=bannedList">Banned </a> </td> ' .
( ( !isset( $_SESSION["user"]["uid"] ) ) ? '<td><a href="index.php?action=register">Register</a></td><td><a href="index.php?action=login">Login</a></td>' : '<td><a href="index.php?action=logout">Logout</a></td>' ) .
' </tr>
</table>
';
}
function ffooter($time_elapsed)
{
echo '
<table width="100%" style="background-color:lightgrey; border: 1px solid blue">
<tr>
<td>
The <i>Muntoo</i> Forum.
</td>
<td align="right">
<font size="1"><i>Page loaded in ' . $time_elapsed . ' seconds </i>
</font>
</td>
</tr>
</table>
</body>
</html>
';
}
?>