Exemplo n.º 1
0
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;
    }
}
Exemplo n.º 2
0
    step_2($en_ID);
    step_3($en_ID);
    toLog('completedapplication', 'merchant', '', $en_ID);
    $sql = "update cs_companydetails set cd_completion=3 where userId='{$userId}'";
    sql_query_write($sql) or dieLog(mysql_error() . " ~{$sql}");
    en_status_change_notify($en_ID);
    toLog('requestrates', 'merchant', '', $curUserInfo['userId']);
    beginTable();
    echo "<b>You have successfully completed your Merchant Application. Please proceed to the Request Rates section to submit your Rates Request.</b>";
    endTable("Merchant Application Complete!", "merchantContract.php", true, false, true);
} else {
    if ($step == 3) {
        step_3($en_ID, false);
    } else {
        if ($step == 2) {
            step_2($en_ID, false);
        } else {
            step_1($en_ID, false);
        }
    }
}
die;
function draw_step_buttons($step = 1, $disable = false)
{
    if ($disable) {
        $disabled = ' disabled';
    } else {
        $disabled = '';
    }
    $buttons[$step]['html'] .= "style='background-color:#333333'";
    $buttons[1]['html'] .= $disabled;
Exemplo n.º 3
0
// Set up some globals
$minor = ocp_version_minor();
$VERSION = strval(ocp_version());
if ($minor != '') {
    $VERSION .= (is_numeric($minor[0]) ? '.' : '-') . $minor;
}
$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);
Exemplo n.º 4
0
<?php 
// Get the step
$step = isset($_GET['step']) && $_GET['step'] != '' ? $_GET['step'] : 0;
// Which step?
switch ($step) {
    case '1':
        check_installed_file_exists() ? header('Location: ../magmi.php') : "";
        // Show progress bar
        show_progress(1);
        // 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();
}
Exemplo n.º 5
0
        });
	</script>';
    return $script;
}
$bg_image = array('image-0', 'image-1', 'image-2', 'image-3', 'image-4', 'image-5');
$step = $_GET['step'];
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'])) {
Exemplo n.º 6
0
function alcyone_slider_edit_page()
{
    if (!current_user_can('edit_theme_options')) {
        wp_die(__('You do not have permission to customize rotating headers.'));
    }
    $step = alcyone_admin_step();
    if (1 == $step) {
        step_1($_GET['banner']);
    } elseif (2 == $step) {
        step_2($_GET['banner']);
    } elseif (3 == $step) {
        step_3($_GET['banner']);
    }
}
Exemplo n.º 7
0
error_reporting(0);
$api_version = "/api/v1";
$base_url = "";
if (file_exists('config.php')) {
    require "config.php";
    // $base_url = "https://".RS_SUBDOMAIN.".repairshopr.co";
    $base_url = "https://" . RS_SUBDOMAIN . ".repairshopr.com";
}
$step = isset($_GET['step']) && $_GET['step'] != '' ? $_GET['step'] : '';
switch ($step) {
    case '1':
        step_1();
        break;
    case '2':
        $type = isset($_GET['type']) && $_GET['type'] != '' ? $_GET['type'] : '';
        step_2($type);
        break;
    default:
        step_1();
}
?>
<body>
  <div class="loading" align="center">
    Please wait...<br />
    <br />
    <img src="loader.gif" alt="" />
  </div>
<?php 
function step_1()
{
    if (file_exists('../repair/deps.php')) {
Exemplo n.º 8
0
                     echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"2\" border=\"0\" align=\"center\">\n" . "<tr bgcolor=\"#007ABE\"><td colspan=\"2\" style=\"font-size:15px; text-align:center;color:White;\"><B>FEHLER</b></td></tr>\n" . "<tr style=\"color:red; font-weigth:bold;\"><td>FEHLER: Datenbankverbindung fehlgeschlagen!</td></tr>\n" . "<tr><td colspan=\"2\"><br><br></td></tr></table>\n";
                     unlink($configdatei);
                     step_1();
                 } else {
                     mysql_set_charset("utf8mb4");
                     if (!($select = mysql_select_db($_POST['chat']['dbase'], $connect))) {
                         if (!($create_db = mysql_query("CREATE DATABASE " . $_POST['chat']['dbase'], $connect))) {
                             echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"2\" border=\"0\" align=\"center\">\n" . "<tr bgcolor=\"#007ABE\"><td colspan=\"2\" style=\"font-size:15px; text-align:center;color:White;\"><B>FEHLER</b></td></tr>\n" . "<tr style=\"color:red; font-weigth:bold;\"><td>FEHLER: Anlegen der Datenbank misslungen!</td></tr>\n" . "<tr><td colspan=\"2\"><br><br></td></tr></table>\n";
                             unlink($configdatei);
                             step_1();
                         } else {
                             $select = mysql_select_db($_POST['chat']['dbase'], $connect);
                             step_2($connect, $select, $_POST['chat'], $fp);
                         }
                     } else {
                         step_2($connect, $select, $_POST['chat'], $fp);
                     }
                 }
             }
         }
     } else {
         echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"2\" border=\"0\" align=\"center\">\n" . "<tr bgcolor=\"#007ABE\"><td colspan=\"2\" style=\"font-size:15px; text-align:center;color:White;\"><B>FEHLER</b></td></tr>\n" . "<tr style=\"color:red; font-weigth:bold;\"><td>FEHLER-Die Datei config.php existiert bereits!</td></tr>\n" . "<tr><td colspan=\"2\"><br><br></td></tr></table>\n";
         step_1();
     }
     break;
 default:
     if (file_exists($configdatei)) {
         echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"2\" border=\"0\" align=\"center\">\n" . "<tr bgcolor=\"#007ABE\"><td colspan=\"2\" style=\"font-size:15px; text-align:center;color:White;\"><B>FEHLER</b></td></tr>\n" . "<tr style=\"color:red; font-weigth:bold;\"><td>FEHLER-Die Datei config.php existiert bereits!</td></tr>\n" . "<tr><td colspan=\"2\"><br><br></td></tr></table>\n";
     } else {
         step_1();
     }