File "smarty.inc.php"

Full Path: /srv/www/www.cadoro.it/src/includes/smarty.inc.php
File size: 777 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
  function _smarty() {
    global $_COOKIE, $lang;
    $smarty = new Smarty();
    $smarty->setTemplateDir('templates/');
    $smarty->setCompileDir('templates_c/');
    $smarty->setConfigDir('config/');
    $smarty->setCacheDir('cache/');
    $smarty->assign("debug", DEBUG);
    $smarty->assign("protocol", PROTOCOL);
    $smarty->assign("base_url", BASE_URL);
    $smarty->assign("cdn_url", CDN_URL);
    $smarty->assign("key_assets", KEY_ASSETS);
    $smarty->assign("lang", $lang);
    $smarty->assign("menu", null);
    $smarty->assign("submenu", null);
    $smarty->assign("principal", null);
    $smarty->assign("COOKIE", $_COOKIE);
    return $smarty;
  }

  $smarty = _smarty();

  require("helpers/misc.inc.php");
  require("helpers/vocabularies.inc.php");
?>