Warning: Cannot modify header information - headers already sent by (output started at /var/www/jonas-eriksen.dk/pic/private/index.php:1) in /var/www/jonas-eriksen.dk/pic/private/index.php on line 215
str('id')); $REV = $INPUT->int('rev'); // this makes some general info available as well as the info about the // "parent" page $INFO = array_merge(pageinfo(),mediainfo()); $tmp = array(); Event::createAndTrigger('DETAIL_STARTED', $tmp); //close session session_write_close(); $ERROR = false; // check image permissions $AUTH = auth_quickaclcheck($IMG); if($AUTH >= AUTH_READ){ // check if image exists $SRC = mediaFN($IMG,$REV); if(!file_exists($SRC)){ //doesn't exist! http_status(404); $ERROR = 'File not found'; } }else{ // no auth $ERROR = p_locale_xhtml('denied'); } //start output and load template header('Content-Type: text/html; charset=utf-8'); include(template('detail.php'));