mark-nielsen [Sat, 30 Dec 2006 17:29:44 +0000 (17:29 +0000)]
modified some strings to add more meaning to buttons and links
left menu, clock and media file all display like blocks
some general code cleanup eg: went through several of the todo's in the code
skodak [Fri, 29 Dec 2006 18:33:41 +0000 (18:33 +0000)]
MDL-8022 chat accessiblity
- new gui_basic that can be used as fallback or accessible option to gui_header_js - it is not compatible with chat daemon
- todo: CSS styling, beeping, JS fallback code in view.php and noframes fallback in gui_header_js
- minor changes in messaging language strings
- minor coding style improvements
skodak [Thu, 28 Dec 2006 21:21:44 +0000 (21:21 +0000)]
MDL-8015 improved file uploading
- changed file upload api in formslib
- fixed blog attachments and related code in file.php
- fixed glossary attachments
- fixed embedded images in forum posts and blogs - only gif, png and jpeg; the problme was that svg were embedded using img tag which was wrong, the same applied to other picture formats unsupported by browsers (please note that student submitted svg should be never embedded in moodle page for security reasons)
- other minor fixes
jamiesensei [Thu, 28 Dec 2006 16:12:22 +0000 (16:12 +0000)]
removed all 'Revert' buttons from forms and removed it altogether from add_action_buttons method since it was decided it didn't contribute to usability.
martinlanghoff [Wed, 27 Dec 2006 22:47:51 +0000 (22:47 +0000)]
$MCACHE - rework memcached support - some rework on eaccelerator
We now have a wrapper memcached support class to handle
initial connection setup, provide the common denominator
calls, plus getforfill() and friends.
The eaccelerator class now returns false to match memcached. The
downside of this is that we cannot store booleans as a false value
is indistinguishable from a false that indicates error or 'key not
found'.
martinlanghoff [Wed, 27 Dec 2006 22:45:13 +0000 (22:45 +0000)]
init_memcached(): only use pconnect if configured to do so
Make pconnections optional - only use pconnect if $CFG->memcachedpconn is
set. In current versions of the memcache client in PECL (v2.0.1),
memcache_pconnect() is buggy and will segfault if reusing a pconnection
to a server that has gone away or restarted.
And hope for a more stable client library in PECL ;-)
martinlanghoff [Wed, 27 Dec 2006 22:44:39 +0000 (22:44 +0000)]
Introducing $MCACHE - Memory-based cache
$MCACHE is initially based on core API that is shared between memcached and
turckmmcache/eaccelerator. The core operations are add(), set() and delete()
This initial implementation uses the PECL-based PHP client. Would be trivial
to add support for a PHP-based client.
The $MCACHE facility can be used for DB cache, text filters cache, and possibly
for sessions.
martinlanghoff [Wed, 27 Dec 2006 22:40:38 +0000 (22:40 +0000)]
rcache_* calls - flesh out logic and use $MCACHE if available
- move from $CFG->enablerecordcache <count> to $CFG->rcache <type>
- if $CFG->rcache === 'internal' use the cache array
otherwise, attempt to use $MCACHE
- implement and use rcache_getforfill() to catch thundering herds
- the cache lifetime is hardcoded to 2s until we understand better the
possible race conditions against updates that are not happening via
update_record() / delete_record()
martinlanghoff [Wed, 27 Dec 2006 22:39:32 +0000 (22:39 +0000)]
dmllib: introducing the rcache_* functions for record cache handling
Abstracted Sam's initial work with $record_cache into a series of functions
that abstract things _just enough_ that we can use an internal
in-memory-array implementation or something that is shared across
processes, like memcached or the turckmmcache/eaccelerator caches.
Also
- added hit/miss stats tracking and reporting
- removed max entries limiting as it was buggy - var names mismatches
and not counting unset()s
martinlanghoff [Tue, 26 Dec 2006 22:48:36 +0000 (22:48 +0000)]
raise_memory_limit() earlier -- resolves OOM on 64-bit platforms
On 64-bit platforms the in-memory footprint of our libraries is quite a bit
larger than usual, and we hit the 8MB default memory limit before we call
raise_memory_limit(). This patch moves raise_memory_limit() and
get_realsize() to setuplib so we can call them earlier, and moves the
call to _before_ we include the libraries.
On AMD64, for MOODLE_17_STABLE the footprint is about 9.5MB. Diet time? :-)
stronk7 [Mon, 25 Dec 2006 19:51:17 +0000 (19:51 +0000)]
Now excel can be generated under iso-8859-1 (safer) based on the
$CFG->excelisofiles (true/false) value. It allows iso-8859-1
compatible sites to use better Excel generation. MDL-7993.
tjhunt [Fri, 22 Dec 2006 15:39:40 +0000 (15:39 +0000)]
MDL-8003 - part - Use formslib for question editing forms
This commit does two things:
1. Gives question types he opion to use formslib for their editing forms, instead of the old mechanism.
2. Converts the truefalse question type to formslib.
skodak [Thu, 21 Dec 2006 10:58:18 +0000 (10:58 +0000)]
MDL-7996 Add ods export support - added ods to course logs with other minor fixes, implemented date support and added missing stub functions for better excel class compatibility