Esempio n. 1
0
$smarty->setTemplateDir('install/core/tpl');
$smarty->assign("langs", $langs);
$smarty->assign("langsJs", json_encode($langs));
// include actions and set tpl name
$tplName = 'main.tpl';
$actionsDir = 'core/actions';
$actionFile = '';
$action = !empty($_REQUEST['action']) ? $_REQUEST['action'] : 'main';
switch ($action) {
    case 'main':
        $languageList = $installer->getLanguageList();
        $smarty->assign("languageList", $languageList);
        break;
    case 'step3':
    case 'errors':
        $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;
}