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