Removed stray debugging info from ACL editor success notification; added ability for guests to set language on URI (?lang=eng); added html_in_pages ACL type and separated from php_in_pages so HTML can be embedded but not PHP; rewote portions of the path manager to better abstract URL input; added Zend Framework into list of BSD-licensed libraries; localized some remaining strings; got the migration script working, but just barely; fixed display bug in Special:Contributions; localized Main Page button in admin panel
<?php
function MIGRATE()
{
global $languages;
global $db, $dbdriver;
// Database upgrade
try
{
$sql_parser = new SQL_Parser('install/schemas/upgrade/migration/1.0-1.1-' . $dbdriver . '.sql');
}
catch ( Exception $e )
{
die("<pre>$e</pre>");
}
$sql_parser->assign_vars(array(
'TABLE_PREFIX' => table_prefix
));
$sql_list = $sql_parser->parse();
foreach ( $sql_list as $sql )
{
if ( !$db->sql_query($sql) )
$db->_die();
}
// Install default language
$lang_id = 'eng';
$lang_data =& $languages[$lang_id];
$lang_dir = ENANO_ROOT . "/language/{$lang_data['dir']}/";
// function install_language($lang_code, $lang_name_neutral, $lang_name_local, $lang_file = false)
install_language($lang_id, $lang_data['name_eng'], $lang_data['name'], $lang_dir . 'core.json');
$lang_local = new Language($lang_id);
$lang_local->import($lang_dir . "tools.json");
$lang_local->import($lang_dir . "user.json");
$lang_local->import($lang_dir . "admin.json");
setConfig('enano_version', installer_enano_version());
return true;
}