Lines Matching refs:rev

947  * @param string|int $rev   revision timestamp or empty string
949 function media_tab_view($image, $ns, $auth=null, $rev='') { argument
954 $meta = new JpegMeta(mediaFN($image, $rev));
955 media_preview($image, $auth, $rev, $meta);
956 media_preview_buttons($image, $auth, $rev);
957 media_details($image, $auth, $rev, $meta);
1015 * @param int|string $rev revision timestamp or empty string
1020 function media_preview($image, $auth, $rev='', $meta=false) { argument
1022 $size = media_image_preview_size($image, $rev, $meta);
1029 if ($rev) {
1030 $more['rev'] = $rev;
1055 * @param string|int $rev revision timestamp, or empty string
1057 function media_preview_buttons($image, $auth, $rev = '') { argument
1062 if ($auth >= AUTH_DELETE && !$rev && file_exists(mediaFN($image))) {
1078 if ($auth >= $auth_ow && !$rev) {
1093 …if ($auth >= AUTH_UPLOAD && $rev && $conf['mediarevisions'] && file_exists(mediaFN($image, $rev)))…
1102 $form->setHiddenField('rev', $rev);
1118 * @param int|string $rev
1123 function media_image_preview_size($image, $rev, $meta, $size = 500) { argument
1124 …if (!preg_match("/\.(jpe?g|gif|png)$/", $image) || !file_exists(mediaFN($image, $rev))) return fal…
1126 $info = getimagesize(mediaFN($image, $rev));
1193 * @param string|int $rev revision timestamp, or empty string
1196 function media_details($image, $auth, $rev='', $meta=false) { argument
1199 if (!$meta) $meta = new JpegMeta(mediaFN($image, $rev));
1483 * @param int $rev revision timestamp or empty string
1489 function media_restore($image, $rev, $auth){ argument
1494 if (!$rev || !file_exists(mediaFN($image, $rev))) return false;
1496 $res = media_upload_finish(mediaFN($image, $rev),