Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3353 Rev 3355
Línea 272... Línea 272...
272
           
272
           
Línea 273... Línea 273...
273
            print_r($_SERVER); exit;
273
            print_r($_SERVER); exit;
274
            
274
            
275
            
275
            
276
            if(strpos(strtolower($_SERVER['REQUEST_SCHEME']), 'https') === false) {
276
            if(strpos(strtolower($_SERVER['REQUEST_SCHEME']), 'https') === false) {
277
                $base_share_image = 'http://' . $_SERVER['HTTP_HOST']; 
277
                $base_share = 'http://' . $_SERVER['HTTP_HOST']; 
Línea 278... Línea -...
278
            } else {
-
 
-
 
278
            } else {
279
                $base_share_image = 'https://' . $_SERVER['HTTP_HOST'];
279
                $base_share = 'https://' . $_SERVER['HTTP_HOST'];
280
            }
280
            }
281
            
281
            
282
        
282
        
283
            
283
            
284
            
284
            $share_url          = $base_share . $_SERVER['REQUEST_URI'];
Línea 336... Línea 336...
336
               
336
               
Línea 337... Línea 337...
337
                        
337
                        
338
                        if(!file_exists($target)) {
338
                        if(!file_exists($target)) {
Línea 339... Línea 339...
339
                            
339
                            
340
                            copy($source, $target);
340
                            copy($source, $target);
Línea 341... Línea 341...
341
                            $share_image =  $base_share_image . '/images/feed/' . $feed->uuid . '/' . $image_name;
341
                            $share_image =  $base_share . '/images/feed/' . $feed->uuid . '/' . $image_name;
Línea 390... Línea 390...
390
                        
390
                        
Línea 391... Línea 391...
391
                        
391
                        
392
                        if(!file_exists($target)) {
392
                        if(!file_exists($target)) {
Línea 393... Línea 393...
393
                            
393
                            
394
                            copy($source, $target);
394
                            copy($source, $target);
Línea 395... Línea 395...
395
                            $share_image =  $base_share_image . '/images/post/' . $post->uuid . '/' . $post->image;
395
                            $share_image =  $base_share . '/images/post/' . $post->uuid . '/' . $post->image;
396
                            
396
                            
397
                        } else {
397
                        } else {
Línea 410... Línea 410...
410
                    $viewModel->setTemplate('leaders-linked/error/404.phtml');
410
                    $viewModel->setTemplate('leaders-linked/error/404.phtml');
411
                    return $viewModel;            
411
                    return $viewModel;            
412
                }
412
                }
413
            }
413
            }
Línea 414... Línea -...
414
           
-
 
415
            $share_url = ''; //$this->url()->fromRoute('share', ['type' => $type, 'code' => $code ], ['force_canonical' => true, 'query' => ['user' => $currentUser->uuid]]);
414
           
Línea 416... Línea 415...
416
            
415
 
417
            
416
            
418
            
417