Skip to content
Snippets Groups Projects
Commit 55c2693b authored by Henoch Einbier's avatar Henoch Einbier
Browse files

Update index.php

-moved content check variable to beginning (notice caused by empty var)
parent 9e5caba2
2 merge requests!46Release 3.0,!14Update index.php
<?php
if (!isset($_GET['content']) || empty ($_GET['content'])) $_GET['content'] = '/startseite';
if (strpos ($_GET['content'], '/logout/') !== false) {
session_start();
unset($_SESSION['admin']);
......@@ -11,7 +13,7 @@
if (!isset($_GET['content']) || empty ($_GET['content'])) $_GET['content'] = '/startseite';
if (!file_exists('content' . $_GET['content'] . '.php')) $_GET['content'] = '/error/keine_seite';
require ('../lib/extras.init.php');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment