Lines Matching full:file

3  * PhotoGallery media passthrough file
44 list($STATUS, $STATUSMESSAGE) = checkFileStatus($MEDIA, $FILE, $REV, $WIDTH, $HEIGHT);
49 'file' => $FILE,
50 'orig' => $FILE,
62 // handle the file status
87 $data['file'] = $FILE = media_photogallery_image($data['file'],$EXT,$WIDTH,$HEIGHT,$opt); variable
90 $data['file'] = $FILE = media_crop_image($data['file'], $EXT, $WIDTH, $HEIGHT); variable
92 $data['file'] = $FILE = media_resize_image($data['file'], $EXT, $WIDTH, $HEIGHT); variable
97 // finally send the file to the client
100 …sendFile($data['file'], $data['mime'], $data['download'], $data['cache'], $data['ispublic'], $data…
105 $FILE = PHOTOGALLERY_IMAGES_FILE.$INPUT->str('src'); variable
106 list($EXT, $MIME, $DL) = mimetype($FILE, false);
107 list($STATUS, $STATUSMESSAGE) = checkLocalFileStatus($FILE, $WIDTH, $HEIGHT);
113 $FILE = media_photogallery_image($FILE,$EXT,$WIDTH,$HEIGHT,$opt); variable
115 $FILE = media_crop_image($FILE, $EXT, $WIDTH, $HEIGHT); variable
116 sendFile($FILE, $MIME, $DL, $CACHE, false, $FILE);
122 * Check local image file for preconditions and return correct status code
125 * WRITE: FILE, array( STATUS, STATUSMESSAGE )
129 * @param string $file reference to the file variable
134 function checkLocalFileStatus($file, $width=0, $height=0) { argument
137 //media to local file
138 if(empty($file)) {
142 if (($width || $height) && media_get_token($file, $width, $height) !== $INPUT->str('tok')) {
146 //check file existance
147 if(!file_exists($file)) {
154 function media_photogallery_image($file, $ext, $w, $h, $opt){ argument
164 $phpThumb->setSourceFilename($file);
181 …$output_filename = getCacheName($file,'.media.'.$w.'x'.$h.'.photogallery.'.$phpThumb->config_outpu…