logoin Fehlerkorrektur
This commit is contained in:
@ -1,14 +1,29 @@
|
||||
<?php
|
||||
## INDEX gegen DB
|
||||
if(!isset($_SESSION)) { session_start(); }
|
||||
if (!isset($_SESSION))
|
||||
{
|
||||
session_start();
|
||||
}
|
||||
include_once '../config/smarty.php';
|
||||
$smarty = new SmartyAdmin();
|
||||
require_once("../config/datenbankanbindung.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']),0,-3)."html";
|
||||
|
||||
$smarty->assign('hs', $_SESSION['global_hs']);
|
||||
$smarty->assign('stg', $_SESSION['global_stg']);
|
||||
|
||||
require_once ("../config/datenbankanbindung.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']) , 0, -3) . "html";
|
||||
if (isset($_SESSION['global_hs']))
|
||||
{
|
||||
$smarty->assign('hs', $_SESSION['global_hs']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$smarty->assign('hs', '');
|
||||
}
|
||||
if (isset($_SESSION['global_stg']))
|
||||
{
|
||||
$smarty->assign('stg', $_SESSION['global_stg']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$smarty->assign('stg', '');
|
||||
}
|
||||
|
||||
$smarty->display("$templatename");
|
||||
?>
|
||||
?>
|
Reference in New Issue
Block a user