forked from zhuifengshaonianhanlu/pikachu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
46 lines (36 loc) · 848 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
<?php
include_once "inc/config.inc.php";
include_once "inc/mysql.inc.php";
$html='';
try
{
$link = mysqli_connect(DBHOST,DBUSER,DBPW,DBNAME);
}
catch(Exception $e)
{
$html.=
"<p >
<a href='pkxss_install.php' style='color:red;'>
提示:欢迎使用xss后台,点击进行初始化安装!
</a>
</p>";
}
if (@$link)
{
header("location:pkxss_login.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pikachu Xss 后台</title>
<link rel="stylesheet" type="text/css" href="pkxss.css"/>
</head>
<body>
<div id="title">
<h1>欢迎使用 pikachu Xss 后台</h1>
<?php echo $html;?>
</div>
</body>
</html>