[ Index ]
 

Code source de DokuWiki 2006-11-06

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

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

DokuWiki media passthrough file

Author: Andreas Gohr <andi@splitbrain.org>
License: GPL 2 (http://www.gnu.org/licenses/gpl.html)
Poids: 438 lignes (12 kb)
Inclus ou requis:0 fois
Référencé: 2 fois
Nécessite: 5 fichiers
 inc/pageutils.php
 inc/auth.php
 inc/init.php
 inc/confutils.php
 inc/common.php

Définit 9 fonctions

  sendFile()
  http_rangeRequest()
  get_resized()
  calc_cache()
  get_from_URL()
  image_download()
  resize_imageIM()
  resize_imageGD()
  is_mem_available()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

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

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

http_rangeRequest($size)   X-Ref
Checks and sets headers to handle range requets

returns: array The start byte and the amount of bytes to send
author: Andreas Gohr <andi@splitbrain.org>

get_resized($file, $ext, $w, $h=0)   X-Ref
Resizes the given image to the given size

author: Andreas Gohr <andi@splitbrain.org>

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

Resolves named constants

author: Andreas Gohr <andi@splitbrain.org>

get_from_URL($url,$ext,$cache)   X-Ref
Download a remote file and return local filename

returns false if download fails. Uses cached file if available and
wanted

author: Andreas Gohr <andi@splitbrain.org>
author: Pavel Vitis <Pavel.Vitis@seznam.cz>

image_download($url,$file)   X-Ref
Download image files

author: Andreas Gohr <andi@splitbrain.org>

resize_imageIM($ext,$from,$from_w,$from_h,$to,$to_w,$to_h)   X-Ref
resize images using external ImageMagick convert program

author: Pavel Vitis <Pavel.Vitis@seznam.cz>
author: Andreas Gohr <andi@splitbrain.org>

resize_imageGD($ext,$from,$from_w,$from_h,$to,$to_w,$to_h)   X-Ref
resize images using PHP's libGD support

author: Andreas Gohr <andi@splitbrain.org>

is_mem_available($mem,$bytes=1048576)   X-Ref
Checks if the given amount of memory is available

If the memory_get_usage() function is not available the
function just assumes $used bytes of already allocated memory

author: Filip Oscadal <webmaster@illusionsoftworks.cz>
author: Andreas Gohr <andi@splitbrain.org>
param: int $mem  Size of memory you want to allocate in bytes
param: int $used already allocated memory (see above)



Généré le : Tue Apr 3 20:47:31 2007 par Balluche grâce à PHPXref 0.7