Commit Graph

846 Commits

Author SHA1 Message Date
nicolasconnault 40e2eda7ae Added support for Opera and Safari in check_browser_version (MDL-8417) 2007-02-28 07:39:46 +00:00
nicolasconnault 7c08ef3653 Fixed MDL-8582
Not sure if the hotpot module is converting ampersands correctly. $heading and $title are set up differently than in other modules: instead of outputting $course->title, a temporary $title variable is created and assigned that value. That made it difficult for me to decide whether it was already formatted elsewhere or not.

Also I didn't format_string() any of the variables included in $navigation rings, because I assume these strings get processed by print_navigation(), which includes format_string().
2007-02-28 05:36:13 +00:00
skodak 551f0b5d7e MDL-8669 broken auth signup code; backported from HEAD 2007-02-27 10:25:55 +00:00
skodak a453501cdc MDL-8639 fixed installation notices; backported from HEAD 2007-02-23 20:26:20 +00:00
skodak e8c5ac5251 MDL-8590 auth cleanup - reset password cleanup+fixes; backported from HEAD 2007-02-22 22:25:18 +00:00
skodak ea40ec3c8f MDL-8590 auth cleanup - part 7 and MDL-8598; backported from HEAD 2007-02-21 21:52:31 +00:00
skodak a2d6e38bd9 MDL-8590 auth cleanup - part 3; backported from HEAD 2007-02-20 17:23:08 +00:00
moodler c3c9612c1c More fixes for format_time().. I removed weeks because they are a bit of a
language pack problem  (we already have a string 'week' = "Week" which we can not
re-use)
2007-02-15 03:13:32 +00:00
moodler e5da5f70ef FIxed some format_time changes that I checked in accidentally 2007-02-15 02:51:40 +00:00
moodler 864a2b3414 Can now login usefull as someone even if they require password change 2007-02-15 02:42:16 +00:00
moodler f855cdad60 Old fix for site names with apostrophes in them 2007-02-13 03:16:22 +00:00
toyomoyo e51917eb12 fix for MDL-8480 external db user lang sync problem 2007-02-13 03:08:27 +00:00
moodler ab036ed9ca Feature from Eloy to set the language to whatever the browser suggests (if the user is not logged in) 2007-02-12 14:58:44 +00:00
stronk7 d148c0ed5c Delete backup records on course delete. MDL-8314
Merged from MOODLE_17_STABLE
2007-02-09 00:13:18 +00:00
skodak 39de90acd5 MDL-8223 allow also numeric string '1' as site id in require_course_login() 2007-01-30 21:23:29 +00:00
nfreear 3c13f52413 Follow-up fix for bug MDL-8223 "require_course_login() cleanup" 2007-01-30 10:10:39 +00:00
stronk7 2ac48f4811 Applying new rs_xxx() functions everywhere. MDL-8134
Merged from MOODLE_17_STABLE
2007-01-29 10:55:22 +00:00
skodak 9152fc9938 MDL-8323 finished full conversion to proper $COURSE global - no more $CFG->coursetheme, $CFG->courselang - improved course_setup(), current_language() and current_theme(); and Chameleon theme fixes needed for global $COURSE
MDL-7962 chat seems to be completely broken in head (fixed wrong JS)
* reworked chat themes support
MDL-8338 Cron does not need cookies
MDL-8339 forum cron capabilities problems
* minor deprecated function current_encoding() cleanup
2007-01-28 21:18:08 +00:00
skodak 083c3743d3 MDL-7977 - updated guest and loggedin detection in login block; removed obsolted $USER->loggedin (now tested with empty($USER->id) in isloggedin()) and $USER->site (replaced by session test cookie)
MDL-5429 - skip https login for guestlogins
2007-01-27 21:28:26 +00:00
skodak dcf6d93c9c MDL-8323 Add proper setup of course $CFG variables, fix use of global $COURSE
new function course_setup() thats does proper $CFG-> , locale and themes setup much sooner than print_header() originally (needed for MDL-8067), cleanup of forgotten global $course issues

MDL-8067 Fixed several $HTTPSREQUIRED issues - html editor now loads from https (the old hack did not wotk with IE7, new hack is uglier but works), fixed formlibs images (we can not set them in library global scope, we must wait for httpsrequired() and require_login() and od that in function), fixed links in meta.php, fixed help images

fixed setting of new $USER values in user edit forms
2007-01-27 19:56:08 +00:00
skodak 29c7e08328 MDL-8096 - fixed set_user_preference() weirdness, you could not pass $USER->id as $otheruser parameter 2007-01-25 18:17:57 +00:00
moodler 8f8de2cc87 Made is_mnet_remote_user() a bit more robust MDL-8253 2007-01-22 08:25:20 +00:00
skodak 53467aa6e9 code cleanup - added proper object and array initialization 2007-01-20 14:06:07 +00:00
skodak 2d4beaff07 cosmetic fix - added missing global $SESSION in require_logout() 2007-01-20 13:39:38 +00:00
nfreear 2dee6abd1d Fixes bug MDL-8233, "Delete course action, groups typos and groupings not deleted" 2007-01-20 10:57:47 +00:00
skodak 60f9e36ee8 MDL-8223 - last global $course hacks removed 2007-01-19 10:29:03 +00:00
skodak 39e829367a MDL-8223 - added detection of wrong course id 2007-01-19 09:54:25 +00:00
skodak 33ebaf7c6a MDL-8223
require_login issues:
* does not accept $course object as parameter - see require_course_obejct()
* always uses global $course even when courseid empty
* overrides global $course - problem it contains something else than $course object

require_course_login issues:
* does not accept courseid as parameter
* does not pass $cm to require_login when forced login to site - not a major issue because there are extra visibility checks in modules - we can remove them now ;-)
2007-01-19 09:44:26 +00:00
martinlanghoff 8d13ed1414 mnet: clean_param() fixed a leftover debugging statement - x2 2007-01-18 02:31:42 +00:00
martinlanghoff f543c0c392 mnet: clean_param() fixed a leftover debugging statement 2007-01-18 02:22:35 +00:00
martinlanghoff 9220fba598 get_config(): return a single value instead of a record when called with 2 params
get_config() was meant to return a single value when called with 2 params,
however, it never did. Change it to Do The Right Thing, and audit all callers.
2007-01-16 23:25:19 +00:00
tjhunt b317007212 MDL-8165 - Admin setting to control which roles are synced to metacourses 2007-01-12 18:03:36 +00:00
donal72 b7b50143f3 Auth: Bugfix: MDL-8131 2007-01-10 00:50:59 +00:00
moodler 7cd2f598aa More XHTML strict - removed image borders and height/width 2007-01-05 12:58:22 +00:00
skodak 7150226896 MDL-7861 xhtml strict fixes - fixed all <br> in our code 2007-01-04 23:38:17 +00:00
moodler 81693ac7f1 Make logout work without needing openssl MDL-8070 2007-01-04 08:32:50 +00:00
martinlanghoff 63b1e3513b mnet: fixed merge typo 2007-01-04 03:26:24 +00:00
martinlanghoff 03d820c788 mnet: changes to core moode libs
- get_user_listing() is now aware of remote users
 - require_login() is now aware of remote users
 - new auth plugins infrastructure in place
 - is_internal_auth() is now a deprecated legacy call
 - create_user_record()/update_user_record()/authenticate_user_login() handle multi-auth
 - is_mnet_remote_user() checks for remoteness
 - clean_param() handles PARAM_PEM and PARAM_BASE64

Also
 - user_login_string() knows to offer a link to remote users to login @ their host
 - XMLTDBTable field creation returns the field obj so that
   the caller has a chance to set additional properties such as comment
2007-01-04 02:52:44 +00:00
moodler f4ba7e1a54 Bend over for XHTML 1.0 Strict ... MDL-8049
Removed Javascript language attribute tags and added CDATA
2007-01-03 14:44:17 +00:00
skodak 2a919fd7fe MDL-7977 new isguestuser() function implementation 2007-01-01 13:36:42 +00:00
skodak b7b9786414 MDL-8029 removed obsoleted use of isadmin() from authenticate_user_login() 2006-12-30 21:32:53 +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 711fb62baf MDL-7829 zipping with binary zip broken under windows when moodledata on different disk 2006-12-29 22:52:01 +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
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 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
tjhunt 9dae915acb New param type: PARAM_NUMBER, for floating point numbers. 2006-12-22 13:29:20 +00:00
toyomoyo 077f381461 accessiblity, associating <th> with respective row or col 2006-12-13 08:24:23 +00:00
sam_marshall ae628043a0 MDL-7401 Course format database/backup/lang/stylesheet/capability support 2006-12-11 15:47:23 +00:00