Commit graph

4720 commits

Author SHA1 Message Date
skodak
e0fdb167d9 MDL-8032 remove repeated dashes from navmenu - replace with CSS styling 2007-01-02 10:27:59 +00:00
skodak
9119f247cf MDL-7861 I have noticed that the last change in weblib.php http://moodle.cvs.sourceforge.net/moodle/moodle/lib/weblib.php?r1=1.722&r2=1.723 broke validation because name and id attributes are not the same, committing fix, please review ;-) 2007-01-02 10:00:38 +00:00
skodak
89bfeee0d6 MDL-7742 added nested drop down box to add activities/resources to course, 3rd party mods can specify type
MDL-6987 preparation for migration of mod/assignment/mod.html
2007-01-02 09:33:07 +00:00
toyomoyo
9d3c6ee506 chaning reference from document.abc to document.getElementById('abc'), MDL-7861 2007-01-02 05:04:11 +00:00
skodak
2a919fd7fe MDL-7977 new isguestuser() function implementation 2007-01-01 13:36:42 +00:00
skodak
4702be4ef7 MDL-8028 Add separate addslashes_js function for javascript quoting 2007-01-01 13:26:20 +00:00
skodak
0d1cd0ea21 MDL-8028 Add separate addslashes_js function for javascript quoting 2006-12-30 22:45:40 +00:00
skodak
b7b9786414 MDL-8029 removed obsoleted use of isadmin() from authenticate_user_login() 2006-12-30 21:32:53 +00:00
skodak
d90ffc1f66 MDL-8029 removed obsoleted use of nvl() from weblib 2006-12-30 21:25:13 +00:00
skodak
0e5215db91 MDL-8029 obsoleted html_entity_decode() and file_get_contents() emulation removed from moodlelib 2006-12-30 21:18:15 +00:00
skodak
2098f6ddbb MDL-8029 obsoleted file_get_contents() emulation removed from filelib 2006-12-30 21:14:24 +00:00
skodak
5d776ecbfc nvl() function moved to deprecated - my +1 for removing it together with friends xxx_variable() from HEAD ;-) 2006-12-30 21:05:17 +00:00
skodak
953eb6f315 MDL-8022 Chat accessibility - new gui_basic should integrated and fully working now
+ improved print_user_picture() to allow images with empty alt to prevent repetitive reading of usernames in jaws when username is printed next to avatar
2006-12-30 19:45:24 +00:00
skodak
711fb62baf MDL-7829 zipping with binary zip broken under windows when moodledata on different disk 2006-12-29 22:52:01 +00:00
skodak
af7454d606 MDL-7828 Backup with error PCLZIP_ERR_MISSING_FILE (-4) under windows when moodledata on different disk - patch by Yves Roy 2006-12-29 22:34:56 +00:00
skodak
da84dc82e6 MDL-7828 Backup with error PCLZIP_ERR_MISSING_FILE (-4) under windows when moodledata on different disk - patch by Yves Roy 2006-12-29 22:34:56 +00:00
skodak
70ee284143 MDL-8007 mimetype support for htc files, see http://support.microsoft.com/kb/306231 2006-12-29 20:57:48 +00:00
skodak
feaf5d06db 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
2006-12-28 21:21:44 +00:00
jamiesensei
1d284fbd85 fixing all the form names as per new class naming convention (PHP class names are also used for html id for styling) 2006-12-28 15:43:47 +00:00
jamiesensei
f07b9627b6 changes to how we generate the id attribute of forms and the naming convention of forms
migrate blog edit to formslib
2006-12-28 09:32:45 +00:00
martinlanghoff
02d3b34a8e rcache_getforfill() - better phpdoc 2006-12-27 22:55:12 +00:00
martinlanghoff
f917d0ea9b $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'.
2006-12-27 22:47:51 +00:00
martinlanghoff
2142d4924f $MACHE: add support for eaccelerator/memcached, change the $MCACHE calling convention a bit
- this effectively breaks memcached support for the moment
2006-12-27 22:47:14 +00:00
martinlanghoff
3530015874 rcache functions -- use a saner memory cache API
Push into the $MCACHE object
 - dealing with getforfill() nuances
 - dealing with moodle-host prefixes
2006-12-27 22:46:31 +00:00
martinlanghoff
ec9fe5cf6f rcache_set() and rcache_table_unset(): use a configurable TTL 2006-12-27 22:45:47 +00:00
martinlanghoff
9c967c33fb 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 ;-)
2006-12-27 22:45:13 +00:00
martinlanghoff
419e1d937e 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.
2006-12-27 22:44:39 +00:00
martinlanghoff
c96a4a46d5 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()
2006-12-27 22:40:38 +00:00
martinlanghoff
cd60d017ea get_performance_info(): fixup rcache stats
0 cache misses is valid and probably a good score ;-)
2006-12-27 22:40:16 +00:00
martinlanghoff
6c2f585f85 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
2006-12-27 22:39:32 +00:00
martinlanghoff
247035f8fc redirect(): fix protocol name in redirection header() 2006-12-27 01:49:14 +00:00
martinlanghoff
76f3815be9 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? :-)
2006-12-26 22:48:36 +00:00
stronk7
2f078622af 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.
2006-12-25 19:51:17 +00:00
skodak
aef5c10d7c MDL-7996 Add ods export support - basic functions needed for 1.8 release should be all working fine, more improvements later ;-) 2006-12-25 18:22:28 +00:00
skodak
c4f72672c5 MDL-7996 Add ods export support - more formatting improvements and other fixes 2006-12-22 22:30:11 +00:00
tjhunt
9dae915acb New param type: PARAM_NUMBER, for floating point numbers. 2006-12-22 13:29:20 +00:00
skodak
f748220f0f MDL-7996 Add ods export support - row height implemented 2006-12-22 10:37:02 +00:00
skodak
25ea2ad6c3 MDL-7996 Add ods export support - column width fixed 2006-12-22 10:26:34 +00:00
skodak
b0a945fc44 MDL-7996 Add ods export support - added changing of column width 2006-12-22 10:04:50 +00:00
moodler
5e87b920e3 Added CDATA to Javascript 2006-12-22 04:52:13 +00:00
moodler
a4e2f9e9bb Add CDATA to Javascript 2006-12-22 04:35:06 +00:00
moodler
5f60ed9b6a Added CDATA to Javascript 2006-12-22 04:25:00 +00:00
moodler
ce926cb8d8 Added CDATA to Javascript 2006-12-22 04:19:52 +00:00
moodler
ad897001c2 Added CDATA to Javascript 2006-12-22 04:17:56 +00:00
skodak
09b14fec34 MDL-7996 Add ods export support - better xml from KSpread 1.6.1 :-) 2006-12-21 22:18:17 +00:00
martinlanghoff
ccc776694d debugging(): our errors must be passed to PHP as E_USER_NOTICE 2006-12-21 21:56:49 +00:00
skodak
77c7f0f549 MDL-7996 Add ods export support - quiz report and number value, call time pass by ref... warnings fixed; fix in ods export lib 2006-12-21 20:34:51 +00:00
skodak
ea49a66cea 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 2006-12-21 10:58:18 +00:00
skodak
9c61ba4d88 MDL-7996 Add ods export support 2006-12-21 08:12:10 +00:00
martinlanghoff
47b8b9eb80 Introducing $CFG->debugdisplay -- mimics PHPs display_errors, controls debugging() 2006-12-21 04:30:03 +00:00