This repository was archived by the owner on May 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathsettings.php
executable file
·126 lines (97 loc) · 3.52 KB
/
settings.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
<?php
session_start();
ob_start();
if (!isset($_SESSION['logged'])) {
header('Location: index.php');
die();
}
$staffPerms = $_SESSION['perms'];
$user = $_SESSION['user'];
include 'verifyPanel.php';
if ($staffPerms['superUser'] != '1') {
header('Location: lvlError.php');
die();
}
include 'header/header.php';
?>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<h1 style = "margin-top: 70px">Settings Menu</h1>
<p class="page-header">Settings menu of the panel, allows you to change panel settings.</p>
<div class='panel panel-info'>
<div class='panel-heading'>
<h3 class='panel-title'>Server Info</h3>
</div>
<div class='panel-body'>
<form action = "updateSettings.php" method="post">
<h4>Database Host</h4>
<input type="text" name= "host" class="form-control" value="<?php echo $DBHost; ?>">
<br>
<h4>Username</h4>
<input type="text" name= "user" class="form-control" value="<?php echo $DBUser; ?>">
<br>
<h4>Password</h4>
<input type="password" name= "pass" class="form-control" value="<?php echo $DBPass; ?>">
<br>
<h4>Database Name</h4>
<input type="text" name= "name" class="form-control" value="<?php echo $DBName; ?>">
<h4>RCON Host</h4>
<input type="text" name= "RHost" class="form-control" value="<?php echo $RconHost; ?>">
<br>
<h4>RCON Pass</h4>
<input type="password" name= "RPass" class="form-control" value="<?php echo $RconPass; ?>">
<br>
<h4>RCON Port</h4>
<input type="text" name= "RPort" class="form-control" value="<?php echo $RconPort; ?>">
<br>
<h4>Max Cop Level</h4>
<input type="text" name= "maxCop" class="form-control" value="<?php echo $maxCop; ?>">
<br>
<h4>Max Medic Level</h4>
<input type="text" name= "maxMedic" class="form-control" value="<?php echo $maxMedic; ?>">
<br>
<h4>Max Admin Level</h4>
<input type="text" name= "maxAdmin" class="form-control" value="<?php echo $maxAdmin; ?>">
<br>
<h4>Max Donator Level</h4>
<input type="text" name= "maxDonator" class="form-control" value="<?php echo $maxDonator; ?>">
<br>
<h4>API Username</h4>
<input type="text" name= "apiUser" class="form-control" value="<?php echo $apiUser; ?>">
<br>
<h4>API Password</h4>
<input type="text" name= "apiPass" class="form-control" value="<?php echo $apiPass; ?>">
<br>
<h4>API Enabled</h4>
<select class='form-control'name = 'apiEnable'>
<?php if ($apiEnable == 1) {
echo '<option>0</option>';
echo '<option selected="selected">1</option>';
} else {
echo '<option selected="selected">0</option>';
echo '<option>1</option>';
}
?>
</select>
<br>
<button type="submit" name="updateButton" class="btn btn-primary btn-lg btn-block btn-outline">Update</button>
</form>
</div>
</div>
<?php
?>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
<script src="/dist/js/bootstrap.min.js"></script>
<!-- Just to make our placeholder images work. Don't actually copy the next line! -->
<script src="../../assets/js/vendor/holder.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>