Changeset 902


Ignore:
Timestamp:
Apr 23, 2015 8:59:35 AM (10 years ago)
Author:
quyenla
Message:

webroot

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  
    7171                $thumnail = $info['dirname']."/".$info['filename']."_thumb.jpg";
    7272                imagejpeg($image_p,$thumnail, 30);
    73                 return str_replace("/srv/www/violet/web/", "", $thumnail);
     73                return str_replace($_SERVER['DOCUMENT_ROOT'], "", $thumnail);
    7474            } else {
    7575                return "";
  • pro-violet-viettel/www/deploy/api/platform/modules/space/actions/actions.class.php

    r894 r902  
    3131        $thumnail = $thumnailPath . $thumbnailfileName;
    3232        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;
    3833    }
    3934
  • pro-violet-viettel/www/deploy/api/platform/modules/space/templates/dirSuccess.php

    r894 r902  
    3636          $names = explode(".", $name);
    3737          $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";
    4440      }
    4541      else
Note: See TracChangeset for help on using the changeset viewer.