Commit Graph

658 Commits

Author SHA1 Message Date
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
mjollnir_ 79a1029455 Merged from MOODLE_15_STABLE: Metacourse unenrolling: fixes bug #4541 2006-01-10 01:19:44 +00:00
stronk7 2412b5ab1b Avoid one notice if the dataroot/lang dir doesn't exist. 2006-01-07 10:00:49 +00:00
stronk7 46115724f5 New current_charset() function added.
Merged from MOODLE_16_UTF8. Abandoning the branch.
2006-01-05 16:04:26 +00:00
moodler d3f9f1f85d Moving some functions to setuplib.php so they are first 2006-01-05 07:08:10 +00:00
moodler 6aaa17c7cc Merging language-pack-related updates from Eloy's MOODLE_16_UTF8 branch.
Do not use that branch any more!!
2006-01-04 08:23:42 +00:00
skodak c59733ef80 improved comments for parameter types (PARAM_XXX) 2005-12-30 15:54:19 +00:00
toyomoyo 33c3578684 changed get_list_of_languages, now checking *_local lang folders, also getting $string['thislanguage'] string from langconfig.php for 1.6 unicode packs 2005-12-21 02:06:25 +00:00
patrickslee 7fb0fec757 Fixed courses and subcategories in an invisible category being visible (Bug #4074)
This patch is different from the one form MOODLE_15_STABLE as it used the stored path in category data.
2005-12-13 04:05:04 +00:00
dhawes f5ecb599ec PHPDoc todo tags added to functions called out as close to EOL 2005-12-10 16:40:23 +00:00
toyomoyo a266c90455 fixes bug 4400 2005-12-02 02:26:39 +00:00
toyomoyo 8f23e33bf7 merged from stable, makes autologin guest possible at site level 2005-11-28 02:23:11 +00:00
skodak 4d7c4f7f5c Do not use set_default() and isset_param(), becasue those ugly hacks will be removed SOON!! 2005-11-15 23:32:22 +00:00
skodak 5d7a9f5669 PARAM_BOOL now detects on and off values + UNCHECKED_VARS detection; merged from MOODLE_15_STABLE 2005-11-15 23:28:10 +00:00
skodak 578dcc4019 add GLOBALS overwrite protection and improved magic_quotes_gpc hack SC#191, SC#184, SC#92; merged together with Jon's last patch from MOODLE_15_STABLE
also removed the broken unregister_globals() function
2005-11-14 22:53:44 +00:00
mjollnir_ 860cea3526 Merged from MOODLE_15_STABLE: Getting directory sizes with du - use escapeshellarg on the file/directory as unzipping files on the server can result in filenames that need escaping 2005-11-13 21:19:23 +00:00
moodler fa22fd5fff BIG FEATURE - MULTIPLE GROUPS
Users can now be assigned to multiple groups.  Thanks Yu!
Break out the Bob Marley!!

Otherwise groups work more or less like they did before.

This has been pretty well tested by Yu and myself, but since Yu started
uncovering lots of existing groups bugs it's possible there may be still
a few corner cases still lurking here and there.

Please help test this thoroughly for 1.6!!
2005-11-08 07:19:27 +00:00
moodler 3cf4fa0cea Ooops. 2005-10-31 08:35:14 +00:00
moodler fd5d7fad8b Fixed a bug in isediting() which ignored the $user parameter. 2005-10-31 06:06:41 +00:00
defacer b2b68362c2 I just worked with a few functions which had misleading or no PHPdoc
comments, so it was a good excuse to fix the situation a bit.
2005-10-24 17:25:29 +00:00
patrickslee 80bfd47024 Made clean_param() supports recursive cleanup of arrays 2005-10-12 01:29:34 +00:00
patrickslee aef46c081f Fixed various bugs in add_teacher() those caused the function not populating record correctly (Merged from MOODLE_15_STABLE) 2005-10-10 21:41:21 +00:00
stronk7 3de938d705 Added one check to test that the zipfile in unzip_file() is real! 2005-10-02 18:40:13 +00:00
dhawes c40082bff8 fixed copy/paste error in php comment tag 2005-10-02 13:52:50 +00:00
stronk7 360ceb487b Modified clone() method to work better under PHP 4. Credit goes to Julian.
Merged from MOODLE_15_STABLE
2005-09-29 16:38:26 +00:00
gustav_delius 1c349f7fa2 fix to isstudent() for student view feature, see bug 4113 2005-09-25 21:44:09 +00:00
gustav_delius 57bc53c652 Made student view work also for admins.
Also modified isstudent() function to take student view into account.
2005-09-25 17:30:51 +00:00
skodak 1c6932d825 new session timeout handling + gecko fix in moodlelib.php - merged from MOODLE_15_STABLE 2005-09-23 18:38:50 +00:00
mjollnir_ 9284a728b7 Merged from MOODLE_15_STABLE: Much more sophisticated IP address cleansing 2005-09-08 23:04:23 +00:00
patrickslee dd875f1aa2 Finally the *correct* fix for the looping problem. Thanks to Penny (Merged from MOODLE_15_STABLE) 2005-09-07 04:23:37 +00:00
patrickslee 488b94689d The report_session_error() fix does not work all the times. Proper fix here.(Merged from MOODLE_15_STABLE) 2005-09-06 22:16:27 +00:00
mjollnir_ 3bff4935eb Merged from MOODLE_15_STABLE: Further tidyup to the cleanremoteaddr function I added - some thing were getting through 2005-09-06 21:34:02 +00:00
patrickslee c9e2e3ffcf Fixed a rare problem that report_session_error() causes a redirection loop (Merged from MOODLE_15_STABLE) 2005-09-05 23:48:42 +00:00
mjollnir_ 51332190b9 Merged from MOODLE_15_STABLE: 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:33:02 +00:00
martinlanghoff 4b598ff45b Merged from MOODLE_15_STABLE - 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:44:02 +00:00