Exemple #1
0
 */
if ($cmd == 'run') {
    // include sql to upgrade the main Database
    require_once './upgrade_main_db_16.lib.php';
    require_once './upgrade_main_db_17.lib.php';
    require_once './upgrade_main_db_18.lib.php';
    require_once './upgrade_main_db_19.lib.php';
    require_once './upgrade_main_db_110.lib.php';
    $display = DISPLAY_RESULT_PANEL;
}
// if ($cmd=="run")
/*=====================================================================
  Display Section
 =====================================================================*/
// Display Header
echo upgrade_disp_header();
switch ($display) {
    case DISPLAY_WELCOME_PANEL:
        // Display welcome message
        echo '<h2>Step 2 of 4: main platform tables upgrade</h2>
              <p>Now, the <em>Claroline Upgrade Tool</em> is going to prepare the data stored
              into the <b>main Claroline tables</b> (users, course categories, tools list, ...)
              and set them to be compatible with the new Claroline version.</p>
              <p class="help">Note. Depending of the speed of your server or the amount of data
              stored on your platform, this operation may take some time.</p>
              <center>
              <p><button onclick="document.location=\'' . $_SERVER['PHP_SELF'] . '?cmd=run\';">Launch main platform tables upgrade</button></p>
              </center>';
        break;
    case DISPLAY_RESULT_PANEL:
        // Initialise
Exemple #2
0
function upgrade_disp_auth_form()
{
    // Display Header
    echo upgrade_disp_header();
    // Display login form
    echo '<table align="center">' . "\n" . '<tr>' . '<td>' . '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">' . "\n" . '<fieldset>' . "\n" . '<legend>Login</legend>' . "\n" . '<label for="username">Username : </label><br />' . "\n" . '<input type="text" name="login" id="username" /><br />' . "\n" . '<label for="password">Password : </label><br />' . "\n" . '<input type="password" name="password" id="password" /><br />' . "\n" . '<input type="submit"  />' . "\n" . '</fieldset>' . "\n" . '</form>' . "\n" . '</td>' . '</tr>' . '</table>';
    // Display footer
    echo upgrade_disp_footer();
    die;
}