Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 14680 Rev 14681
Línea 462... Línea 462...
462
     * @return boolean
462
     * @return boolean
463
     */
463
     */
464
    public  static function uploadImage($source, $target_path, $target_filename, $target_width, $target_height )
464
    public  static function uploadImage($source, $target_path, $target_filename, $target_width, $target_height )
465
    {
465
    {
466
        try {
466
        try {
-
 
467
            
-
 
468
            $target_width = intval($target_width, 10);
-
 
469
            $target_height = intval($target_height, 10);
-
 
470
            
467
            $data = file_get_contents($source);
471
            $data = file_get_contents($source);
468
            $img = imagecreatefromstring($data);
472
            $img = imagecreatefromstring($data);
Línea 469... Línea 473...
469
            
473
            
470
            if(!file_exists($target_path)) {
474
            if(!file_exists($target_path)) {