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