Ignore:
Timestamp:
Mar 18, 2015 4:29:38 PM (10 years ago)
Author:
quyenla
Message:

Preview

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/www/deploy/api/platform/modules/space/actions/actions.class.php

    r792 r793  
    265265                if ($tblfile)
    266266                    $tblfile->delete();
     267               
     268               
     269               
    267270                break;
    268271        }
     
    308311                if ($tblfile)
    309312                    $tblfile->delete();
     313                $dirPath="previews/$userId/$id/";
     314                array_map('unlink', glob("$dirPath/*.*"));
     315                rmdir($dirPath);
    310316            }
    311317        }
     
    413419
    414420       
    415         $url = "https://docs.google.com/gview?url=" . $fileurl . "&embedded=true";
    416        
     421        $url = "https://docs.google.com/gview?url=" .urlencode($fileurl) . "";
     422        file_put_contents("1.html", $url);
    417423        $content="";
    418424        $ch = curl_init();
     
    421427        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    422428        $content = curl_exec($ch);
    423        
     429       file_put_contents("1.html", $content);
    424430        preg_match("'img\?id\\\u003d(.*?)%3D'si", $content, $matches);
    425431        $count=0;
Note: See TracChangeset for help on using the changeset viewer.