Changeset 937
- Timestamp:
- Jul 8, 2015 5:41:15 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/www/deploy/api/platform/modules/space/actions/actions.class.php
r936 r937 154 154 155 155 $ext = strtolower($tblfile->getFileType()); 156 $filePath="";157 $thumbnail="";158 156 if (in_array($ext, array("jpg","png","jpeg","gif",""))) 159 157 { 160 $names = explode(".", $name); 161 $filePath = $tblres->getFullFilename(); 162 $filePath = str_replace($_SERVER['DOCUMENT_ROOT'], '', $filePath); 163 $thumbnail = str_replace($name, "", $fileName). $names[0].'_thumb.'.$ext; 164 $thumbnail= ltrim ($thumbnail, '/'); 158 $names = explode(".", $fileName); 159 $filePath = $res->getFullFilename(); 160 $filePath = str_replace($_SERVER['DOCUMENT_ROOT'], "http://".$_SERVER['HTTP_HOST'], $filePath); 161 $filePath = str_replace($fileName, '', $filePath); 162 $thumbnail = $filePath. $names[0].'_thumb.'.$ext; 163 //$thumbnail= ltrim ($thumbnail, '/'); 165 164 } 166 165
Note: See TracChangeset
for help on using the changeset viewer.