idMember = $_SESSION[_HAMACA_MEMBER_SESSION]->member->idMember; $obra = $bonus->obraLibre($_GET[_ID_PARAM]); if ($obra == 1) { include_once("check_session1.php"); } else { include_once("check_session2.php"); } if ($bonus->hasActiveBonus() || $obra == 1){ //Tiene bonos activos:Redirigir a visionado íntegro if ($_GET[_TYPE_PARAM] == _PACK) { $url = _PACK_URL; } elseif($_GET[_TYPE_PARAM] == _PLAY){ $url = _PLAY_URL; } if ($url != ""){ if (isset($_GET[_ID_PARAM])){ $_SESSION[_ID_PARAM] = $_GET[_ID_PARAM]; $url .= "?" . _MODE_PARAM . "=" . _PAY_MODE; } } } else{ //No tiene bonos activos:Redirigir a página de listado de bonos $url = _SUBMENU_MEMBERS_BONUS_URL; $_SESSION["_HAMACA_RESULT"] = array(); $_SESSION["_HAMACA_RESULT"][] = "_LIT_MEMBERS_NO_ACTIVE_BONUS_ERROR"; } if ($url == ""){ $url = $_SERVER['HTTP_REFERER']; if (!isset($url) || $url == ""){ $url = _MENU_HOME_URL; } } navigate($url); ?>