Changeset 793 for pro-violet-viettel/www/deploy/api
- Timestamp:
- Mar 18, 2015 4:29:38 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/www/deploy/api/platform/modules/space/actions/actions.class.php
r792 r793 265 265 if ($tblfile) 266 266 $tblfile->delete(); 267 268 269 267 270 break; 268 271 } … … 308 311 if ($tblfile) 309 312 $tblfile->delete(); 313 $dirPath="previews/$userId/$id/"; 314 array_map('unlink', glob("$dirPath/*.*")); 315 rmdir($dirPath); 310 316 } 311 317 } … … 413 419 414 420 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); 417 423 $content=""; 418 424 $ch = curl_init(); … … 421 427 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 422 428 $content = curl_exec($ch); 423 429 file_put_contents("1.html", $content); 424 430 preg_match("'img\?id\\\u003d(.*?)%3D'si", $content, $matches); 425 431 $count=0;
Note: See TracChangeset
for help on using the changeset viewer.