summaryrefslogtreecommitdiff
path: root/inc/media.php
Commit message (Collapse)AuthorAge
...
* 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
* media manager enhancementsAndreas Gohr2006-05-19
| | | | | | | Separate scrolling for right and left side of the manager (like frames) Show syntax example for simple copy'n'paste if no JavaScript available. darcs-hash:20060519202900-7ad00-9b20bd7993d3687f83b807a81cd23051b16785db.gz
* new mediamanagerAndreas Gohr2006-05-19
This patch adds a completely rewritten media popup. The following noteworthy changes were made: - media manager uses a collapsible namespace tree - media manager uses AJAX if available - media manager popup can be kept open when selecting a media file - only one template is used for the media manager :!: Template - Editable image metadata is configured in conf/mediameta.php now - The JS cookie mechanism was enhanced to store key/value pairs - Language strings can be exported to JS in js.php darcs-hash:20060519165023-7ad00-4932b4553fc919aa4a8b8187958b823acf4f8cee.gz