$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");
Exemple #2
0
 * An example extension of the default HtmlTexer class. This one in particular
 * parses TikiWiki documents and overrides/extends the necessary methods.
 *
 * This should work if you put it in a subfolder of your tiki-installation
 *
 * ***************************************************************************
 */
#
# TIKI setup
#
require_once '../tiki-setup.php';
require_once 'lib/wiki/wikilib.php';
require_once 'db/tiki-db.php';
require_once 'libtex.php';
// for the HtmlTexer class
$db = new TikiDB($dbTiki);
/**
 * Override some methods of the default texer to implement specific tiki markup
 */
class TikiTexer extends HtmlTexer
{
    /**
     * EXAMPLE "autoscale" interpretation
     * If we find a table which has it's summary set to "autoscale", we will
     * return a scaled table. Other attributes are obviously possible.
     */
    function process_table($node)
    {
        if (trim(strtolower($node->getAttribute("summary"))) == "autoscale") {
            return parent::process_table($node, true);
        } else {