Commit Graph

2264 Commits

Author SHA1 Message Date
moodler 61451a361a Improvements to add_teacher 2004-06-24 12:51:25 +00:00
moodler a2fa19d87c Merged in latest changes from STABLE 2004-06-21 13:07:44 +00:00
moodler 8a33e3717d Based on code from Janne - this allows secure logins via https
$CFG->loginhttps

After logging in via https, Moodle returns to a normal http URL


More info:  http://moodle.org/mod/forum/discuss.php?d=8555
2004-06-19 16:13:28 +00:00
gustav_delius 6e506bf902 Fixed bug 1535. Unless $CFG->forum_replytouser is set to 1 AND the user has set maildisplay nonzero, the address $CFG->noreplyaddress is sent instead of the user's address. 2004-06-06 12:49:55 +00:00
moodler cdac797c5d Moodle will look for language files within modules as a last resort.
eg   moodle/mod/somemodule/lang/en/somemodule.php
2004-05-24 09:19:59 +00:00
moodler b5b90f269d Removed a warning message 2004-05-22 04:02:02 +00:00
moodler a32c99e288 To prevent notices in unusual situations (empty lang files) bug 1404 2004-05-16 09:28:41 +00:00
moodler 16a5602cd7 1. Directory Resources now support sub directories
2.  Subdirectories in File Manager now display their total size
2004-05-16 08:52:32 +00:00
stronk7 2127fedda8 Step 2 of Bug 1223 done.
(http://moodle.org/bugs/bug.php?op=show&bugid=1223)
2004-05-16 00:36:00 +00:00
moodler 58d2472072 Some fixes for confirmation emails on sites with long names
- include a HTML version of the email

   - wrap all text emails at 79 characters now, not 70
     I think quoting of text based emails on 80-character terminals
     would be pretty rare these days
2004-05-13 03:09:47 +00:00
gustav_delius 8644437d66 fixed bug 1037 by improving clean_filename() 2004-05-07 17:07:31 +00:00
moodler b68dca1934 Moodle mail can set precedence levels for email 2004-05-07 03:29:11 +00:00
moodler 319b472958 Fix for bug 1312 ... just for robustness in the URLs 2004-05-06 03:11:15 +00:00
gustav_delius dcd338ffdc Events associated to hidden activities are now invisible in calendar, using new field 'visible' in table 'event' which is updated each time a course module is hidden or unhidden. 2004-05-05 07:07:56 +00:00
moodler bf5c2e8445 FIxed a logic bug when getting files ... bug 1305 2004-05-04 01:21:17 +00:00
moodler 55fd81779e This is required for directory resources 2004-05-02 15:31:23 +00:00
moodler 0cb77f5adf Fixing a recent change to get_list_of_plugins that was causing
auth/db to be invisible    bug 1245
2004-04-20 15:14:15 +00:00
moodler 81fcd0f019 Bug fix in get_directory_list() for files named 0 :-) 2004-04-17 14:01:53 +00:00
moodler bbf4d8e656 Simplification and improvement of clean_filename, thanks to suggestions
from Martin Langhoff <martin@catalyst.net.nz>
2004-04-16 06:30:01 +00:00
stronk7 c7f3fdf70c Modified the clean_filename() function to strip parenthesis and slashes.
Not really sure if the method used is 100% correct ot no so, if you can
check it....
Perhpas I should make the stripping in backup process, istead of using this
central function. What do you think?
2004-04-14 18:09:41 +00:00
stronk7 1a930732ba Exclude "db" dir when detecting plugins (to be used in blocks
registration). No problems (I think) at all with mod registration.
2004-04-10 23:44:50 +00:00
defacer f30fe8d063 As per Martin's suggestion:
Added new function: get_user_timezone($timezone = 99) which retrieves
the user's timezone, respecting the $USER->timezone and $CFG->timezone
settings.

Modified all date/time library functions to use this.
2004-04-01 12:27:37 +00:00
defacer f3d142dae4 Fix for the fix: Turns out that next() returns false if an array element's
value is 0 (the php docs speak only about the key... :/). Good thing that my
test user's timezone is set to GMT+0. This should work no matter what.
2004-04-01 11:29:25 +00:00
defacer a36166d327 The timezone selection didn't work correctly... if there WAS a $USER->timezone
set but it was set to 99, it didn't check the $CFG->timezone setting.
Fixed now. Fancy implementation, forgive me please! ;)
2004-04-01 10:39:06 +00:00
defacer d8ba183c39 Checking for the $CFG->timezone value as a last resort in the various user
date/time functions didn't work because there was no global $CFG; :O
2004-04-01 10:11:20 +00:00
moodler 1265952149 - Fixed timezone calculations when user isn't present, and
- format_float now defaults to one decimal place
2004-03-25 15:29:40 +00:00
moodler 84bbca5355 When unenrolling a student from ALL courses, delete group memberships 2004-03-10 13:45:23 +00:00
moodler abc3b857a2 Fixed some copyrights 2004-03-10 13:23:00 +00:00
moodler 4b6d8dd545 Better notice for people not in a group who are trying to see a
SEPARATE activity.
2004-02-24 07:12:56 +00:00
moodler 1e03c552e3 Reverting a bad bug recently introduced by Petri which meant
Moodle couldn't create any new directories ...   :-(
2004-02-20 14:12:49 +00:00
moodler cadb96f29e GUI to allow disabling of user email addresses (from user profile) 2004-02-20 10:27:24 +00:00
moodler eb6147a8bb For the group functions, a group 0 means everyone 2004-02-19 17:56:52 +00:00
paca70 94b9a1ca02 First changes for creating help-translation system.
http://site/files/index.php?fi=lang
shows now selected language "lang" files.
2004-02-19 10:13:07 +00:00
moodler ac8abb5f6a DOn't set CFG->courelang unless it means something 2004-02-15 14:34:13 +00:00
moodler e5415d580a Bug fix for languages in emails and possibly elsewhere that could
happen with blank variables.
2004-02-15 14:33:13 +00:00
moodler c3cbfe7fdf New function setup_and_print_groups() makes it much easier to set
up groups everywhere else.
2004-02-15 07:13:08 +00:00
moodler 082e3ebc4f WHen emptying a course, delete groups and events 2004-02-15 05:08:00 +00:00
moodler 0f6f62cbdb Removing the is_windows function ... instead, use the global define PHP_OS 2004-02-14 02:49:56 +00:00
moodler 016bfc83bc A new is_windows function 2004-02-13 08:34:39 +00:00
moodler 90207a06e3 Use a site-defined timezone if one is defined 2004-02-12 05:55:04 +00:00
moodler 0e2585ac0f Reject Opera when it is pretending to be IE 2004-02-10 14:20:44 +00:00
moodler e11dc9b682 Another little hack to complete the course-level forcelanguage 2004-02-10 08:10:04 +00:00
moodler 0cc6fa6a1f Emails can take on course language as well 2004-02-09 08:49:54 +00:00
moodler b3153e4b7d Small hack to force a particular language within a course.
No interface on course/edit.php ... I want to try this on
moodle.org for a while to try and stop the encoding problems
2004-02-09 07:31:04 +00:00
moodler 9b591be622 Better error messages for restricted users 2004-02-04 12:59:05 +00:00
stronk7 0180f73f48 Now, this function can be called twice from the same page.
In participants list, when showing teaches, the country of
the students was not showed.
Please, check. I haven't found problems with this, but...
2004-02-01 12:07:36 +00:00
moodler 5ea64f4b2f Error message for restricted users 2004-01-30 09:55:57 +00:00
moodler cb98d3120c New function to restrict defined users 2004-01-30 08:25:49 +00:00
moodler 9fa6280580 When unenrolling students, remove them from groups too 2004-01-30 06:44:02 +00:00
moodler bb8c36313c When adding a teacher, remove them as a student. 2004-01-30 05:59:33 +00:00