First version, for githup; UNSTABLE, DO NOT USE!
This commit is contained in:
22
www/intern/wk-leitung/index.php
Normal file
22
www/intern/wk-leitung/index.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
if (session_status() !== PHP_SESSION_ACTIVE) session_start();
|
||||
|
||||
$baseDir = $_SERVER['DOCUMENT_ROOT'];
|
||||
|
||||
$access_granted_wkl = $_SESSION['access_granted_wk_leitung'] ?? false;
|
||||
|
||||
if ( ! $access_granted_wkl ) :
|
||||
|
||||
$logintype = 'wk_leitung';
|
||||
|
||||
require $baseDir . '/../scripts/login/login.php';
|
||||
|
||||
$logintype = '';
|
||||
|
||||
else :
|
||||
|
||||
header("Location: /intern/wk-leitung/rechnungen");
|
||||
exit;
|
||||
|
||||
endif;
|
||||
Reference in New Issue
Block a user