Esempio n. 1
0
}
$smarty->caching = false;
$smarty->setTemplateDir('install/core/tpl');
$smarty->assign("version", $installer->getVersion());
$smarty->assign("langs", $langs);
$smarty->assign("langsJs", json_encode($langs));
// include actions and set tpl name
switch ($action) {
    case 'main':
        $languageList = $installer->getLanguageList();
        $smarty->assign("languageList", $languageList);
        break;
    case 'step3':
    case 'errors':
    case 'setupConfirmation':
        $smarty->assign("apiPath", $systemHelper->getApiPath());
        $modRewriteUrl = $systemHelper->getModRewriteUrl();
        $smarty->assign("modRewriteUrl", $modRewriteUrl);
        $serverType = $systemHelper->getServerType();
        $smarty->assign("serverType", $serverType);
        $os = $systemHelper->getOS();
        $smarty->assign("OS", $os);
        break;
    case 'step4':
        $settingsDefaults = $installer->getSettingDefaults();
        $smarty->assign("settingsDefaults", $settingsDefaults);
        break;
    case 'step5':
        $settingsDefaults = $installer->getSettingDefaults();
        $smarty->assign("settingsDefaults", $settingsDefaults);
        break;