$smarty->assign('double_encode_fix_attempted', 'y'); } if ($install_step == '4') { // Show the innodb option in the (re)install section if InnoDB is present if (isset($installer) and $installer->hasInnoDB()) { $smarty->assign('hasInnoDB', true); } else { $smarty->assign('hasInnoDB', false); } $value = ''; if (($db = TikiDB::get()) && ($result = $db->fetchAll('show variables like "character_set_database"'))) { $res = reset($result); $variable = array_shift($res); $value = array_shift($res); } $smarty->assign('database_charset', $value); } if ((isset($value) && $value == 'utf8' || $install_step == '7') && ($db = TikiDB::get())) { $result = $db->fetchAll('SELECT TABLE_COLLATION FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = ? AND TABLE_COLLATION NOT LIKE "utf8%"', $dbs_tiki); if (!empty($result)) { $smarty->assign('legacy_collation', $result[0]['TABLE_COLLATION']); } } if ($install_step == '6') { $smarty->assign('disableAccounts', list_disable_accounts()); } $mid_data = $smarty->fetch('tiki-install.tpl'); $smarty->assign('mid_data', $mid_data); $smarty->assign('title', $title); $smarty->assign('phpErrors', $phpErrors); $smarty->display("tiki-install_screens.tpl");