Commit Graph

692 Commits

Author SHA1 Message Date
skodak 164099fd14 merged cleaning of array params from HEAD 2005-10-31 22:10:09 +00:00
patrickslee 763f3766a8 Fixed various bugs in add_teacher() those caused the function not populating record correctly 2005-10-10 21:39:43 +00:00
stronk7 66fd3fb7ff Modified clone() method to work better under PHP 4. Credit goes to Julian. 2005-09-29 16:36:02 +00:00
skodak 184e03b294 new session timeout handling 2005-09-23 18:28:15 +00:00
julmis d0491a1fef Faster version check for Gecko and work-a-round for "No IDN" problem. 2005-09-13 11:49:40 +00:00
mjollnir_ 1068ba8d27 Much more sophisticated IP address cleansing 2005-09-08 23:04:10 +00:00
mjollnir_ 72ed1089dd Further tidyup to the cleanremoteaddr function I added - some thing were getting through 2005-09-07 04:45:52 +00:00
patrickslee fe18e430f7 Finally the *correct* fix for the looping problem. Thanks to Penny 2005-09-07 04:22:03 +00:00
patrickslee 6fcc3fab2c The report_session_error() fix does not work all the times. Proper fix here. 2005-09-06 22:15:42 +00:00
patrickslee 67ba380ec9 Fixed a rare problem that report_session_error() causes a redirection loop 2005-09-05 23:46:08 +00:00
mjollnir_ 926a759c71 Performance fix for get_directory_size: new config option for path to du - if we have it, use that instead. MUCH faster on directories with a lot of files 2005-09-05 05:30:53 +00:00
martinlanghoff 8ade954b60 auth - bugfixes: update_userinfo() did not truncate values, and did not have proper errorhandling; user creatiwas passing an id to set_user_preference when we wanted an object 2005-09-02 06:42:33 +00:00
defacer 0be62652d1 Merging from HEAD:
Fix for bug 3981 (also quite lively discussed at
http://moodle.org/mod/forum/discuss.php?d=29564):

When the user was not logged in and was not a guest, DST compensation was not
being done. I guess deciding to store the computationally expensive DST cache
in $USER was a major oops on my part. I 've moved everything to $SESSION and
now it works as it should.
2005-08-30 03:31:17 +00:00
martinlanghoff 8e0b42fb88 enrolment fixes: We now have better handling of the enrol field when dealing with student enrolments. This fixes bugs 3912 and 3974. NOTE that enrol_student() now defaults to manual - this is to support the different pages that call enrol_student() to still work correctly when external enrolments are in use, by recording the enrolments as manual. Enrolment plugins are expected to know better and pass the correct parameter. 2005-08-26 06:07:42 +00:00
mjollnir_ 5747bf91e5 Fixing metacourses to work in mysql 3.23 series. At same time, set enrolment type to 'metacourse' so as not to break some external enrolment (eg ldap) plugins 2005-08-23 05:33:12 +00:00
mjollnir_ 7e61008580 Clean up IP addresses from getremoteaddr. Otherwise we sometimes get weird results from proxies and inserts into mdl_log and mdl_user fail 2005-08-18 01:44:10 +00:00
martinlanghoff 29ad8bfe68 Tell insert record we don't care about inserted id 2005-08-16 00:42:42 +00:00
martinlanghoff 0b7c884132 Enable reset password functinoality for LDAP and other external auth mechanisms as promised in the auth config page 2005-08-15 22:27:47 +00:00
moodler 8bc776ba4f Slightly mkore reobust in the case where https was already being used
for the whole site.      bug 3848
2005-08-09 15:14:49 +00:00
moodler 088e28666f Added sso hook (not used by anything but helps some hacking) 2005-08-01 08:39:09 +00:00
moodler 68bdb2856a Also support language files in install/lang (but just for installation) 2005-07-25 11:25:05 +00:00
stronk7 ade1548ded Try to maintain user preferences synchronised between DB and $USER. 2005-07-21 18:46:42 +00:00
stronk7 8886ee0942 Updated preventpassindb to work properly.
(sometimes db password wasn't being updated
to 'not cached' properly).
2005-07-15 11:11:08 +00:00
ikawhero 0e48704206 Use absolute path name for include. Bug 3660. 2005-07-15 00:04:08 +00:00
stronk7 a4e53fb1f4 Added HTTPSPAGEREQUIRED support to some mail functions. 2005-07-15 00:00:07 +00:00
stronk7 4de514f468 Add the httpsrequired() function to be 100% SSL in some pages. 2005-07-14 19:39:23 +00:00
stronk7 208af78ccd SC#106 2005-07-14 15:16:03 +00:00
moodler 0ef1487687 Fix for bug 3736 2005-07-12 11:36:50 +00:00
skodak 3fa1abaa40 new PARAM_SAFEDIR - fast cleaning for directories used in include() and require() such as themes, plug-ins, formats... 2005-07-04 19:48:26 +00:00
fiedorow e26aaed2a4 Fix for bug #3607 2005-06-23 11:29:34 +00:00
thepurpleblob 5fe35ab0e3 improved name of function - clean_getstring_data() - and call it only
is data is actually defined.
2005-06-23 09:02:45 +00:00
thepurpleblob 1a08f75e50 Improved 'cleaning' of optional data parameter in get_string() to include objects 2005-06-21 12:29:03 +00:00
thepurpleblob ecc0c8b802 Escape % signs in get_string() function optional parameter. Bug #3527 2005-06-20 09:08:48 +00:00
mjollnir_ d7083e8737 Email bounce handling: fixing md5 validation bug 2005-06-13 00:16:55 +00:00
martinlanghoff 6eabcba137 Auth fields were not being re-fetched on every login as expected. Fixed. 2005-06-07 23:19:45 +00:00
thepurpleblob f24e18ee85 Added assert_var_set() - part of trying to deprecate required_variable (which
is used in two different ways)
2005-06-07 12:35:39 +00:00
martinlanghoff 4f6af1254b get_config() now preserves CFG if DB fails or is empty 2005-06-01 06:57:09 +00:00
martinlanghoff cdbba24134 First cut of field locks support. functional but missing strings and support for LDAP/DB modules.
- Extended set_config()
- Implemented get_config() which takes over $CFG loading in setup.php
- admin/auth.php has special handling if post vars starting in pluginconfig_
- admin/auth.php print_auth_lock_options() prints a form fragment -- being called from most plugins now
- user/edit.php follows the new convention when locking down fields, both javascript UI and on POST.
2005-05-31 05:36:41 +00:00
mjollnir_ 8c28ed7838 Fixing up problem in generate_email_processing_address -- using sitesecret rather than siteidentifier 2005-05-30 23:25:56 +00:00
moodler 260d699c17 Added limit of 900 characters to subject line, to prevent overflows 2005-05-30 18:09:03 +00:00
stronk7 83c5e8f6b1 format_string() applied once deleting courses...
Merged from HEAD
2005-05-29 17:32:18 +00:00
moodler ac6e8f1133 $CFG->ignoresesskey can override all sesskey checking 2005-05-28 14:02:53 +00:00
moodler 3bcee5d4c7 Fixed a missing global 2005-05-28 06:38:10 +00:00
moodler 27437410f4 file survey.php was added on branch MOODLE_15_STABLE on 2006-03-10 07:27:54 +0000 2005-04-05 20:54:43 +00:00
stronk7 ca9bfcd048 New string available in langconfig.php: oldcharset 2006-01-18 16:06:09 +00:00
toyomoyo ab638383d2 bug fix for 4594 2006-01-17 04:29:33 +00:00
martinlanghoff 99a14a54e8 setnew_password_and_mail() gives users a tmp passwords and emails a notice. 2006-01-16 02:51:02 +00:00
defacer 85e0be2aaa Seems I got the only remaining instance of set_default(),
so it's time to draw the curtains.
2006-01-15 01:52:07 +00:00
stronk7 5eedb21ee1 Always search for languages in both directories, else, one could
be stroking the other.
2006-01-13 14:43:51 +00:00
mjollnir_ 1404079794 added useful function array_is_nested to moodlelib;
added choose_from_menu_nested which takes a nested array and prints
<optgroup> for first level of array and then <option> under that
2006-01-11 02:22:16 +00:00