Esempio n. 1
0
            $content = 'You need to run the upgrade scripts for your database up to 20010321.  This version';
            $content .= ' introduced the dcl_config table that tracks system settings and current version.';
            $content .= '  See the doc directory for how the upgrade process works.  After upgrading, select';
            $content .= ' Reload to continue the upgrade process.';
            $b_reload = true;
        }
        include 'install_tpl.php';
        break;
    case "insertData":
        include_once "../inc/config.php";
        include_once "../inc/functions.inc.php";
        include_once './default_records.inc.php';
        $oDB = new dclDB();
        include_once 'setup.inc.php';
        // gets current version
        $oDB->Execute("INSERT INTO dcl_config (dcl_config_name, dcl_config_field, dcl_config_varchar) VALUES ('DCL_VERSION', 'dcl_config_varchar', " . $oDB->Quote($setup_info['dcl']['version']) . ")");
        $content = '<div style="width: 50%; text-align: left; padding-left: 200px;">';
        $content .= $GLOBALS['__import_content__'];
        $content .= '</div>';
        $b_next = array('finish', _INSTALL_L117);
        $title = _INSTALL_L116;
        include 'install_tpl.php';
        break;
    case 'finish':
        $title = _INSTALL_L32;
        $content = "<table width='60%' align='center'><tr><td align='left'>\n";
        include './language/' . $language . '/finish.php';
        $content .= "</td></tr></table>\n";
        include 'install_tpl.php';
        break;
}