summaryrefslogtreecommitdiff
path: root/inc/media.php
Commit message (Collapse)AuthorAge
* Use mailprefix for media upload emails too (see also FS#2021)Guy Brand2011-06-09
|
* jQuery rewrite branch merged into master branch of whole projectMichal Rezler2011-03-23
|\
| * Use common media_save in media_upload and putAttachmentAdrian Lang2011-02-06
| | | | | | | | | | | | | | | | Changes: * XML-RPC now correctly allows leading and trailing _ * Error messages from XML-RPC are correct * MEDIA_UPLOAD_FINISH has a sixth param specifying the move function * Not having upload rights when using media_upload throws a msg
| * XML-RPC deleteAttachment now uses media_deleteAdrian Lang2011-02-06
| | | | | | | | | | | | | | | | Functionality changes: * deleteAttachment now triggers MEDIA_DELETE_FILE (closes FS#1568) * deletion success msg in mediamanager is correct, even when the ns dir was deleted * media_delete changed quite a bit
| * handle mailfrom replacements in a central place FS#2091Andreas Gohr2010-11-05
| |
* | added a TODOPierre Spring2010-10-10
|/
* Small fixes / cleanupAdrian Lang2010-09-28
|
* removed more unneeded require_once() callsAndreas Gohr2010-02-01
|
* first attempt to centralize all include loadingAndreas Gohr2010-01-31
| | | | | | | | Classes are loaded throug PHP5's class autoloader, all other includes are just loaded by default. This skips a lot of require_once calls. Parser and Plugin stuff isn't handled by the class loader yet.
* don't check filesize but rely on error on upload FS#1716Andreas Gohr2009-11-15
| | | | | | Ignore-this: adff36f3e49963a6682b5faabf6cb63e darcs-hash:20091115153119-7ad00-2c20c420faeea08c113a76acc05917621f361880.gz
* Make Doku_Form constructor more flexibleAdrian Lang2009-10-22
| | | | | | | | The Doku_Form constructor used to take up to four arguments setting specific parameters of the resulting form HTML element. Instead, a generic array is passed to the constructor specifying HTML parameters. darcs-hash:20091022120138-e4919-3a42baf8c12b15e6df20e1f28152a992e347859d.gz
* Coding Standard CleanupAndreas Gohr2009-10-20
| | | | | | Ignore-this: 259cb5773c3144c6c706d87298dcf674 darcs-hash:20091020212338-7ad00-6bf1c5c403491f136a1c02af5ecd9f84d7227107.gz
* New dformat() function for fuzzy date supportAndreas Gohr2009-10-07
| | | | | | | | | | | | | | | | | | Ignore-this: 7193cd788fee2c05a9068bf6edd5dc17 It is now possible to use the %f placeholder in $conf['dformat'] to add a fuzzy age string. Template developers and plugin authors should replace their strftime + $conf['dformat'] calls with calls to the new dformat() function. Example: %Y/%m/%d %H:%M (%f) produces dates like this: 2009/09/16 10:36 (3 weeks ago) darcs-hash:20091007133614-6e07b-677108d1b43928ef8fd886813e43514507b5e073.gz
* Use all available icons for file links (FS#1759)Tom N Harris2009-09-26
| | | | | | | | | All PNG and GIF images in the lib/images/fileicons directory will be used for media file links. The conf/mime.conf file continues to restrict which file types may be uploaded. File types not in the configuration list are download-only. darcs-hash:20090925231746-6942e-299a52772f67e265a8702bda3686f495e4337a8f.gz
* media file name search completedAndreas Gohr2009-09-21
| | | | | | | | | Ignore-this: c04f76bbe3d6817e876e721e4fcf7252 Note: development is part of ICKE 2.0 project http://www.icke-projekt.de darcs-hash:20090921095532-6e07b-bcf49154135c393a42352190dd929ddea3de3a29.gz
* Some changes to the media file searchAndreas Gohr2009-09-01
| | | | | | Ignore-this: 95042b9e60f807e046f93a362444a551 darcs-hash:20090901151703-6e07b-2c2d5a9a381b7ab6a19d1f74ba99aecb1e724181.gz
* media manager search: do not show messages about filessarnowski2009-08-24
| | | | darcs-hash:20090824114911-8c5bd-0939197f73e42f1cedbe83dcfa8073880758417d.gz
* Search capabilities for the media manager added.sarnowski2009-08-24
| | | | darcs-hash:20090824112230-8c5bd-7b8d8ba14e7533c1035b7b732983a0e3de8251a1.gz
* do not prepend colon via javascript in media managerAndreas Gohr2009-08-30
| | | | | | | | | Ignore-this: 67ae7589474461a1279720865f0d18b9 Just moves the prepending of the colon (for absolute namespaces) from the javascript to the PHP backend code - makes reusing the javascript for non local files easier. darcs-hash:20090830130823-7ad00-2b53e48edd8e117ac3f7814c50ea429e06284809.gz
* Multiple enhancements in the flash uploaderAndreas Gohr2009-06-05
| | | | | | Ignore-this: 9f05194de64b5e5d47fa45bb45814f8d darcs-hash:20090604230010-7ad00-118e3b31589f882440eaa35509bf2126cf49d9a9.gz
* Make more use of clientIP() FS#1668Andreas Gohr2009-04-10
| | | | | | Ignore-this: 13616da575fbe56064b2aa3d1d803bf5 darcs-hash:20090410181613-7ad00-b74c82c1f9296a2cb0d00b03316141b19821bda1.gz
* fixed media listing for recent change in search_mediaAndreas Gohr2009-03-01
| | | | darcs-hash:20090301192547-7ad00-818f401038e24de8c7edcf030db98c6ee59acd78.gz
* fixed media deletion when reference check is enabled FS#1582Andreas Gohr2009-02-05
| | | | | | Ignore-this: 7b8e3c664077e5069f00a0a10a6a7ad4 darcs-hash:20090205172601-7ad00-ca3ec217a6b19d310c608c2e69b33572f56c281b.gz
* 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