1<?php 2 if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/'); 3 require_once(DOKU_INC.'inc/init.php'); 4 require_once(DOKU_INC.'inc/common.php'); 5 require_once(DOKU_INC.'inc/lang/en/lang.php'); 6 require_once(DOKU_INC.'inc/lang/'.$conf['lang'].'/lang.php'); 7 require_once(DOKU_INC.'inc/JpegMeta.php'); 8 require_once(DOKU_INC.'inc/html.php'); 9 require_once(DOKU_INC.'inc/template.php'); 10 require_once(DOKU_INC.'inc/auth.php'); 11 //close session 12 session_write_close(); 13 14 $IMG = cleanID($_REQUEST['media']); 15 $ID = getID(); 16 17 $ERROR = false; 18 // check image permissions 19 $AUTH = auth_quickaclcheck($IMG); 20 if($AUTH >= AUTH_READ){ 21 // check if image exists 22 $SRC = mediaFN($IMG); 23 if(!file_exists($SRC)){ 24 //doesn't exist! 25 26 } 27 }else{ 28 // no auth 29 $ERROR = p_locale_xhtml('denied'); 30 } 31 32 /*if(!$ERROR){ 33 // load EXIF/IPTC/image details 34 $INFO = array(); 35 $INFO['std'][''] 36 imagesize 37 }*/ 38 39 40 //start output and load template 41 header('Content-Type: text/html; charset=utf-8'); 42 include(template('detail.php')); 43 44 //restore old umask 45 umask($conf['oldumask']); 46 47?> 48