-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.php
88 lines (88 loc) · 2.72 KB
/
run.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
<?php
require("config_ng.php");
session_start(); // start up your PHP session!
$_SESSION["LYAC_uname"] = "LYAC";
// Assign values to the session variables
// connect to the POP server
$_SESSION["POP_HOST"] = $POPhostname;
$_SESSION["POP_USER"] = $POPusername;
$_SESSION["POP_PASS"] = $POPpassword;
$_SESSION["POP_PARAM"] = $POPparameters;
// connect to the MYSQL server
$_SESSION["DB_SERVER"] = $DBserver;
$_SESSION["DB_USER"] = $DBusername;
$_SESSION["DB_PASS"] = $DBpassword;
// connect to the FTP server
$_SESSION["FTP_HOST"] = $FTPhostname;
$_SESSION["FTP_USER"] = $FTPusername;
$_SESSION["FTP_PASS"] = $FTPpassword;
// redirect user to the list page
header("Location: main.php");
}
?>
<html>
<head>
<title>LYAC</title>
<!--
<link rel="shortcut icon" type="image/x-icon" href="http://lyac:8080/favicon.ico" />
<link rel="icon" href="http://lyac:8080/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="http://lyac:8080/favicon.ico" type="image/x-icon" />
-->
<link rel="shortcut icon" href="http://lyac:8080/favicon.ico" type="image/x-icon" />
</head>
<body>
<form method="POST" action="<?php echo $_SERVER["PHP_SELF"]; ?>">
<table border="0" cellspacing="5" cellpadding="5" align="center">
<tr>
<td colspan="2"><h2 align="center">LYAC</h2></td>
</tr>
<tr>
<td colspan="2"><h3 align="center">Please check and confirm</h3></td>
</tr>
<tr>
<td>POP3 Server</td>
<td><?php echo $POPhostname; ?></td>
</tr>
<tr>
<td>POP3 Username</td>
<td><?php echo $POPusername; ?></td>
</tr>
<tr>
<td>POP3 Password</td>
<td><?php echo $POPpassword; ?></td>
</tr>
<tr>
<td>MYSQL Server</td>
<td><?php echo $DBserver; ?></td>
</tr>
<tr>
<td>MYSQL Username</td>
<td><?php echo $DBusername; ?></td>
</tr>
<tr>
<td>MYSQL Password</td>
<td><?php echo $DBpassword; ?></td>
</tr>
<tr>
<td>FTP Server</td>
<td><?php echo $FTPhostname; ?></td>
</tr>
<tr>
<td>FTP Username</td>
<td><?php echo $FTPusername; ?></td>
</tr>
<tr>
<td>FTP Password</td>
<td><?php echo $FTPpassword; ?></td>
</tr>
<tr>
<td colspan="2"><h4 align="center">Please check and confirm</h4></td>
</tr>
<tr>
<td><a href="javascript:window.close();void(0)"><p align="center">EXIT </p></a></td>
<td><input name="submit" type="submit" value="CONFIRM"></td>
</tr>
</table>
</form>
</body>
</html>