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
dhawes
68fbd8e13e
more phpdoc work
2005-07-12 03:09:25 +00:00
dhawes
bbd3f2c461
phpdoc comment work
2005-07-12 02:06:33 +00:00
skodak
95bfd2078b
merged from MOODLE_15_STABLE
2005-07-04 20:23:53 +00:00
gustav_delius
e0c5c5e974
Remove potential PHP notices when $course is not an object.
2005-07-01 17:21:52 +00:00
fiedorow
952284c1b0
Fix for bug #3607
2005-06-23 11:43:20 +00:00
thepurpleblob
85ab74001a
merged from STABLE
2005-06-23 09:04:16 +00:00
thepurpleblob
415b7eac8e
merged from STABLE
2005-06-21 12:30:34 +00:00
thepurpleblob
220776acdd
Merged from STABLE
2005-06-20 09:15:30 +00:00