638 Commits

Author SHA1 Message Date
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
thepurpleblob
367b841305 Added 'studentview' button functionality. 2005-08-15 12:53:57 +00:00
moodler
cac429bca4 Merging fix for bug 3848 from stable 2005-08-09 15:16:23 +00:00
moodler
0274d27737 Merged changes to support install/lang 2005-07-25 11:26:03 +00:00
moodler
7ad9dd54e6 Added get_list_of_currencies() 2005-07-22 17:30:05 +00:00
stronk7
49d005eefa Try to maintain user preferences synchronised between DB and $USER.
Merged from MOODLE_15_STABLE
2005-07-21 18:48:26 +00:00
stronk7
01d6bd424a Updated preventpassindb to work properly.
(sometimes db password wasn't being updated
to 'not cached' properly).

Merged from MOODLE_15_STABLE
2005-07-15 11:19:31 +00:00
moodler
01af6da601 Added hooks for new SSO capability (Single-Sign-On or Second-Sign-On) 2005-07-15 04:26:18 +00:00
stronk7
c4eeb30137 Added HTTPSPAGEREQUIRED support to some mail functions.
Merged from MOODLE_15_STABLE
2005-07-15 00:04:51 +00:00
ikawhero
463a92dbef Use absolute path name for include. Bug 3660. 2005-07-15 00:00:35 +00:00
stronk7
d7697d0ec0 Add the httpsrequired() function to be 100% SSL in some pages.
Merged from MOODLE_15_STABLE
2005-07-14 19:44:42 +00:00
moodler
18259d4fd3 Adding the capability to replace existing scripts with customised versions.
See config-dist.php for more info.

Will add an admin interface for this later.

Shane.
2005-07-14 15:35:23 +00:00
stronk7
244b4e8f7c SC#106
Merged from MOODLE_15_STABLE
2005-07-14 15:18:51 +00:00
moodler
ba17c5d47c Fix for bug 3736 for more robustness in delaing with bad lang packs 2005-07-12 11:35:30 +00:00