php-password-store/smarty_init.php
2010-12-17 15:41:45 +01:00

12 lines
306 B
PHP

<?php
include $smartyInstallDir . DIRECTORY_SEPARATOR . 'libs' . DIRECTORY_SEPARATOR . 'Smarty.class.php';
$tpl = new Smarty();
$tpl->template_dir = $smartyTemplateDir;
$tpl->compile_dir = $smartyCache;
if (array_key_exists('loginuser', $_SESSION))
{
$tpl->assign('username', $_SESSION['loginuser']);
}