-
Notifications
You must be signed in to change notification settings - Fork 1
/
apache1.php
56 lines (52 loc) · 1.79 KB
/
apache1.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
<?php
include("header.php");
if($_SESSION['flag']=="allowed")
{
$action=$_POST['apache-option'];
if($action=="create")
{
echo '
<ol class="breadcrumb">
<li><a href="home.php">Home</a></li>
<li><a href="server.php">Servers</a></li>
<li><a href="apache.php">Setup Apache</a></li>
<li class="active">Create New Virtual Server</li>
</ol>';
echo '
<div class="container">
<form class="form-signin" role="form" action="apache2.php" method="post">
<h2 class="form-signin-heading">Create New Virtual Server</h2>
<input type="text" name="ip" class="form-control " placeholder="Enter Server IP Address" required autofocus><br>
<input type="text" name="doc-root" class="form-control " placeholder="Enter Document Root" required autofocus><br>
<input type="text" name="dname" class="form-control" placeholder="Enter Doamin Name" required>
<div>
<br>
<button class="btn btn-primary" name="apache1-sub" value="create">Create Server</button>
</div>
</form>
</div>';
}
if($action=="delete")
{
echo '
<ol class="breadcrumb">
<li><a href="home.php">Home</a></li>
<li><a href="server.php">Servers</a></li>
<li><a href="apache.php">Setup Apache</a></li>
<li class="active">Delete Virtual Server</li>
</ol>';
echo '
<div class="container">
<form class="form-signin" role="form" action="apache2.php" method="post">
<h2 class="form-signin-heading">Delete Virtual Server</h2>
<input type="text" name="dname" class="form-control" placeholder="Enter Doamin Name" required>
<div>
<br>
<button class="btn btn-primary" name="apache1-sub" value="delete">Delete Server</button>
</div>
</form>
</div>';
}
}
else
header("location:index.php");