Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3378 Rev 3379
Línea 245... Línea 245...
245
            
245
            
Línea 246... Línea 246...
246
 
246
 
-
 
247
            $password  = md5('user-' . $currentUser->uuid . '-post-' . $post->uuid . '-timestamp-' . $timestamp . '-rand-' . $rand . '-share-key-' . $currentUser->share_key) ;
-
 
248
            
247
            $password  = md5('user-' . $currentUser->uuid . '-post-' . $post->uuid . '-timestamp-' . $timestamp . '-rand-' . $rand . '-share-key-' . $currentUser->share_key) ;
249
            
248
            
250
            $params = [
249
            
251
                'type' => 'post',
250
            $query = [
252
                'code' => $post->uuid,
251
                'll0' => $currentUser->uuid, 
-
 
252
                'll1' => $timestamp, 
253
                'user' => $currentUser->uuid,
Línea 253... Línea -...
253
                'll2' => $rand, 
-
 
254
                'll3' => $password,
254
                'timestamp' => $timestamp,
-
 
255
                'rand' => $rand,
255
                
256
                'password' => $password,
256
            ]; 
257
            ];
257
            
258
            
258
            $share_url = $this->url()->fromRoute('share',  ['type' => 'post', 'code' => $post->uuid], ['force_canonical' => true, 'query' => $query ]);
259
            
259
    
260
            $share_external_url = $this->url()->fromRoute('share', $params  , ['force_canonical' => true]);
260
    
261
           
Línea 271... Línea 272...
271
                'date' => $post->date,
272
                'date' => $post->date,
272
                'status' => $post->status,
273
                'status' => $post->status,
273
                'image' => $post->image,
274
                'image' => $post->image,
274
                'file' => $post->file,
275
                'file' => $post->file,
275
                'added_on' => $post->added_on,
276
                'added_on' => $post->added_on,
276
                'share_external_url' => $share_url,
277
                'share_external_url' =>  $share_external_url,
Línea 277... Línea 278...
277
                
278
                
278
            ]);
279
            ]);
Línea 279... Línea 280...
279
            return $viewModel;
280
            return $viewModel;
Línea 295... Línea 296...
295
            $currentUserPlugin = $this->plugin('currentUserPlugin');
296
            $currentUserPlugin = $this->plugin('currentUserPlugin');
296
            $currentUser = $currentUserPlugin->getUser();
297
            $currentUser = $currentUserPlugin->getUser();
Línea 297... Línea 298...
297
            
298
            
298
            $code       = $this->params()->fromRoute('code');
299
            $code       = $this->params()->fromRoute('code');
-
 
300
            $type       = $this->params()->fromRoute('type');
-
 
301
            $user       = $this->params()->fromRoute('user');
-
 
302
            $timestamp  = intval($this->params()->fromRoute('timestamp'), 10);
-
 
303
            $rand       = intval($this->params()->fromRoute('rand'), 10);
-
 
304
            $password   = $this->params()->fromRoute('password');
-
 
305
            
Línea 299... Línea -...
299
            $type       = $this->params()->fromRoute('type');
-
 
300
            
-
 
301
            /*
-
 
302
            $user       = $this->params()->fromQuery('ll0');
-
 
303
            $timestamp  = intval($this->params()->fromQuery('ll1'), 10);
-
 
304
            $rand       = intval($this->params()->fromQuery('ll2'), 10);
306
            
Línea 305... Línea 307...
305
            $password   = $this->params()->fromQuery('ll3');
307
            
Línea 306... Línea 308...
306
            $checkpassword = '';
308
            $checkpassword = '';
307
                 
309
                 
308
            
310
            /*
309
            
311