|
|
62b044 |
|
|
|
62b044 |
/***
|
|
|
62b044 |
* p_convert.php:
|
|
|
62b044 |
*
|
|
|
62b044 |
*/
|
|
|
62b044 |
|
|
|
62b044 |
$next_step = isset($_POST['step'])?$_POST['step']:0;
|
|
|
62b044 |
array_push($htmlblock,'<form action="" method="post">');
|
|
|
62b044 |
// Configuration
|
|
|
62b044 |
if ( $next_step == 0 )
|
|
|
62b044 |
{
|
|
|
62b044 |
$next_step++;
|
|
|
62b044 |
array_push($htmlblock,'Configuration', ' ');
|
|
|
62b044 |
$htmlblock = array_merge($htmlblock,$ldap->get_configForm());
|
|
|
62b044 |
$htmlblock = array_merge($htmlblock,$db->get_configForm());
|
|
|
62b044 |
$htmlblock = array_merge($htmlblock,$mail->get_configForm());
|
|
|
62b044 |
|
|
|
62b044 |
array_push($htmlblock, '',
|
|
|
62b044 |
'Reload default configuration
|
|
|
62b044 |
<input type="hidden" name="step" value="'.$next_step.'" />',
|
|
|
62b044 |
'<input type="submit" name="Next" value="Verify Configuration" />',
|
|
|
62b044 |
'');
|
|
|
62b044 |
}
|
|
|
62b044 |
|
|
|
62b044 |
// Verification
|
|
|
62b044 |
else if ( $next_step == 1 )
|
|
|
62b044 |
{
|
|
|
62b044 |
array_push($htmlblock,'Verification',
|
|
|
62b044 |
' ',
|
|
|
62b044 |
$newbb_to_phpbb->config_verification( $next_step ));
|
|
|
62b044 |
}
|
|
|
62b044 |
|
|
|
62b044 |
// Migration
|
|
|
62b044 |
else if ( $next_step == 2 )
|
|
|
62b044 |
{
|
|
|
62b044 |
array_push($htmlblock,'Migration', ' ');
|
|
|
62b044 |
$htmlblock = array_merge($htmlblock, $newbb_to_phpbb->copy_Forums(),
|
|
|
62b044 |
$newbb_to_phpbb->copy_Users(),
|
|
|
62b044 |
$newbb_to_phpbb->copy_Topics(),
|
|
|
62b044 |
$newbb_to_phpbb->copy_Posts());
|
|
|
62b044 |
$next_step++;
|
|
|
62b044 |
array_push($htmlblock,'
|
|
|
62b044 |
<input type="hidden" name="step" value="'.$next_step.'" />
|
|
|
62b044 |
<input type="submit" name="Next" value="Next" />
|
|
|
62b044 |
');
|
|
|
62b044 |
}
|
|
|
62b044 |
|
|
|
62b044 |
// Reset Passwords
|
|
|
62b044 |
else if ( $next_step == 3 )
|
|
|
62b044 |
{
|
|
|
62b044 |
$next_step++;
|
|
|
62b044 |
array_push($htmlblock,'Reset Passwords', ' ');
|
|
|
62b044 |
$htmlblock = array_merge($htmlblock, $ldap->get_userList());
|
|
|
62b044 |
array_push($htmlblock,'That\'s all! ');
|
|
|
62b044 |
}
|
|
|
62b044 |
|
|
|
62b044 |
array_push($htmlblock,'</form>');
|
|
|
62b044 |
|
|
|
62b044 |
?>
|