836 Commits

Author SHA1 Message Date
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
skodak
f71346e29a require_login not working properly MDL-7800 2006-12-05 09:19:26 +00:00
skodak
5301205a24 MDL-7757 URL check is too restrictive, allow port 2006-12-03 10:23:56 +00:00
skodak
1437f0a5e3 conversion of login/change_password.php to new formslib and other changes:
* new formslib
* works only when logged in - added redirection to login page for guests or not logged in yet
* fixed redirects when logging in and on forced password change
* "Logged in as" users are not allowed to use this form
* general cleanup
2006-12-02 14:38:31 +00:00
skodak
81f5d4a102 MDL-7234 Smilies don't load in HTML editor for some languages 2006-12-01 09:48:40 +00:00
skodak
9cdb766d61 Broken handling of magic quotes in admin settings and set_config in general MDL-7668 2006-11-27 08:44:38 +00:00
toyomoyo
b6c59cf796 merged, fixed hard coded auth method "ldap" 2006-11-21 02:08:59 +00:00
tjhunt
123545bc4f MDL-7607 - sync_metacourse is unnecessarily slow 2006-11-20 16:45:24 +00:00
vyshane
f68a7947bd Merged from 1.7 2006-11-15 08:07:32 +00:00
toyomoyo
4158fd81ce merged fix for MDL-6928, correcting checks for auth_iscreator 2006-11-15 03:40:18 +00:00
skodak
810944af7f we are going 100% unicode now - removed use of $CFG->unicodedb and current_charset(); MDL-7439 - part 2, only hotpot and wiki left 2006-11-11 17:23:20 +00:00