-
Notifications
You must be signed in to change notification settings - Fork 1
/
server_config.py
executable file
·60 lines (53 loc) · 2.27 KB
/
server_config.py
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
#!/usr/bin/python2
import cgi,commands
import header
if(os.environ['REQUEST_METHOD'] == "POST"):
psss
elif(os.environ['REQUEST_METHOD'] == "GET"):
print """
<div class="login-clean">
<form method="post">
<h2 class="sr-only">Login Form</h2>
<div class="illustration"><img src="/img/arcus_logo.png" width="100%" height="100%"></div>
<div class="form-group">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>
<div class="radio">
<label class="control-label">
<input type="radio" name="serverCount" checked="">Single</label>
</div>
</th>
<th>
<div class="radio">
<label class="control-label">
<input type="radio" name="serverCount">Multiple</label>
</div>
</th>
</tr>
</thead>
<tbody>
<tr></tr>
</tbody>
</table>
</div>
<input class="form-control" type="text" name="serverIP" placeholder="Remote server IP">
</div>
<div class="form-group">
<input class="form-control" type="password" name="serverPassword" placeholder="Remote server root password">
</div>
<div class="form-group">
<button class="btn btn-primary btn-block" type="submit">Continue </button>
</div>
</form>
</div>
<script src="/js/jquery.min.js"></script>
<script src="/bootstrap/js/bootstrap.min.js"></script>
<script src="https://cdn.datatables.net/1.10.15/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.15/js/dataTables.bootstrap.min.js"></script>
<script src="/js/script.min.js"></script>
</body>
</html>
"""