[ Index ] |
|
Code source de DokuWiki 2006-11-06 |
1 <?php 2 if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/'); 3 define('DOKU_MEDIADETAIL',1); 4 require_once (DOKU_INC.'inc/init.php'); 5 require_once (DOKU_INC.'inc/common.php'); 6 require_once (DOKU_INC.'inc/lang/en/lang.php'); 7 require_once(DOKU_INC.'inc/lang/'.$conf['lang'].'/lang.php'); 8 require_once (DOKU_INC.'inc/JpegMeta.php'); 9 require_once (DOKU_INC.'inc/html.php'); 10 require_once (DOKU_INC.'inc/template.php'); 11 require_once (DOKU_INC.'inc/auth.php'); 12 //close session 13 session_write_close(); 14 15 $IMG = getID('media'); 16 $ID = cleanID($_REQUEST['id']); 17 18 if($conf['allowdebug'] && $_REQUEST['debug']){ 19 print '<pre>'; 20 foreach(explode(' ','basedir userewrite baseurl useslash') as $x){ 21 print '$'."conf['$x'] = '".$conf[$x]."';\n"; 22 } 23 foreach(explode(' ','DOCUMENT_ROOT HTTP_HOST SCRIPT_FILENAME PHP_SELF '. 24 'REQUEST_URI SCRIPT_NAME PATH_INFO PATH_TRANSLATED') as $x){ 25 print '$'."_SERVER['$x'] = '".$_SERVER[$x]."';\n"; 26 } 27 print "getID('media'): ".getID('media')."\n"; 28 print "getID('media',false): ".getID('media',false)."\n"; 29 print '</pre>'; 30 } 31 32 $ERROR = false; 33 // check image permissions 34 $AUTH = auth_quickaclcheck($IMG); 35 if($AUTH >= AUTH_READ){ 36 // check if image exists 37 $SRC = mediaFN($IMG); 38 if(!@file_exists($SRC)){ 39 //doesn't exist! 40 41 } 42 }else{ 43 // no auth 44 $ERROR = p_locale_xhtml('denied'); 45 } 46 47 /*if(!$ERROR){ 48 // load EXIF/IPTC/image details 49 $INFO = array(); 50 $INFO['std'][''] 51 imagesize 52 }*/ 53 54 55 //start output and load template 56 header('Content-Type: text/html; charset=utf-8'); 57 include(template('detail.php')); 58 59 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Tue Apr 3 20:47:31 2007 | par Balluche grâce à PHPXref 0.7 |