-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
128 lines (117 loc) · 2.95 KB
/
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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?php
require_once __DIR__ . "/config.inc.php";
require_once __DIR__ . "/php/functions.inc.php";
require_once __DIR__ . "/php/form.inc.php";
require_once __DIR__ . "/php/data.inc.php";
if (isset ($_GET['src_server'])) {
$src_server = $_GET['src_server'];
$src = search2dArray ($servers, 'name', $src_server);
}
if (isset ($_GET['dest_server'])) {
$dest_server = $_GET['dest_server'];
$dest = search2dArray ($servers, 'name', $dest_server);
}
?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>migration</title>
<script type="text/javascript" src="vendor/components/jquery/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="vendor/twbs/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="index.css" type="text/css">
</head>
<body>
<div class="column">
<div class="quarter-screen top">
<h2> SOURCE </h2>
<form id="server_form" action="" method="get"></form>
<label for="src_server">SERVER</label>
<select form="server_form" id="src_server" name="src_server">
<option value=""></option>
<?php
generate_select_options ($servers, 'name', 'name', $src_server);
?>
</select>
<br/>
<br/>
<?php
if (!empty ($src_server)) {
echo_data ('src', 'ispconfig');
}
else {
?>
<p>please select a server if you want easy website migration</p>
<?php
}
?>
</div>
<form id="migrate_form" action="migrate.php" method="post"></form>
<div class="quarter-screen bottom">
<?php
echo_form ('src', @$src['shell_host'], '');
?>
</div>
</div>
<div class="column small">
=> <br/>
=> <br/>
=> <br/>
=> <br/>
=> <br/>
=> <br/>
=> <br/>
=> <br/>
=> <br/>
=> <br/>
=> <br/>
=> <br/>
=> <br/>
=> <br/>
=> <br/>
=> <br/>
=> <br/>
=> <br/>
=> <br/>
=> <br/>
=> <br/>
=> <br/>
</div>
<div class="column">
<div class="quarter-screen top">
<h2> DESTINATION </h2>
<label for="dest_server">SERVER</label>
<select form="server_form" id="dest_server" name="dest_server">
<option value=""></option>
<?php
generate_select_options ($servers, 'name', 'name', $dest_server);
?>
</select>
<br/>
<br/>
<?php
if (!empty ($dest_server)) {
echo_data ('dest', 'ispconfig');
}
else {
?>
<p>please select a server if you want easy website migration</p>
<?php
}
?>
</div>
<div class="quarter-screen bottom">
<?php
echo_form ('dest', @$dest['shell_host'], '');
?>
</div>
</div>
<div class="column small">
<button form="migrate_form" class="btn btn-lg btn-success">GO</button>
</div>
<script type="text/javascript" src="js/functions.js"></script>
<!-- <script type="text/javascript" src="js/vhffs_data.js"></script> -->
<script type="text/javascript" src="js/ispconfig_data.js"></script>
<script type="text/javascript" src="index.js"></script>
</body>
</html>