Smarty Template korrekt; LDAP Connects mit DB Connects

This commit is contained in:
aschwarz
2023-11-06 11:36:15 +01:00
parent fd10ee8d96
commit b4c5946719
10 changed files with 239 additions and 379 deletions

19
config/smarty.php Normal file
View File

@ -0,0 +1,19 @@
<?php
date_default_timezone_set("Europe/Berlin");
$path = dirname(__FILE__);
$pos = stripos($path, 'login');
$dir = substr($path,0,$pos).'login/';
define('SMARTY_DIR', $dir);
require(SMARTY_DIR . 'vendor/autoload.php');
use Smarty\Smarty;
class SmartyAdmin extends Smarty{
public function __construct(){
parent::__construct(); // this must be called
$this->template_dir = SMARTY_DIR.'html';
$this->compile_dir = SMARTY_DIR.'smarty_tmp/templates_c';
$this->config_dir = SMARTY_DIR.'smarty_tmp/config';
$this->cache_dir = SMARTY_DIR.'smarty_tmp/cache';
}
}
?>