modifica path in ihtml per maggiore sicurezza
1 files added
2 files renamed
2 files modified
| | |
| | | use Smarty\Smarty; |
| | | $smarty = new Smarty(); |
| | | |
| | | $smarty->setTemplateDir('files_comuni/smarty/templates'); |
| | | $smarty->setConfigDir('files_comuni/smarty/configs'); |
| | | $smarty->setCompileDir('files_comuni/smarty/templates_c'); |
| | | $smarty->setCacheDir('files_comuni/smarty/cache'); |
| | | $smarty->setTemplateDir('../ihtml/smarty/templates'); |
| | | $smarty->setConfigDir('../ihtml/smarty/configs'); |
| | | $smarty->setCompileDir('../ihtml/smarty/templates_c'); |
| | | $smarty->setCacheDir('../ihtml/smarty/cache'); |
| | | $smarty->testInstall(); |
| | | |
| | | $smarty->assign('name', 'Filippo'); |
New file |
| | |
| | | <?php |
| | | /* Smarty version 5.0.2, created on 2024-04-22 09:15:37 |
| | | from 'file:prova.tpl' */ |
| | | |
| | | /* @var \Smarty\Template $_smarty_tpl */ |
| | | if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array ( |
| | | 'version' => '5.0.2', |
| | | 'unifunc' => 'content_66262ab91511f9_63931584', |
| | | 'has_nocache_code' => false, |
| | | 'file_dependency' => |
| | | array ( |
| | | '6cfb399733b2d365b1da7fefbe4ad85f5840e0f8' => |
| | | array ( |
| | | 0 => 'prova.tpl', |
| | | 1 => 1713776044, |
| | | 2 => 'file', |
| | | ), |
| | | ), |
| | | 'includes' => |
| | | array ( |
| | | ), |
| | | ))) { |
| | | function content_66262ab91511f9_63931584 (\Smarty\Template $_smarty_tpl) { |
| | | $_smarty_current_dir = 'C:\\Users\\dell\\Documents\\Lavoro\\echophp\\ihtml\\smarty\\templates'; |
| | | ?><h1>CIAO <?php echo htmlspecialchars((string)$_smarty_tpl->getValue('name'), ENT_QUOTES, 'UTF-8', true);?> |
| | | , sono un test</h1><?php } |
| | | } |