Skip to content
This repository was archived by the owner on May 31, 2020. It is now read-only.

Commit 91ecacc

Browse files
committed
Fix some links
1 parent 91a4ade commit 91ecacc

8 files changed

Lines changed: 34 additions & 65 deletions

File tree

players.php

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,14 @@
2222
<meta charset="utf-8">
2323
<meta http-equiv="X-UA-Compatible" content="IE=edge">
2424
<meta name="viewport" content="width=device-width, initial-scale=1">
25-
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
2625
<meta name="description" content="">
2726
<meta name="author" content="">
2827
<link rel="icon" href="../../favicon.ico">
29-
3028
<title>Admin Panel - Players</title>
31-
32-
<!-- Bootstrap core CSS -->
3329
<link href="dist/css/bootstrap.css" rel="stylesheet">
34-
35-
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
3630
<link href="assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
37-
38-
<!-- Custom styles for this template -->
3931
<link href="styles/dashboard.css" rel="stylesheet">
40-
41-
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
42-
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
4332
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
44-
45-
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
46-
<!--[if lt IE 9]>
47-
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
48-
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
49-
<![endif]-->
5033
</head>
5134

5235
<body>
@@ -57,8 +40,10 @@
5740
$valuetosearch = $_POST['SearchValue'];
5841
$sqlget = "SELECT * FROM players WHERE CONCAT (`name`,`playerid`) LIKE '%".$valuetosearch."%'";
5942
$search_result = filterTable($dbcon, $sqlget);
60-
if ($search_result == "") {$sqlget = "SELECT * FROM players WHERE CONCAT (`name`,`pid`) LIKE '%".$valuetosearch."%'";
61-
$search_result = filterTable($dbcon, $sqlget);}
43+
if ($search_result == '') {
44+
$sqlget = "SELECT * FROM players WHERE CONCAT (`name`,`pid`) LIKE '%".$valuetosearch."%'";
45+
$search_result = filterTable($dbcon, $sqlget);
46+
}
6247
} elseif (isset($_POST['orderBank'])) {
6348
$sqlget = 'SELECT * FROM players ORDER BY bankacc DESC';
6449
$search_result = filterTable($dbcon, $sqlget);
@@ -268,7 +253,7 @@
268253
} else {
269254
$return = 'GUID can not be used with 32 bit php!';
270255
}
271-
$alias = explode ('`',$row['aliases']);
256+
$alias = explode('`', $row['aliases']);
272257
echo '<form action=players.php method=post>';
273258
echo '<tr>';
274259
echo "<td style='display:none;'>".'<input type=hidden name=hiddenUID value='.$pid.' </td>';
@@ -278,7 +263,7 @@
278263
echo '<td>'.$pid.' </td>';
279264
echo '<td>'.$return.'</td>';
280265
//inputs
281-
echo '<td>'."<input class='form-control' type=text name=csh value=".$row['cash'].' </td>';
266+
echo '<td>'."<input class='form-control' type=text name=csh value=".$row['cash'].' </td>';
282267
echo '<td>'."<input class='form-control' type=text name=bankacc value=".$row['bankacc'].' </td>';
283268
echo '<td>'."<input class='form-control' type=text style = 'width: 100%;' name=coplevel value=".$row['coplevel'].' </td>';
284269
echo '<td>'."<input class='form-control' type=text style = 'width: 100%;' name=mediclevel value=".$row['mediclevel'].' </td>';
@@ -291,11 +276,10 @@
291276
echo '<td>'."<input class='btn btn-primary btn-outline' type=submit name=edit id=edit value=Edit Player".' </td>';
292277
echo "<td style='display:none;'>".'<input type=hidden name=hidden value='.$row['uid'].' </td>';
293278
echo "<td style='display:none;'>".'<input type=hidden name=guid value='.$return.' </td>';
279+
echo '<form>';
294280
echo '</tr>';
295281
}
296282

297-
298-
299283
echo '</table></div>';
300284
?>
301285
</tbody>
@@ -316,4 +300,4 @@
316300
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
317301
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
318302
</body>
319-
</html>
303+
</html>

rCon/rcon-ban.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
$staffPerms = $_SESSION['perms'];
1111

1212
if ($staffPerms['ban'] != '1') {
13-
header('Location: lvlError.php');
13+
header('Location: ../lvlError.php');
1414
}
1515

1616
require_once '../ArmaRConClass/rcon.php';

rCon/rcon-check.php

Lines changed: 17 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,10 @@
3030
<link rel="icon" href="../../favicon.ico">
3131

3232
<title>Admin Panel - Battleye</title>
33-
34-
<!-- Bootstrap core CSS -->
35-
<link href="/dist/css/bootstrap.css" rel="stylesheet">
36-
37-
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
33+
<link href="dist/css/bootstrap.css" rel="stylesheet">
3834
<link href="assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
39-
40-
<!-- Custom styles for this template -->
41-
<link href="/styles/dashboard.css" rel="stylesheet">
42-
43-
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
44-
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
35+
<link href="styles/dashboard.css" rel="stylesheet">
4536
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
46-
47-
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
48-
<!--[if lt IE 9]>
49-
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
50-
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
51-
<![endif]-->
5237
</head>
5338

5439
<body>
@@ -71,10 +56,10 @@
7156
</div>
7257
<div id="navbar" class="navbar-collapse collapse">
7358
<ul class="nav navbar-nav navbar-right">
74-
<li><a href="#" style="color: #fff">Dashboard</a></li>
75-
<li><a href="#" style="color: #fff">Settings</a></li>
76-
<li><a href="#" style="color: #fff">Profile</a></li>
77-
<li><a href="#" style="color: #fff">Help</a></li>
59+
<li><a href="../home.php" style="color: #fff">Dashboard</a></li>
60+
<li><a href="../settings.php" style="color: #fff">Settings</a></li>
61+
<li><a href="../profile.php" style="color: #fff">Profile</a></li>
62+
<li><a href="../help.php" style="color: #fff">Help</a></li>
7863
</ul>
7964
</div>
8065
</div>
@@ -84,24 +69,24 @@
8469
<div class="row">
8570
<div id="navbarside" class="col-sm-3 col-md-2 sidebar">
8671
<ul class="nav nav-sidebar">
87-
<li><a href="/home.php">Dashboard</a></li>
88-
<li><a href="/players.php">Players</a></li>
89-
<li><a href="/vehicles.php">Vehicles</a></li>
90-
<li><a href="/gangs.php">Gangs</a></li>
91-
<li><a href="/houses.php">Houses</a></li>
92-
<li><a href="/logs.php">Logs</a></li>
93-
<li><a href="/reimbursement.php">Reimbursement Logs</a></li>
94-
<li><a href="/staff.php">Staff</a></li>
95-
<li><a href="/Steam/steam.php">Steam Accounts</a></li>
96-
<li><a href="/logout.php">Log Out</a></li>
72+
<li><a href="../home.php">Dashboard</a></li>
73+
<li><a href="../players.php">Players</a></li>
74+
<li><a href="../vehicles.php">Vehicles</a></li>
75+
<li><a href="../gangs.php">Gangs</a></li>
76+
<li><a href="../houses.php">Houses</a></li>
77+
<li><a href="../logs.php">Logs</a></li>
78+
<li><a href="../reimbursement.php">Reimbursement Logs</a></li>
79+
<li><a href="../staff.php">Staff</a></li>
80+
<li><a href="../Steam/steam.php">Steam Accounts</a></li>
81+
<li><a href="../logout.php">Log Out</a></li>
9782
</ul>
9883
</div>
9984
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
10085
<h1 style = "margin-top: 70px">BattleEye Logs</h1>
10186
<p class="page-header">BattleEye Logs.</p>
10287

10388
<div class="btn-group" role="group" aria-label="...">
104-
<FORM METHOD="LINK" ACTION="/players.php">
89+
<FORM METHOD="LINK" ACTION="../players.php">
10590
<INPUT class='btn btn-primary btn-outline' TYPE="submit" VALUE="Back">
10691
</FORM>
10792
</div><br><br><br>

rCon/rcon-kick.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
$staffPerms = $_SESSION['perms'];
1111

1212
if ($staffPerms['kick'] != '1') {
13-
header('Location: lvlError.php');
13+
header('Location: ../lvlError.php');
1414
}
1515

1616
require_once '../ArmaRConClass/rcon.php';
@@ -33,5 +33,5 @@
3333

3434
$addBan = $rcon->kick_player($guid, $reason);
3535

36-
header('Location: /players.php');
36+
header('Location: ../players.php');
3737
}

rCon/rcon-mess.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
$staffPerms = $_SESSION['perms'];
1010

1111
if ($staffPerms['globalMessage'] != '1') {
12-
header('Location: lvlError.php');
12+
header('Location: ../lvlError.php');
1313
}
1414

1515
require_once '../ArmaRConClass/rcon.php';
@@ -27,5 +27,5 @@
2727

2828
$mess = $rcon->say_global($mess);
2929

30-
header('Location: /home.php');
30+
header('Location: ../home.php');
3131
}

rCon/rcon-stop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
$staffPerms = $_SESSION['perms'];
1010

1111
if ($staffPerms['stopServer'] != '1') {
12-
header('Location: lvlError.php');
12+
header('Location: ../lvlError.php');
1313
}
1414

1515
require_once '../ArmaRConClass/rcon.php';

rCon/rcon-unBan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
$staffPerms = $_SESSION['perms'];
1010

1111
if ($staffPerms['unban'] != '1') {
12-
header('Location: lvlError.php');
12+
header('Location: ../lvlError.php');
1313
}
1414

1515
require_once '../ArmaRConClass/rcon.php';

verifyCheck.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ function logIt(".'$'.'admin,'.'$'.'log,'.'$'.'dbcon){
8484
8585
function filterTable('.'$'.'dbcon, '.'$'.'sqlget)
8686
{
87-
'.'$'.'sqldata = mysqli_query('.'$'.'dbcon, '.'$'."sqlget) or die ('Connection could not be established');
88-
return ".'$'.'sqldata;
87+
'.'$'.'sqldata = mysqli_query('.'$'.'dbcon, '.'$'.'sqlget);
88+
return '.'$'.'sqldata;
8989
}
9090
9191

0 commit comments

Comments
 (0)