Changeset 902 for pro-violet-viettel
- Timestamp:
- Apr 23, 2015 8:59:35 AM (10 years ago)
- Location:
- pro-violet-viettel/www/deploy/api/platform
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/www/deploy/api/platform/lib/violetUtil.class.php
r894 r902 71 71 $thumnail = $info['dirname']."/".$info['filename']."_thumb.jpg"; 72 72 imagejpeg($image_p,$thumnail, 30); 73 return str_replace( "/srv/www/violet/web/", "", $thumnail);73 return str_replace($_SERVER['DOCUMENT_ROOT'], "", $thumnail); 74 74 } else { 75 75 return ""; -
pro-violet-viettel/www/deploy/api/platform/modules/space/actions/actions.class.php
r894 r902 31 31 $thumnail = $thumnailPath . $thumbnailfileName; 32 32 return imagejpeg($image_p, $thumnailPath . $thumbnailfileName, 30); 33 }34 35 public function executeTest($pathToImage="") {36 echo violetUtil::createThumb("/srv/www/violet/web/uploads/space/4/4067/1.jpg");37 return sfView::NONE;38 33 } 39 34 -
pro-violet-viettel/www/deploy/api/platform/modules/space/templates/dirSuccess.php
r894 r902 36 36 $names = explode(".", $name); 37 37 $filePath = $tblres->getFullFilename(); 38 $filePath = str_replace('/srv/www/violet/web', '', $filePath); 39 $filePath = str_replace($name, "", $fileName). $names[0]."_thumb.jpg"; 40 41 42 $thumbnail= $filePath; 43 38 $filePath = str_replace($_SERVER['DOCUMENT_ROOT'], '', $filePath); 39 $thumbnail = str_replace($name, "", $fileName). $names[0]."_thumb.jpg"; 44 40 } 45 41 else
Note: See TracChangeset
for help on using the changeset viewer.