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