24038 Commits

Author SHA1 Message Date
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
moodler
f5923b0883 Automatic installer.php lang files by installer_builder (20061231) 2006-12-31 03:15:28 +00:00
skodak
0d1cd0ea21 MDL-8028 Add separate addslashes_js function for javascript quoting 2006-12-30 22:45:40 +00:00
skodak
37edce7b84 MDL-8029 removed obsoleted use of isteacher() from user view 2006-12-30 21:40:22 +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
b490cf71a0 MDL-8029 removed obsoleted optional_variable() from ldap config 2006-12-30 21:22:36 +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
dd2d45a878 MDL-8029 obsoleted ob_end_clean() emulation removed from chat 2006-12-30 21:10:23 +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
bcd85cffbd MDL-7948 some more messaging accessiblity fixes -missing css changes 2006-12-30 18:21:47 +00:00
mark-nielsen
54b698bce8 Modified some strings and added a few others 2006-12-30 17:31:37 +00:00
mark-nielsen
f521f98a22 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
2006-12-30 17:29:44 +00:00
skodak
d53f1cdb82 MDL-7948 some more messaging accessiblity fixes 2006-12-30 11:20:26 +00:00
skodak
54bb345831 MDL-7956 - fix problem with messages sent at the same time 2006-12-30 10:55:32 +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
cf6bf1ab5f MDL-7837 auth_ldap_bulk_insert() fails when user data contains single quotes - patch by Iñaki Arenaza 2006-12-29 21:17:43 +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
8ab91a5b1a MDL-8016 A language string for blog needs to remove "\n". 2006-12-29 20:36:05 +00:00
skodak
636069a369 MDL-8021 resource "Link to a file or web site", when created, doesn't open in a new window - fixed recourse typo 2006-12-29 20:16:50 +00:00
skodak
6ee78ceeaf 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
2006-12-29 18:33:41 +00:00
moodler
e623c5c689 Automatic installer.php lang files by installer_builder (20061229) 2006-12-29 03:07:43 +00:00
ikawhero
96ed722ba3 Minor change so code works on all versions of PHP 2006-12-29 02:36:41 +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
ebff6e2c5e better code formatting 2006-12-28 16:44:47 +00:00
jamiesensei
b6d15ddef9 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. 2006-12-28 16:12:22 +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
moodler
ccbcb1a893 Automatic installer.php lang files by installer_builder (20061228) 2006-12-28 03:08:48 +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
skodak
adb61bc203 MDL-7950 Display only new messages option and other minor changes in jsless messaging ui 2006-12-27 16:06:17 +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
moodler
b8d4068893 Automatic installer.php lang files by installer_builder (20061226) 2006-12-26 03:11:17 +00:00
skodak
eb449c584d MDL-7956 Add frameless and JSless message composition option - message text area a bit smaller 2006-12-25 22:38:56 +00:00
skodak
531e58f1b2 MDL-7956 Add frameless and JSless message composition option 2006-12-25 22:34:05 +00:00