Commit Graph

858 Commits

Author SHA1 Message Date
skodak d927621bf3 fixed missing global CFG - merged from MOODLE_18_STABLE 2007-03-14 21:56:09 +00:00
tjhunt 6cad9e6069 MDL-8772 - Use the same list of places to search in get_string and help.php. Merged from MOODLE_18_STABLE. 2007-03-14 20:15:20 +00:00
skodak 531468274f MDL-5229 and MDL-6196 adding gb18030 mime header encoding; merged from MOODLE_18_STABLE 2007-03-12 08:41:28 +00:00
skodak 854f5ef034 MDL-8834 smtp debugging can now be turned off - now independent on $CFG->debug; merged from MOODLE_18_STABLE 2007-03-09 20:16:48 +00:00
skodak e50916c80f MDL-6196 minor related cleanup - should not be needed to backport it; merged from MOODLE_18_STABLE 2007-03-08 00:10:49 +00:00
moodler eef879ecdb Merged patches from MDL-8385 from 1.8 stable 2007-03-07 13:45:41 +00:00
skodak 18ceee5c25 MDL-8777 Failing setup_lang_from_browser if lang contains dash; user lang preference not respected 2007-03-06 23:51:34 +00:00
skodak 279948083b MDL-8777 Failing setup_lang_from_browser if lang contains dash 2007-03-06 22:33:03 +00:00
tjhunt 06565ec739 Add a couple more plugin types to get_string that Martin missed yesterday. 2007-03-06 07:57:22 +00:00
skodak 346c3e2f5f MDL-8765 user preference code cleanup; merged from MOODLE_16_STABLE 2007-03-05 20:02:27 +00:00
moodler 191cb01663 More paths for string files 2007-03-05 12:13:36 +00:00
moodler e6f5c879bf Merged small notice fix from stable 2007-03-05 04:47:49 +00:00
moodler ec249a4d25 Merged extension to check_browser_version from MDL-8417 (Nick) 2007-02-28 07:54:40 +00:00
moodler 6ba65fa08d Merged Nicolas' changes from MDL-8582 into HEAD. 2007-02-28 06:25:22 +00:00
skodak dd0feda5c2 MDL-8669 broken auth signup code 2007-02-27 10:22:33 +00:00
skodak fc12edcd5d MDL-8639 fixed installation notices 2007-02-23 20:25:16 +00:00
skodak c57dcb62c2 MDL-8590 auth cleanup - reset password cleanup+fixes 2007-02-22 22:20:51 +00:00
skodak 9696bd8966 MDL-8590 auth cleanup - part 7 and MDL-8598 2007-02-21 21:48:48 +00:00
skodak 1679334034 MDL-8590 auth cleanup - part 3 2007-02-20 17:15:13 +00:00
toyomoyo 217a8ee950 made some changes so that if a user has any roles assigned in context_module or context_block with moodle/site:manageblocks or moodle/course:manageactivities, he will see the "turn editting on" button without needing to have a role assigned at context_course with moodle/course:manageactivies capability. Of course this user would not be able to edit any blocks or modules he/she is not supposed to edit. Ajax for these users with partial editing privilages are locked. Please report bugs asap as we are looking at backporting this change to 1.8. Cheers. 2007-02-16 07:57:19 +00:00
moodler a59e5a1c92 Merged removal of weeks from format_time from stable 2007-02-15 03:14:40 +00:00
moodler 5602f7cf2e 1) Don't force changepassword during loginas
2) Added weeks and years to format_time()
2007-02-15 02:53:00 +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