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
moodler
066af654c2
Bugfixes to set_user_preference
2004-01-28 14:47:39 +00:00
moodler
70812e39a0
Added new table called "user preferences" which can be used for
...
storing arbitrary preferences for each user.
Thanks to Jon Papaioannou for the first draft of this code
which I modified.
2004-01-28 14:14:19 +00:00
moodler
8a2c90768f
Clarification to some group logic
2004-01-26 09:12:52 +00:00
moodler
0609562b64
New function guest_user to create a guest user record and return it
2004-01-25 09:35:45 +00:00
moodler
ca952b033d
In remove_course_contents() look for a module function called
...
module_delete_course and run it as well. This is mainly for
quizzes at the moment but basically it runs cleanup stuff
whenever a course is being emptied
2004-01-21 16:15:03 +00:00
moodler
5fba04fba0
EARLY SUPPORT FOR CALENDARS AND EVENTS
...
--------------------------------------
New functions and tables, based on work from Gustav Delius
(see http://moodle.org/mod/forum/discuss.php?d=4466 )
This forms the core of a new system to store, track and utilise
event information in all modules, as well as allowing external
calendars to be synchronised with new information.
2004-01-17 09:47:45 +00:00
moodler
0d67c51458
Work done on group functions
2004-01-11 17:44:46 +00:00
stronk7
e9f3e715dd
Add one more eregi_replace, because the 'alnum' allows the
...
comma char and it can cause some problems in filenames.
Off-topic: This is my 1st commit with my new eMac !! My old iMac screen
died two days ago... :-( but I've recovered everything :-)
2004-01-03 20:53:25 +00:00
moodler
0da33e07b9
Need to change table name! It was tougher than I thought to work around
...
the reserved word "group"
2003-12-30 18:07:09 +00:00
moodler
f374fb1006
This is the first check-in of support for groups.
...
It's very early (it doesn't actually do anything yet!) but you can
define groups and get an idea of how the interface is shaping up.
I also wanted to show that I have actually done something on this! :-)
From here my plan is to add group support to the modules, one by one
(forums first), then go back and clean up some of the central interfaces,
graphics etc.
Finally, test, test, test and get 1.2 out well before the end of February.
2003-12-30 17:18:06 +00:00
moodler
316ebf78a3
Take post_max_size into account when calculating maximum sizes.
2003-12-02 14:34:24 +00:00
moodler
b5cbb64dc5
Final pieces to allow site-wide configuration of name display.
...
Site variable can override order of "firstname lastname" or it
can leave it up to the language packs.
2003-11-30 14:02:01 +00:00
moodler
627407365c
Tiny hack for Qmail - I've come across one system which REQUIRED the IsQmail
...
method of phpmailer to be used.
This is now possible just by specifying "qmail" in the smtphosts field.
2003-11-28 10:57:58 +00:00
moodler
0b4c582298
Some changes to use fullname function for names
2003-11-28 10:53:07 +00:00
moodler
e2cd50652b
This function is just a stub to stand in for a while until I have more
...
time ... Following this I'll be converting all the other files around
the place to use this function.
2003-11-19 15:59:45 +00:00
moodler
f8dbffb1c0
Check for string before sorting it
2003-11-17 02:19:13 +00:00
moodler
82196932b0
Forgot to check this in ... has a new function
2003-11-07 15:11:34 +00:00