-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathheader.php
72 lines (68 loc) · 2.79 KB
/
header.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>BWVS - Web漏洞渗透测试系统</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="<?php echo $basedir?>/css/bootstrap.min.css">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-23019901-1']);
_gaq.push(['_setDomainName', "bootswatch.com"]);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<style>
body{background-image:url(favicon/bg.png);
body {background-attachment:fixed;}
</style>
</head>
<body>
<script src="<?php echo $basedir?>/js/bsa.js"></script>
<br>
<div class="container">
<div class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#"><img src="/favicon/logo.png" alt=""></a>
</div>
<div class="navbar-collapse collapse" id="navbar-main">
<ul class="nav navbar-nav">
<li>
<a href="<?php echo $basedir?>/index.php">主页</a>
</li>
<li>
<a href="<?php echo $basedir?>/Vulnerability.php">漏洞信息</a>
</li>
<li>
<a href="<?php echo $basedir?>/message.php">留言板</a>
</li>
<li>
<a href="<?php echo $basedir?>/Info.php">平台介绍<span></a>
</li>
</ul>
<form class="navbar-form navbar-left" action="<?php echo $basedir?>/search.php" method="get">
<input type="text" name="search" class="form-control col-lg-8" placeholder="搜索留言">
</form>
<ul class="nav navbar-nav navbar-right">
<?php if (isset($_SESSION['user_name'])) {?>
<li><a href="<?php echo $basedir?>/user/user.php"><?php echo $_SESSION['user_name'];?></a></li>
<li><a href="<?php echo $basedir?>/user/logout.php">Logout</a></li>
<?php } else if (isset($_SESSION['admin'])) {?>
<li><a href="<?php echo $basedir?>/admin/manage.php"><?php echo $_SESSION['admin'];?></a></li>
<li><a href="<?php echo $basedir?>/user/logout.php">Logout</a></li>
<?php } else {?>
<li><a href="<?php echo $basedir?>/user/login.php">登录</a></li>
<li><a href="<?php echo $basedir?>/user/reg.php">注册</a></li>
<?php }?>
</ul>
</div>
</div>
</div>
<div class="container">
</div>