439 Commits

Author SHA1 Message Date
Dongsheng Cai
ec0d6ea2a9 MDL-28646 Web service: core_course_get_contents()
1. Implement core_course_get_contents web service
2. Implement callbacks in folder, resource, page and url modules
3. Implement download script for web service
2011-11-28 16:22:38 +08:00
Tom Lanyon
365bec4c06 MDL-28701 Change all uses of $CFG->dataroot/cache to $CFG->cachedir 2011-09-10 10:35:46 +02:00
Tom Lanyon
7aa06e6ded MDL-28701 Change all uses of $CFG->dataroot/temp to $CFG->tempdir 2011-09-10 10:35:39 +02:00
Eloy Lafuente (stronk7)
0a4ca115b2 Merge branch 'w33_MDL-26796_m22_arrayparams' of git://github.com/skodak/moodle 2011-08-24 14:06:22 +02:00
Petr Skoda
ffa5e3ddae MDL-28708 minor unrelated cleanup and elimination of dead code 2011-08-19 17:26:28 +02:00
Tony Levi
f73c6bad2c MDL-28708: Send 304 Not Modified response when browser If-Modified-Since header is after file mtime 2011-08-19 17:14:54 +02:00
Petr Skoda
18bd7573d6 MDL-26796 convert array parameter cleaning to new functions 2011-08-18 08:40:33 +02:00
Eloy Lafuente (stronk7)
32dc8ecd16 MDL-27896 filters/editor - fix whitespace 2011-08-16 01:57:51 +02:00
Rajesh Taneja
f9157eb798 MDL-27896 editor - added sanity check to pick wrong context passed to editor creation 2011-08-12 11:33:21 +08:00
Petr Skoda
98eaf27e3c MDL-28280 remove obsolete unmaintained $CFG->usesid 2011-07-10 13:44:41 +02:00
Sam Hemelryk
5f1c825dfa Merged MDL-27251 Fixed up whitespace, Fixed broken string, reworded new strings 2011-05-03 10:51:06 +08:00
Aparup Banerjee
60b5a2fec7 MDL-27251 Files API - added timeout re-calculation as an optional argument. added setting for minimum Kbps for large files fetched from internet where the passed in timeout maybe too low.
allowed turning off the http HEAD request timeout calculation with zero (or negative) bitrate

	This was added in to allow servers that have a problem with
	HEAD requests to carry on with the given timeout without re-calculations.
	See PULL-651 for the discussion.

	the optional argument to force recalculation of timeout has been forced within scorm/locallib.php

	timeout re-calculation only increments timeout.
2011-04-27 10:49:40 +08:00
Tim Hunt
c08643da97 MDL-26887 Refactor file_save_draft_area_files to separate out the file_rewrite_urls_to_pluginfile bit. 2011-03-18 16:41:29 +00:00
Petr Skoda
fcd2cbaf1f MDL-26697 multiple media filtering fixes and improvements
Bug fixes:
    * fixed broken flash resizing via URL
    * upgraded Flowplayer
    * fixed invalid context in format_text()
    * all media related CSS moved from themes to filter and resources
    * fixed automatic pdf resizing in resources

Changes:
    * reworked filter_mediaplugin system settings - grouped by player type instead of individual extensions, added more information
    * improved regex url matching
    * removed old unused players, Eolas fix and UFO embedding
    * image embedding moved to filter_urltolink
    * new Flowplayer embedding API
    * accessibility and compatibility tweaks in Flowplayer
    * SWF embedding now works only in trusted texts, it is now enabled by default (works everywhere if "Allow EMBED and OBJECT tags" enabled)
    * new default video width and height

New features:
    * automatic Flash video resizing using information from video metadata
    * Flash HD video support (*.f4v)
    * Flash video embedding with HTML5 fallback - compatible with iOS and other mobile devices
    * Vimeo embedding
    * no-cookie YouTube site supported
    * HTML 5 audio and video with multiple source URLs and QuickTime fallback
    * more video and audio extensions in filelib.php
    * MP3 player colours customisable via CSS in themes
    * nomediaplugin class in a tag prevents media embedding
2011-03-12 17:42:52 +01:00
Eloy Lafuente (stronk7)
102cb3c1a6 Merge branch 'w07_MDL-26294_20_byteserving' of git://github.com/skodak/moodle 2011-02-14 02:08:06 +01:00
Petr Skoda
dd3b7e7dfc MDL-26294 fix byteserving regression
Credit goes to James Mitchell.
2011-02-12 20:39:53 +01:00
Petr Skoda
9337cf32ca MDL-26329 fix incorrect draft url rewriting when slasharguments off
tinymce editor encodes '/' in the ?file= parameter, we have to decode %2F before doing our standard @@PLUGINFILE@@ processing.
2011-02-12 09:43:14 +01:00
Petr Skoda
893fe4b6b2 MDL-26069 detect missing file postprocessing 2011-01-29 17:50:12 +01:00
Petr Skoda
c4cef1fe39 MDL-25314 weaker misconfiguration detection
seems like there are too many problems in buffer flushing in different PHP/browser configurations; flushing the buffers after all headers are sent, this is the safest way
2010-11-20 11:39:11 +00:00
Petr Skoda
116ee3e433 MDL-25314 coding style improvement 2010-11-20 03:56:34 +00:00
Petr Skoda
596c71156d MDL-25314 some more header diagnostics when preparing to send file 2010-11-20 03:55:53 +00:00
Petr Skoda
6e65fcd9b9 trying to work around gzip issue 2010-11-19 08:51:49 +00:00
Petr Skoda
cbad562eee MDL-25314 improved prevention of output buffering + detection of misconfigured servers
Scripts that do not want buffered output just define NO_OUTPUT_BUFFERING before including config.php.
The fileserving code now checks if the headers are already sent which detects misconfigured servers.
2010-11-19 03:40:43 +00:00
Petr Skoda
2f65797837 do not send stored file if nothing to send given 2010-10-18 11:39:57 +00:00
David Mudrak
d9ba4bd6ad MDL-24636 File API: Fixed calculation of the number of current files when merging with the draft area 2010-10-12 14:56:01 +00:00
Petr Skoda
6bdfef5da9 MDL-24321 switching to standard stdClass() 2010-09-21 08:54:01 +00:00
Petr Skoda
365a594107 MDL-24321 switching to stdClass in /lib/ 2010-09-21 08:07:44 +00:00
Rossiani Wijaya
ce5dc36e38 MDL-19927 - add media plugins support for ogg and ogv files. 2010-09-20 09:47:54 +00:00
Petr Skoda
eab8ed9fb7 fixed a few spelling errors in /admin/ 2010-09-17 10:27:26 +00:00
Petr Skoda
ba4082f51d fixed typo breaking curl option 2010-09-17 07:55:44 +00:00
Dongsheng Cai
b3ea9cb2ec MDL-21432, mbz icon 2010-09-15 09:30:14 +00:00
Petr Skoda
656e1184b8 MDL-24109 saving of draft files now detects all changes 2010-09-07 08:23:11 +00:00
Petr Skoda
d078f6d38e standardized PHPDocs package info 2010-09-06 11:29:21 +00:00
Petr Skoda
35b622e1f7 MDL-23984 fixed curl cache to use our default permissions 2010-08-29 17:09:33 +00:00
Dongsheng Cai
529377b572 "MDL-23894, added user quota limit to filesedit form" 2010-08-24 07:52:12 +00:00
Petr Skoda
ede7252234 MDL-23784 finally getting rid of all legacy .gif and .png extensions, yay! fixing issues with incorrect & in JS code 2010-08-12 20:37:24 +00:00
Petr Skoda
42776c9453 MDL-23592 adding ugly hack that copies data from intro to first post in single "simple" forum type 2010-08-01 09:42:55 +00:00
Petr Skoda
78bfb562a0 MDL-21249 improved php docs and adding direct access prevention in core libs 2010-07-25 13:35:05 +00:00
Petr Skoda
50a8bd6c1d MDL-14589 file api cleanup 2010-07-11 13:30:33 +00:00
Petr Skoda
f28ee49e98 MDL-14589 adding missing component to moodle_url factory methods, going to convert code to use these factories instead of old filelib.php functions 2010-07-11 09:20:20 +00:00
Petr Skoda
20e5da7d91 MDL-19211 back to the old text format preferences logic + minor refactoring and improvements 2010-07-10 12:12:59 +00:00
Dongsheng Cai
1230b9c96e MDL-23116, added file type icon to private file block, stop using the short file name from filemanager 2010-07-08 04:38:13 +00:00
Dongsheng Cai
e35194bec4 MDL-22982
1. rename repository.class to lib.php
2. fixed repository_callback.php
3. repository_ajax use moodle default exception handler
4. improve file_get_user_used_space performance
2010-07-05 07:27:49 +00:00
jerome mouneyrac
277c7a4033 file MDL-23075 fix format_postdata_for_curlcall when the params is an array of array of array 2010-07-05 02:56:04 +00:00
Petr Skoda
64f93798d4 MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment 2010-07-03 13:37:13 +00:00
Dongsheng Cai
f79321f1b8 MDL-22548, added sortorder field to files table, drop mainfile field from resource table, use sortorder to decide main file 2010-05-28 07:29:11 +00:00
Dongsheng Cai
f36cb95140 "MDL-16597, fixed filepath" 2010-05-27 03:51:39 +00:00
Petr Skoda
1e06adb47c MDL-22546 do not accept bogus params in fulldelete() 2010-05-22 21:40:03 +00:00
Petr Skoda
34ff25a6ef fixed multiple inline docs comment typos 2010-05-21 18:11:57 +00:00
Petr Skoda
3a1055a548 MDL-22532 support for fetching of large files via temp files 2010-05-20 17:13:07 +00:00