moodler
089e8937f7
Removing delDirContents because we already have remove_dir
2006-02-06 04:03:30 +00:00
mjollnir_
510b75ae64
Merged from MOODLE_15_STABLE: Moved check_dir_exists function from backup/lib.php to moodlelib
2006-02-02 20:30:34 +00:00
moodler
0302c52fd2
adding a require_logout() function =)
2006-01-24 06:00:32 +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
defacer
2280ecf537
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:27:52 +00:00
martinlanghoff
a6d114e600
Merged from MOODLE_15_STABLE - 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:11:38 +00:00
mjollnir_
755c8d5870
Merged from MOODLE_15_STABLE: 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:43:02 +00:00
mjollnir_
d13dc4ac8c
merged from MOODLE_15_STABLE: 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:47 +00:00
martinlanghoff
06ba0b0452
Merged from MOODLE_15_STABLE - Tell insert record we don't care about inserted id
2005-08-16 00:43:56 +00:00
martinlanghoff
f209eb9d34
Merged from MOODLE_15_STABLE - Enable reset password functinoality for LDAP and other external auth mechanisms as promised in the auth config page
2005-08-15 23:19:58 +00:00
thepurpleblob
f85c067f85
Removed some commented out code from studentview additions.
2005-08-15 13:14:36 +00:00