[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/lib/exe/ -> fetch.php (summary)

DokuWiki media passthrough file

Author: Andreas Gohr
License: GPL 2 (http://www.gnu.org/licenses/gpl.html)
File Size: 205 lines (6 kb)
Included or required:0 times
Referenced: 3 times
Includes or requires: 1 file
 inc/init.php

Defines 3 functions

  sendFile()
  checkFileStatus()
  calc_cache()

Functions
Functions that are not part of a class:

sendFile($file,$mime,$dl,$cache)   X-Ref
Set headers and send the file to the client

author: Andreas Gohr <andi@splitbrain.org>
author: Ben Coburn <btcoburn@silicodon.net>

checkFileStatus(&$media, &$file, $rev='')   X-Ref
Check for media for preconditions and return correct status code

READ: MEDIA, MIME, EXT, CACHE
WRITE: MEDIA, FILE, array( STATUS, STATUSMESSAGE )

returns: array(STATUS, STATUSMESSAGE)
author: Gerry Weissbach <gerry.w@gammaproduction.de>
param: $media reference to the media id
param: $file reference to the file variable

calc_cache($cache)   X-Ref
Returns the wanted cachetime in seconds

Resolves named constants

author: Andreas Gohr <andi@splitbrain.org>



Generated: Wed May 23 03:00:10 2012 Cross-referenced by PHPXref 0.7
WikiForumIRCBugsGitXRefTranslate