Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 1 Rev 283
Línea 278... Línea 278...
278
            
278
            
279
            $target_filename    = 'user-' . uniqid() . '.png';
279
            $target_filename    = 'user-' . uniqid() . '.png';
280
            list( $target_width, $target_height ) = explode('x', $this->config['leaderslinked.image_sizes.user_size']);
280
            list( $target_width, $target_height ) = explode('x', $this->config['leaderslinked.image_sizes.user_size']);
281
            $source             = $temp_file;
281
            $source             = $temp_file;
-
 
282
            $crop_to_dimensions = true;
-
 
283
            $unlink_source = true;
-
 
284
            
-
 
285
            $image = Image::getInstance($this->config);
-
 
286
            $target_path = $image->getStorage()->getPathUser();
282
            $crop_to_dimensions = true;
287
            
-
 
288
            if($image->uploadImageChangeSize($source, $target_path, $user->uuid, $target_filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) {
283
            if(Image::uploadImage($source, $target_path, $target_filename, $target_width, $target_height, $crop_to_dimensions)) {
289
 
284
                $user->image = $target_filename;
290
                $user->image = $target_filename;
285
                $userMapper->updateImage($user);
291
                $userMapper->updateImage($user);
286
            } 
292
            } 
287
        }
293
        }
Línea 382... Línea 388...
382
 
388
 
Línea 383... Línea 389...
383
    }
389
    }
384
    
390
    
385
    public function facebookDeleteAction()
-
 
386
    {
-
 
387
        error_log('---START FACEBOOK DELETE---');
-
 
388
        error_log('GET');
-
 
389
        error_log(print_r($_GET, true));
-
 
390
        error_log('POST');
-
 
Línea 391... Línea 391...
391
        error_log(print_r($_POST, true));
391
    public function facebookDeleteAction()
392
        error_log('---END FACEBOOK DELETE---');
392
    {
393
 
393