Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3370 | Rev 3372 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3370 Rev 3371
Línea 246... Línea 246...
246
 
246
 
Línea 247... Línea 247...
247
            $password  = md5('user-' . $currentUser->uuid . '-post-' . $post->uuid . '-timestamp-' . $timestamp . '-rand-' . $rand . '-share-key-' . $currentUser->share_key) ;
247
            $password  = md5('user-' . $currentUser->uuid . '-post-' . $post->uuid . '-timestamp-' . $timestamp . '-rand-' . $rand . '-share-key-' . $currentUser->share_key) ;
248
            
248
            
249
            
249
            
250
            $query = [
250
            $query = [
251
                'll1' => $currentUser->uuid, 
251
                'user' => $currentUser->uuid, 
Línea 252... Línea 252...
252
                'll2' => $timestamp, 
252
                'timestamp' => $timestamp, 
Línea 253... Línea 253...
253
                'll3' => $rand, 
253
                'rand' => $rand, 
Línea 295... Línea 295...
295
            $currentUserPlugin = $this->plugin('currentUserPlugin');
295
            $currentUserPlugin = $this->plugin('currentUserPlugin');
296
            $currentUser = $currentUserPlugin->getUser();
296
            $currentUser = $currentUserPlugin->getUser();
Línea 297... Línea 297...
297
            
297
            
298
            $code       = $this->params()->fromRoute('code');
298
            $code       = $this->params()->fromRoute('code');
299
            $type       = $this->params()->fromRoute('type');
299
            $type       = $this->params()->fromRoute('type');
300
            $user       = $this->params()->fromQuery('ll1');
300
            $user       = $this->params()->fromQuery('user');
301
            $timestamp  = intval($this->params()->fromQuery('ll1'), 10);
301
            $timestamp  = intval($this->params()->fromQuery('timestamp'), 10);
302
            $rand       = intval($this->params()->fromQuery('ll2'), 10);
302
            $rand       = intval($this->params()->fromQuery('rand'), 10);
303
            $password   = $this->params()->fromQuery('ll3');
303
            $password   = $this->params()->fromQuery('password');
Línea 304... Línea 304...
304
            $checkpassword = '';
304
            $checkpassword = '';
305
                 
-
 
306
            
305
                 
307
            
306
            
308
            $userCheck = '';
307
            
309
 
308
            $userCheck = '';
310
            if($user && $timestamp > 0 && $rand > 0 && $password) {
309
            if($user && $timestamp > 0 && $rand > 0 && $password) {
Línea 321... Línea 320...
321
                    'data' => 'ERROR_UNAUTHORIZED'
320
                    'data' => 'ERROR_UNAUTHORIZED'
322
                ];
321
                ];
Línea 323... Línea 322...
323
                
322
                
324
                return new JsonModel($data);
323
                return new JsonModel($data);
325
            }
-
 
326
 
324
            }
327
            
-
 
Línea 458... Línea 455...
458
                    $viewModel->setTemplate('leaders-linked/error/404.phtml');
455
                    $viewModel->setTemplate('leaders-linked/error/404.phtml');
459
                    return $viewModel;            
456
                    return $viewModel;            
460
                }
457
                }
461
            }
458
            }
Línea -... Línea 459...
-
 
459
           
-
 
460
            
-
 
461
            print_r([ 'share_image' => $share_image,
-
 
462
                'share_url' => $share_url,
-
 
463
                'share_title' => strip_tags($share_title),
Línea 462... Línea 464...
462
           
464
                'share_description' => strip_tags($share_description)]); exit;
463
 
465