// By default, display is used with text/html content in UTF-8 encoding // If you want to output other data from smarty, // - either use fetch() / fetchLang() // - or set $content_type to '' (empty string) or another content type. // if ($content_type != '' && !headers_sent()) { header('Content-Type: ' . $content_type); } return parent::display($resource_name, $cache_id, $compile_id); } // Returns the file name associated to the template name function get_filename($template) { global $tikidomain, $style_base; if (!empty($tikidomain) && is_file($this->template_dir . '/' . $tikidomain . '/styles/' . $style_base . '/' . $template)) { $file = "/{$tikidomain}/styles/{$style_base}/"; } elseif (!empty($tikidomain) && is_file($this->template_dir . '/' . $tikidomain . '/' . $template)) { $file = "/{$tikidomain}/"; } elseif (is_file($this->template_dir . '/styles/' . $style_base . '/' . $template)) { $file = "/styles/{$style_base}/"; } else { $file = ''; } return $this->template_dir . $file . $template; } } $smarty = new Smarty_Tikiwiki($tikidomain); $smarty->load_filter('pre', 'tr'); // $smarty->load_filter('output','trimwhitespace'); include_once 'lib/smarty_tiki/resource.wiki.php'; $smarty->register_resource('wiki', array('smarty_resource_wiki_source', 'smarty_resource_wiki_timestamp', 'smarty_resource_wiki_secure', 'smarty_resource_wiki_trusted'));
} } } else { $virt = false; $virtuals = false; } if ($virtuals and isset($_REQUEST['multi']) and in_array($_REQUEST['multi'], $virtuals)) { $local = 'db/' . $_REQUEST['multi'] . '/local.php'; $multi = $_REQUEST['multi']; } else { $local = 'db/local.php'; $multi = ''; } $_SESSION["install-logged-{$multi}"] = 'y'; // Init smarty $smarty = new Smarty_Tikiwiki(); $smarty->load_filter('pre', 'tr'); $smarty->load_filter('output', 'trimwhitespace'); $smarty->assign('mid', 'tiki-install.tpl'); $smarty->assign('style', 'tikineat.css'); $smarty->assign('virt', $virt); $smarty->assign('multi', $multi); if ($language != 'en') { $smarty->assign('lang', $language); } // Tiki Database schema version $tiki_version = '2.4'; $smarty->assign('tiki_version', $tiki_version); //$smarty->assign('tiki_version_name', $tiki_version . ' ALPHA'); $smarty->assign('tiki_version_name', $tiki_version); // Available DB Servers