summaryrefslogtreecommitdiff
path: root/inc/media.php
Commit message (Collapse)AuthorAge
* Work around IIS bug for redirects FS#1576Andreas Gohr2009-01-27
| | | | | | | | | | | | | Ignore-this: 37b33f575e4c0b31e4af93185bf74f0f When IIS is running PHP in CGI mode it will not send cookie headers on 302 redirections. This is a known bug (KB176113). This patch will detect affected servers. Instead of a 302 redirect a Refresh: header is issued. This is supported by all known browsers should have the same effect as a real redirect. darcs-hash:20090127204506-7ad00-ce474f3b0db003e86e09d5e9a9bd7c96887ac01c.gz
* added missing closing parenthesisAndreas Gohr2009-01-22
| | | | darcs-hash:20090122184149-7ad00-bcde222d4166c6c63b2c798251e2686e4288487a.gz
* further updates to config_cascade patchChris Smith2009-01-22
| | | | | | | | | | - add mediameta and license config files into the cascade - update the cache validity code in cache.php, css.php & js.php to use config_cascade - redo inclusion of main config files to avoid suppression of errors in config files - add getConfigFiles($type) function - minor updates elsewhere to use config_cascade rather than hardcoded config file names darcs-hash:20090122114457-f07c6-98ad5627fd5df93edf8dd03289b9cf6d81962afe.gz
* Media changelog addedmichael2009-01-18
| | | | | | | | There is a new media changelog now, with the flag RECENTS_MEDIA_CHANGES media changes can be requested from the getRecents()-function or the new getRecentsSince()-function, that returns all changes since a given timestamp and optionally before a given timestamp. The media upload and the XML-RPC-server have been changed to use these functions. Additionally, the event MEDIA_UPLOAD_FINISH has been extended, it has a new $data-attribute (the 5th), that contains a boolean if the file does already exist and will be overwritten. darcs-hash:20090118154345-074e0-5d9a90d269e86d8c6a156ecce5cf63115c827433.gz
* replaced str_replace with sprintf in media managerAndreas Gohr2009-01-16
| | | | darcs-hash:20090116220659-7ad00-176afb347702b72fdb75faa3401b5c2c4b50c6a0.gz
* fix for FS#1534Michael Klier2009-01-16
| | | | darcs-hash:20090116225428-23886-2ce4d48a20f66265764c95b19ee505c6519446e2.gz
* Use html_flashobject for MultiUploaderAndreas Gohr2009-01-16
| | | | darcs-hash:20090116182523-7ad00-3bf44603ff1f5193877e0a29400b25a8edc5365a.gz
* removed some illogical path setupsAndreas Gohr2008-12-13
| | | | darcs-hash:20081213090400-7ad00-4e21cd75978bb07513f32f5d750658e8d777c59e.gz
* Make content-disposition configurable in mime.conf FS#1541Andreas Gohr2008-12-02
| | | | | | | | | | | | | With this patch it is possible to define if a file should be served as download or be displayed inside the browser (if supported) by configuring it in conf/mime.conf Mimetypes that should be served with a "Content-Disposition: attachment" header need to be prefixed with a exclamation mark. All others will be served inline. This will also fix a Problem with Flash 10. darcs-hash:20081202210322-7ad00-6e7ef30aff9322cd135311be77809187da121f3b.gz
* moved crop/resize functions out of fetch.php for reusabilityMichael Klier2008-10-26
| | | | darcs-hash:20081026135833-23886-a9c8e910571c6e7a4e1603a2ebd365b3ed37108a.gz
* removed 'ALT+' from all titles of elements with accesskeys (FS#1172)Anika Henke2008-10-12
| | | | darcs-hash:20081012181638-f7d6d-d4614321134f78fc176688d8aaf9d9acccf1952e.gz
* FS#1134 removed inline javascript from mediamanagerMichael Klier2008-10-12
| | | | darcs-hash:20081012151319-23886-cf6100556d4bdfd1090d1c6be0023aa3dd6840cc.gz
* Fix for FS#1230Gina Haeussge2008-10-11
| | | | darcs-hash:20081011153646-2b4f5-4e4320b4bcb819e96a1ac7b8a83755c659b901b8.gz
* wrap media file deletion in MEDIA_DELETE_FILE eventMichal Kolodziejski2008-10-01
| | | | darcs-hash:20081001181002-90c8c-6cac9e589f510a0a590d57a699669bc68e111ff9.gz
* multiupload fixes FS#1452Andreas Gohr2008-09-16
| | | | | | | | | | | This patch fixes HTML validity problems with the multiupload flash. It also makes sure the uploadflash is shown when switching namespaces via Ajax in the Mediamanager. BTW. The multiupload flash does not work in lighttpd 1.4.x see http://trac.lighttpd.net/trac/ticket/1017 for details darcs-hash:20080916173630-7ad00-84c4ad5d580093155a1ccfb41054c55b789118c0.gz
* removed all occurrences of onkeypress (FS#1449)Anika Henke2008-07-20
| | | | darcs-hash:20080720110738-d5083-50a92498622bd6ca9850da8f9417974fb39ccc3d.gz
* Check file size of uploaded dataAndreas Gohr2008-07-15
| | | | | | | This will abort the upload process when the uploaded temp file has zero bytes. This can occur when the disk is full. darcs-hash:20080715215345-7ad00-1a2b45b77d59b1b39d0133ec1737dbb0054368c1.gz
* show xmp metadata in default templatehakan.sandell2008-05-18
| | | | darcs-hash:20080518152928-9a5f4-a1594ec08a2006ee2b94f68e766abbf6ad32701c.gz
* experimental Flash based multi uploadAndreas Gohr2008-06-07
| | | | | | | | | | | | | | | | | | | | | | This patch adds experimental support for uploading multiple files in one go. This is achieved by using Flash for selecting multiple images and intitiating the HTTP upload. When Flash 8 or higher is detected, an additional icon is added to the usual upload form. Clicking it will swith the form to the Flash based upload queue. Things that need work: * Better Icon * Feedback if Flash detection works on all Flash 8 supported platforms * Progress feedback seems not to work on Linux (might be Adobe bug) * No final feedback how many images were uploaded correctly The flash sources are located in lib/_fla/ Any feedback and help would be appreciated. darcs-hash:20080606222849-7ad00-738083445af275752aaebc29bfa51430f3d94459.gz
* use fulltext index to search for used media files FS#1336 FS#1275Andreas Gohr2008-02-23
| | | | | | | | | | | | | | | This changes how DokuWiki looks for reference toa media file which is about to deleted. Instead of doing a full grep through all pages it now uses the fulltext index first, then does an exact match on the found pages. This speeds up the search significantly on larger wikis. However the fulltext search limits now apply: images with names shorter than 3 charcters may not be found. This needs extensive testing! darcs-hash:20080223205254-7ad00-486de0a4125d51b4e7999827f710d1d9de8bc60d.gz
* use strftime() instead of date() FS#1335 :!:Andreas Gohr2008-02-23
| | | | | | | | | | | | | | This patch replaces the use of the date() function with the strftime() function. The latter will respect a set locale and will use localized strings for things like month names. Because the format options for strftime differ from the ones used in date, DokuWiki will rest the value of $conf['dformat'] if it contains an old date format string (detected by missing % characters). Plugins or templates using the $conf['dformat'] need to be updated. darcs-hash:20080223124045-7ad00-6afb2b839afc58781463e25577e06adb675fff79.gz
* redirect to root namespace in mediamanager when namespace was deleted FS#1286Andreas Gohr2008-02-15
| | | | darcs-hash:20080215105251-7ad00-b7ac1bfc0e2d1eccf079f4ff2f0db8876896b79d.gz
* fix line endings for meta data editing in media manager FS#1324Andreas Gohr2008-02-15
| | | | darcs-hash:20080215091527-7ad00-181de33e08256577fec9cb52ff11811ad0f4fc01.gz
* skip invalid filenames in media directory list (related to FS#1312 FS#1306)Andreas Gohr2008-01-18
| | | | | | | Invalid media files (like uppercase names) are no longer listed in the media manager. Instead a warning is shown. darcs-hash:20080118205511-7ad00-01625475e055be71628fd68aaaad786959420dce.gz
* refactored media upload formMichael Klier2007-10-29
| | | | darcs-hash:20071029134739-23886-a5f5dfa7cf1e5b029958ba67a44f3df19bcaa3bf.gz
* don't use realpath() anymore (FS#1261 and others)Andreas Gohr2007-09-30
| | | | | | | | | | | The use of realpath() to clean up relative file names caused some trouble in certain setups relying on symlinks or having restricitve file structure setups. This patch replaces all realpath() calls with a PHP only replacement which should solve those problems. darcs-hash:20070930184250-7ad00-512ff04c95f57fc9eaf104f80372237a3c94286f.gz
* media meta chmod fixOtto Vainio2007-09-26
| | | | | | | Media metadata update changes file permissions to default. Should call chmod if needed. darcs-hash:20070926190419-58dfb-8405fd4d62e7dc337d1257ca282ac8c05bbea30f.gz
* New event MEDIA_UPLOAD_FINISHMichael Klier2007-09-09
| | | | | | | | | | | | | | This adds a new event MEDIA_UPLOAD_FINISH which is triggered when a media file is uploaded via the mediamanager. (The event is preventable) Event data: data[0] temporary file name (read from $_FILES) data[1] file name of the file being uploaded data[2] future directory id of the file being uploaded data[3] the mime type of the file being uploaded darcs-hash:20070909003843-23886-182d42a34f254fd8e63486210c458c34dd953b5d.gz
* Variable typo fix in inc/media.phpMichael Klier2007-09-14
| | | | darcs-hash:20070914202618-23886-694cfafea7ff86e7aa12da7bdcd646e4dbb4e05c.gz
* CSRF SecurityToken added to the media managerAndreas Gohr2007-09-08
| | | | darcs-hash:20070908143307-7ad00-50730dd67239a2faaced2dfa0dee8de7c1db05e6.gz
* fixed URL in file upload notify mail FS#1160Andreas Gohr2007-06-13
| | | | darcs-hash:20070613191542-7ad00-0e72b3c40f9593838641be5c4e728a8e1a68d550.gz
* fixed xhtml validity issues in media managerAnika Henke2007-05-13
| | | | darcs-hash:20070513212129-d5083-7ec1048f96fbd4588db6fa2a1d2e22355a3d4961.gz
* Test uploaded files for HTML tags FS#1077Andreas Gohr2007-02-24
| | | | | | | | | | | | | | | Following the problem with IE's mimetype handling described at http://www.splitbrain.org/blog/2007-02/12-internet_explorer_facilitates_cross_site_scripting this patch adds a new option (on by default) to check the first 256 bytes of uploaded files against a list of a few HTML tags and denies the upload of such a file. In rare occasions this may block harmless and valid files, but that's price we have to pay for Microsoft's stupidity. Users who need HTML uploads should disable this check. (Don't do that on open Wikis!) darcs-hash:20070224124458-7ad00-0ced616d06f563515b36a0a6871b5ba50229c946.gz
* send notify mails for uploaded filesAndreas Gohr2007-02-12
| | | | darcs-hash:20070212190216-7ad00-7be9443a13ab0e885e569f4bdae166fcd00ab836.gz
* check if uploaded content matches the given mime typeAndreas Gohr2007-02-11
| | | | | | | | A first attempt at fixing FS#1077 currently checks images and spam darcs-hash:20070211223230-7ad00-ba8186c5e848e8783acabb9bf598739617aabdf2.gz
* show lastmod datetime in mediamanager FS#964Andreas Gohr2007-01-06
| | | | darcs-hash:20070106125603-7ad00-a10d366e8a3c7d58aacbffbe333b4fccba340f4a.gz
* don't show .txt files as medianamespaces #963Andreas Gohr2006-11-03
| | | | darcs-hash:20061103150850-7ad00-9b6936efb8dd47eb366e5cd34a3149f4d81caa14.gz
* a bit of strictness for mediamgr + login formAnika Henke2006-10-16
| | | | darcs-hash:20061015222040-d5083-afb1c38f5bb2610260bbc51fbff816a8ed2e5f49.gz
* replaced inlinestyle with classAndreas Gohr2006-07-31
| | | | darcs-hash:20060731182514-7ad00-25984c9370bb43abe52e6c17fb1a5eb701c3e6da.gz
* another try at the uploadformAndreas Gohr2006-07-31
| | | | darcs-hash:20060731175331-7ad00-7cfe2aa927bb837368c07e01a85ad9ffe697956d.gz
* mediamanager uploadform: adjusted html + cssAnika Henke2006-07-30
| | | | darcs-hash:20060730111004-d5083-ab7efbe958e77f5b7ff4500b91b8d43da657e9d4.gz
* IO action eventsBen Coburn2006-07-05
| | | | | | | | | | | | | | | | | | | | | | | | | Adds page and namespace events: IO_WIKIPAGE_READ IO_WIKIPAGE_WRITE IO_NAMESPACE_CREATED IO_NAMESPACE_DELETED The namespace events are purely advisory, while the wikipage events allow page content to be modified between DokuWiki and the disk. These events are primarily intended to simplify keeping other tools in sync with the semantic structure of a DokuWiki site. As an added benefit, the events allow plugins to conduct automated processing of raw wiki page content. The namespace events cover the separate namespace trees for both pages and media. The "name" of the tree that the event belongs to is included in the event data. darcs-hash:20060705105652-05dcb-f44024e852a2adf1a14b8a7d69c46db067e72307.gz
* fix media file permissionsBen Coburn2006-06-09
| | | | | | | Always chmod media because they may be saved with different permissions than expected from the php umask. darcs-hash:20060609072434-05dcb-8e6cb602df7afc75633c7eec0a9056a8b9696f77.gz
* more semantic alt values in media treeAnika Henke2006-06-07
| | | | darcs-hash:20060607193424-d5083-1ecd7dce6a41d12339c66b48883980e285c95214.gz
* be clever about extensions on uploadAndreas Gohr2006-05-27
| | | | | | | | | | | This patch makes it possible to enter filenames without an extension in the upload as field when the uploaded file it self has a known extension. It also prints a warning when an extension was changed by the user. darcs-hash:20060527100310-7ad00-cf2abb4b9730e54b96c6ba24b2a999011cfb834a.gz
* added id to namespace headlineAndreas Gohr2006-05-26
| | | | | | | This makes the currently in the medaia manager selected namespace available to any JavaScript files darcs-hash:20060526144011-7ad00-23c476c38f8b559680c510c16b7de9924d3dd669.gz
* validity fix in image meta edit formAndreas Gohr2006-05-25
| | | | darcs-hash:20060525173150-7ad00-07520ef2e00d48a01eb3681357d3a31e2feea86b.gz
* media manager validity fixesAndreas Gohr2006-05-25
| | | | darcs-hash:20060525172718-7ad00-4395765bab12098f5fb8c4ec6d1f98ffd8937f0c.gz
* label for root of medianamespacesAndreas Gohr2006-05-25
| | | | darcs-hash:20060525160758-7ad00-43610809062192c93c4ec7dfb578e9f3eb6a0e80.gz
* more mediamanager fixesAndreas Gohr2006-05-25
| | | | | | | This fixes some styling issues, the cookie handling and a bug in the JavaScript caching mechanism. darcs-hash:20060525144000-7ad00-2f0b673d4f747c979f460e4e927a50eeeae81ec1.gz