[insert_php]
if (!session_id()) {
session_start();
}

if (!isset($_SESSION[‘lv_step’])) {
$_SESSION[‘lv_step’] = 1;
}
if (!isset($_SESSION[‘lv_stage2_enabled’])) {
$_SESSION[‘lv_stage2_enabled’] = 0;
}

if (isset($_GET[‘step’])) {
$lv_step = intval($_GET[‘step’]);
} else {
$lv_step = $_SESSION[‘lv_step’];
}

$lv_db = new mysqli(«212.48.92.137», «admin_crmlope», «Mhnx3737», «admin_crm»);
$lv_db_check = true;
if ($lv_db->connect_errno)
$lv_db_check = false;
$lv_db->set_charset(«utf8»);

if ($lv_db_check) {

include ‘wp-content/uploads/tpv/tpl/header.php’;

if ($lv_step <= $_SESSION['lv_step']) { switch ($lv_step) { case 0: $_SESSION['lv_step'] = 1; $_SESSION['lv_stage2_enabled'] = 0; case 1: include 'wp-content/uploads/tpv/application/step1.php'; break; case 2: if($_SESSION['lv_stage2_enabled']){ include 'wp-content/uploads/tpv/application/step2.php'; } else { include 'wp-content/uploads/tpv/application/step'.$_SESSION['lv_step'].'.php'; } break; case 3: include 'wp-content/uploads/tpv/application/step3.php'; break; case 4: break; default: include 'wp-content/uploads/tpv/tpl/step1.php'; } } else { include 'wp-content/uploads/tpv/application/step'.$_SESSION['lv_step'].'.php'; } include 'wp-content/uploads/tpv/tpl/footer.php'; $lv_db->close();

} else {

echo(‘

Error de Conexión, por favor, inténtelo de nuevo más tarde.

‘);
}

[/insert_php]