Blame Scripts/Newbb2Phpbb/contents/p_main.php

61a2f1
61a2f1
/***
61a2f1
 * p_convert.php:
61a2f1
 *
61a2f1
 */
61a2f1
61a2f1
    $next_step = isset($_POST['step'])?$_POST['step']:0;
61a2f1
    array_push($htmlblock,'<form action="" method="post">');
61a2f1
    // Configuration
61a2f1
    if ( $next_step == 0 )
61a2f1
    {
61a2f1
        $next_step++;
61a2f1
        array_push($htmlblock,'

Configuration

', '
');
61a2f1
        $htmlblock = array_merge($htmlblock,$ldap->get_configForm());
61a2f1
        $htmlblock = array_merge($htmlblock,$db->get_configForm());
61a2f1
        $htmlblock = array_merge($htmlblock,$mail->get_configForm());
61a2f1
61a2f1
        array_push($htmlblock, '

',

61a2f1
                               'ReloadReload default configuration
61a2f1
                               <input type="hidden" name="step" value="'.$next_step.'" />',
61a2f1
                               '<input type="submit" name="Next" value="Verify Configuration" />',
61a2f1
                               '

');
61a2f1
    }
61a2f1
    
61a2f1
    // Verification
61a2f1
    else if ( $next_step == 1 )
61a2f1
    {
61a2f1
        array_push($htmlblock,'

Verification

',
61a2f1
                              '
',
61a2f1
                              $newbb_to_phpbb->config_verification( $next_step ));
61a2f1
    }
61a2f1
61a2f1
    // Migration
61a2f1
    else if ( $next_step == 2 )
61a2f1
    {
61a2f1
        array_push($htmlblock,'

Migration

', '
');
61a2f1
        $htmlblock = array_merge($htmlblock, $newbb_to_phpbb->copy_Forums(),
61a2f1
                                             $newbb_to_phpbb->copy_Users(),
61a2f1
                                             $newbb_to_phpbb->copy_Topics(),
61a2f1
                                             $newbb_to_phpbb->copy_Posts());
61a2f1
        $next_step++;
61a2f1
        array_push($htmlblock,'

61a2f1
                              <input type="hidden" name="step" value="'.$next_step.'" />
61a2f1
                              <input type="submit" name="Next" value="Next" />
61a2f1
                              

');
61a2f1
    }
61a2f1
61a2f1
    // Reset Passwords
61a2f1
    else if ( $next_step == 3 )
61a2f1
    {   
61a2f1
        $next_step++;
61a2f1
        array_push($htmlblock,'

Reset Passwords

', '
');
61a2f1
        $htmlblock = array_merge($htmlblock, $ldap->get_userList());
61a2f1
        array_push($htmlblock,'

That\'s all! smile

');
61a2f1
    }
61a2f1
61a2f1
    array_push($htmlblock,'</form>');
61a2f1
   
61a2f1
?>