first commit
This commit is contained in:
15
php/login.php
Normal file
15
php/login.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
## INDEX gegen DB
|
||||
if(!isset($_SESSION)) { session_start(); }
|
||||
|
||||
require '../vendor/autoload.php';
|
||||
use Smarty\Smarty;
|
||||
$smarty = new Smarty();
|
||||
$smarty->setTemplateDir('../html')
|
||||
->setCompileDir('../smarty_tmp/templates_c')
|
||||
->setCacheDir('../smarty_tmp/cache');
|
||||
require_once("../config/datenbankanbindung.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']),0,-3)."html";
|
||||
|
||||
$smarty->display("$templatename");
|
||||
?>
|
Reference in New Issue
Block a user