Script to allow MediaWiki-based authentication for downloading items from the upload...
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 7 Jun 2004 06:57:53 +0000 (06:57 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 7 Jun 2004 06:57:53 +0000 (06:57 +0000)
commit0655c03974a7dfa6636e82d0b134ccfa1d3b0db2
treed11f7dd1a34596ca14a5b3a64be75e5a47f91151
parentc6294709335125c3c54062e679c67d5f52fb2c6d
Script to allow MediaWiki-based authentication for downloading items from the upload directory. To use, deny access to the actual directory, and set $wgUploadPath to this script. Image URLs will be of the form "server.com/wiki/img_auth.php/0/00/Image.png". The script checks the cookies and the session data, and if everything is OK, streams out the named file.
img_auth.php [new file with mode: 0644]