} } } } 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 = ''; } // 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', 'moreneat.css'); $smarty->assign('transition_style', '1.8to1.9.css'); $smarty->assign('virt', $virt); $smarty->assign('multi', $multi); // Tiki Database schema version $tiki_version = '1.9'; $smarty->assign('tiki_version', $tiki_version); // Available DB Servers $dbservers = array('MySQL', 'MySQL (mysqli driver)', 'PostgeSQL 7.2+', 'Oracle', 'Sybase', 'SQLLite', 'MSSQL'); $dbtodsn = array("MySQL" => "mysql", "MySQL (mysqli driver)" => "mysqli", "PostgeSQL 7.2+" => "pgsql", "Oracle" => "oci8", "Sybase" => "sybase", "SQLLite" => "sqlite", "MSSQL" => "mssql"); $smarty->assign_by_ref('dbservers', $dbservers); $errors = '';
if ($tikidomain and file_exists("templates/{$tikidomain}/styles/{$style_base}/{$_smarty_tpl_file}")) { $_smarty_tpl_file = "{$tikidomain}/styles/{$style_base}/{$_smarty_tpl_file}"; } elseif ($tikidomain and file_exists("templates/{$tikidomain}/{$_smarty_tpl_file}")) { $_smarty_tpl_file = "{$tikidomain}/{$_smarty_tpl_file}"; } elseif (file_exists("templates/styles/{$style_base}/{$_smarty_tpl_file}")) { $_smarty_tpl_file = "styles/{$style_base}/{$_smarty_tpl_file}"; } } $_smarty_cache_id = $language . $_smarty_cache_id; $_smarty_compile_id = $language . $_smarty_compile_id; return parent::clear_cache($_smarty_tpl_file, $_smarty_cache_id, $_smarty_compile_id, $_smarty_exp_time); } // 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');