forked from michaelwnyc/81online
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.php
More file actions
78 lines (77 loc) · 2.41 KB
/
install.php
File metadata and controls
78 lines (77 loc) · 2.41 KB
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
<!DOCTYPE html>
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link
rel="stylesheet" type="text/css" href="css/style.css">
<?php require_once("install_functions.php"); ?>
</head>
<?php
if(file_exists('./data/install.lock')){
echo("需要先删除data文件中的 install.lock 文件才能重新安装。");
}
else{
?>
<body>
<div align="center">
<div
style="width: 762px; border: 1px solid balck; text-align: center;"
align="center">
<form action="" method="post">
<table cellspacing="0" cellpadding="0" width="350" align="center"
bgcolor="#FFFF99">
<tbody>
<tr>
<td align="right" height="25">主机名: <input tabindex="1"
type="text" maxlength="20" size="20" name="hostname"
value="localhost">
</td>
</tr>
<tr>
<td align="right">数据库用户名: <input tabindex="2" type="text"
maxlength="20" size="20" name="db_username">
</td>
</tr>
<tr>
<td align="right">数据库密码: <input tabindex="3"
type="password" maxlength="20" size="20" name="db_password">
</td>
</tr>
<tr>
<td align="right">数据库名: <input tabindex="3" type="text"
maxlength="20" size="20" name="db_name" value="openvpn">
</td>
</tr>
<tr>
<td align="right">管理员: <input tabindex="3" type="text"
maxlength="20" size="20" name="admin_username">
</td>
</tr>
<tr>
<td align="right">管理员密码: <input tabindex="3"
type="password" maxlength="20" size="20" name="admin_passwd">
</td>
</tr>
<tr>
<td align="right">Email: <input tabindex="3" type="text"
maxlength="20" size="20" name="email">
</td>
</tr>
<tr>
<td align="center" height="25"><input
style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; WIDTH: 65px; CURSOR: hand; BORDER-BOTTOM: 0px; HEIGHT: 18px"
type="submit" value="添加用户" name="install"> <input
style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; WIDTH: 52px; CURSOR: hand; BORDER-BOTTOM: 0px; HEIGHT: 18px"
type="reset" value="重置" name="reset">
</td>
</tr>
</tbody>
</table>
</form>
</div>
</div>
</body>
<?php
}
?>
</html>