Skip to content

Commit

Permalink
Removed old code
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Schmidt committed Jul 5, 2018
1 parent c3e3db3 commit b79ebd0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions login.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@
$_SESSION['id'] = $id;
if($admin == 1) {
$_SESSION['admin'] = 1;
} elseif($admin == 2) {
$_SESSION['vboxx'] = 1;
}
header("Location: index.php");
} else {
Expand Down
4 changes: 1 addition & 3 deletions server_log.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?php
session_start();

if (isset($_SESSION['vboxx'])) {
$x_level = "1";
} elseif (!isset($_SESSION['admin']) && $_SESSION['admin'] != 1) {
if (!isset($_SESSION['admin']) && $_SESSION['admin'] != 1) {
header('Location: index.php');
return;
}
Expand Down
4 changes: 1 addition & 3 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
session_start();
include_once("config.php");

if (isset($_SESSION['vboxx'])) {
$x_level = "1";
} elseif (!isset($_SESSION['admin']) && $_SESSION['admin'] != 1) {
if (!isset($_SESSION['admin']) && $_SESSION['admin'] != 1) {
header('Location: index.php');
return;
}
Expand Down

0 comments on commit b79ebd0

Please sign in to comment.