mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
Authentification für Wawi
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
$path = dirname($_SERVER['PHP_SELF']);
|
||||
|
||||
if (!isset($_SESSION['user']) || $_SESSION['user']=='')
|
||||
{
|
||||
$_SESSION['request_uri']=$_SERVER['REQUEST_URI'];
|
||||
|
||||
header('Location: '.SERVER_ROOT.($path == '/' ? '' : $path).'/login.php');
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user