public function init()
 {
     parent::init();
     $this->_numero = $this->obtenerNumero();
     if ($this->_numero != '') {
         $registroUsuario = new App_Model_Registro();
         $post = $registroUsuario->getusuario($this->_numero);
         if (!empty($post["nombres"])) {
             $this->view->usuario = $post["nombres"];
         }
     }
     $this->_GetResultSoap = $this->_helper->getHelper('GetResultSoap');
     $SoapMusica = $this->_GetResultSoap->_seccionMusicaTop();
     $SoapTonos = $this->view->SoapTonos = $this->_GetResultSoap->_seccionTonos();
     $config = $this->getConfig();
     $ua = $_SERVER['HTTP_USER_AGENT'];
     $model = new App_Model_ConfigPerfil();
     $model->saveCdr($ua, $config->app->siteUrl);
     $estado = $this->_getParam('estado', '');
     if (isset($estado) && $estado != '') {
         $this->mensaje($estado);
         $this->_redirect('/');
     }
     $this->forward($this->mobileDetect());
     $this->view->numero = $this->_numero;
     $this->view->perfil = $this->mobileDetect();
     $this->view->SoapMusica = $SoapMusica->seccionMusicaTopResult->albumDetalleBE;
     $this->view->SoapTonos = $SoapTonos->seccionTonosResult->albumDetalleBE;
 }
 public function goAction()
 {
     $_getVars = $_GET;
     $_key = array_keys($_getVars);
     $_valor = array_values($_getVars);
     $numGet = count($_getVars);
     $bucleGet = $numGet - 1;
     for ($x = 0; $x <= $bucleGet; $x++) {
         if ($x == 0) {
             $link .= $_valor[$x];
         } else {
             $link .= "&" . $_key[$x] . "=" . $_valor[$x];
         }
     }
     $ua = $_SERVER['HTTP_USER_AGENT'];
     $model = new App_Model_ConfigPerfil();
     $model->saveCdr($ua, $link);
     header("Location: " . $link);
     exit;
 }