function mainfrm($step, $lang) { switch ($step) { case '1': step_1($lang); break; case '2': step_2($lang); break; case '3': step_3($lang); break; case '4': step_4($lang); break; } }
$CHMOD_ARRAY = get_chmod_array(); $password_prompt = new ocp_tempcode(); if (!array_key_exists('step', $_GET)) { $_GET['step'] = '1'; } if (intval($_GET['step']) == 1) { $content = step_1(); } if (intval($_GET['step']) == 2) { $content = step_2(); } if (intval($_GET['step']) == 3) { $content = step_3(); } if (intval($_GET['step']) == 4) { $content = step_4(); $forum_type = get_param('forum_type', ''); if ($forum_type == 'none') { $username = '******'; } /*if (!is_null($username)) $password_prompt_2=do_lang_tempcode('CONFIRM_ADMIN_PASSWORD_2',escape_html($username)); else */ $password_prompt_2 = new ocp_tempcode(); $password_prompt = do_lang_tempcode('CONFIRM_ADMIN_PASSWORD', $password_prompt_2); } if (intval($_GET['step']) == 5) { $content = step_5(); } if (intval($_GET['step']) == 6) { $content = step_6();
// Show the step step_1(); break; case '2': check_installed_file_exists() ? header('Location: ../magmi.php') : ""; show_progress(2); step_2(); break; case '3': check_installed_file_exists() ? header('Location: ../magmi.php') : ""; show_progress(3); step_3(); break; case '4': show_progress(4); step_4(); break; default: check_installed_file_exists() ? header('Location: ../magmi.php') : ""; show_progress(1); step_1(); } ?> </div> </div><!-- /actions --> <div style="clear:both;"></div> </div><!-- /container --> <div class="grid_12 footer"> <!--<a href="#">--> <div class="footer-left"> </div>
if (!isset($step)) { $view_bg_image = $bg_image[0]; $script = step_0($content); } elseif ($step == 1) { $view_bg_image = $bg_image[$step]; $script = step_1($content); } elseif ($step == 2) { $view_bg_image = $bg_image[$step]; $question = $_GET['question']; $script = step_2($content, $question); } elseif ($step == 3) { $view_bg_image = $bg_image[$step]; $script = step_3($content); } elseif ($step == 4) { $view_bg_image = $bg_image[$step]; $script = step_4($content); } elseif ($step == 5) { $view_bg_image = $bg_image[$step]; $script = step_5($content); } ?> <div id="wrapper" style="background:url(<?php echo $view_bg_image; if (isset($_GET['question'])) { echo '-' . $_GET['question']; } ?> .jpg) no-repeat"> <div id="content"> <?php