Esempio n. 1
0
 public function smsLinkAction()
 {
     $ObtenerNumero = new Core_Utils_Utils();
     $telefono = $ObtenerNumero->obtenerNumero();
     if ($this->_request->isGet()) {
         $codigo = $this->_getParam('i', '');
         try {
             if (isset($codigo) && $codigo != '' && $telefono != '') {
                 $resultSms = $this->_GetResultSoap->_obtenerSMSLinkEnFulltracks($codigo);
                 Zend_Debug::dump($resultSms);
                 $responseSmnLinkFt = $resultSms->obtenerSMSLinkEnFulltracksResult;
                 if ($responseSmnLinkFt->esValido == true && $responseSmnLinkFt->numuser == $telefono) {
                     $this->_redirect('/pe/fulltracks');
                 } else {
                     $this->_redirect('http://m.entretenimiento.entel.pe');
                 }
             } else {
                 $this->_redirect('http://m.entretenimiento.entel.pe');
             }
         } catch (Exception $e) {
             $this->_redirect('http://m.entretenimiento.entel.pe');
         }
     } else {
         $this->_redirect('http://m.entretenimiento.entel.pe');
     }
 }
Esempio n. 2
0
 function obtenerPerfilNumero()
 {
     $ObtenerNumero = new Core_Utils_Utils();
     $Perfil = $ObtenerNumero->obtenerPerfil();
     $telefono = $ObtenerNumero->obtenerNumero();
     $datos = array('telefono' => $telefono, 'perfil' => $Perfil, 'fecha' => date('Y-m-d'), 'hora' => date('H:i:s'));
     return $datos;
 }