996 Commits

Author SHA1 Message Date
stronk7
0f3fe4b6ad First Official realease of the "Blocks System".
Integrated with Moodle:
    - Install automatically.
    - Update course->blockinfo for each course at installation time.
    - Modified course creation to insert into blockinfo field.
    - Modified restore to insert into blockinfo field.
    - Admin options (hide, show, delete, config) from admin page.
    - Lang strings inserted (en only).
    - Database support to mysql and postgresql (not tested!!).
Moodle, backup and block versions updated to 2004041800.
Tested with mysql: Install fresh and upgrade from previous.
section_activities block renamed to social_activities and created
its own lang file to support name "Social Activities". This can
be changed at any time.

TODO:
=====
Support it really in backup/restore.
????

Enjoy!! Ciao :-)
2004-04-18 23:20:53 +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
fiedorow
1af376eca4 Fix for bug on Windows and Mac servers while generating quiz reports 2004-04-15 15:41:06 +00:00
moodler
39e1c4158f I think this might solve the mysterious problems with
session garbage collection and timeouts not working.

Note: upgrading to this will KILL all current sessions, so
you will need to log back in.
2004-04-15 14:46:54 +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
moodler
149dbaf1b3 Fix for bug 1226 2004-04-09 02:24:02 +00:00
julmis
3414788e09 Toolbar imageload fix and undo and redo fix. 2004-04-06 21:27:30 +00:00
julmis
378e453317 Form position and style updates. 2004-04-06 00:43:49 +00:00
moodler
c7ef02178e Whoah ... bad typo! Fixed bug 1214 - thanks Eloy! 2004-04-03 02:47:11 +00:00
moodler
a1d72936b1 Strip tags from module names .... sigh 2004-04-02 13:42:20 +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
07c270c127 Upgraded to latest version and fixed some undefined variables 2004-04-01 03:16:25 +00:00
moodler
47b307976b Removing a line from stripslashes_safe ... not sure why we were replacing
these double slashes ...
2004-03-31 08:45:11 +00:00
moodler
09cbeb40a2 An improvemement, I think, in the way Javascript is stripped in clean_text 2004-03-28 06:31:27 +00:00
julmis
cfa3f2622e Cleaning up javascript and trying to make code less
memory consuming.
2004-03-26 09:29:44 +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
8dcd43f3fe Checking in Eloy's Javascript/smiley fixes from bug 1185 Thanks! 2004-03-25 06:31:44 +00:00
moodler
9a11957599 SOme fixes for formatting from Koen in bug 1183 2004-03-25 05:43:36 +00:00
julmis
85334fdc0a Adding missing slash in tr -tag line 258 2004-03-24 23:14:20 +00:00
moodler
d0ec93fbd6 Guests can no longer see email addresses if "show only to course participants"
has been set by that user
2004-03-24 12:23:43 +00:00
moodler
427fdf6669 Primary admin is now the lowest-numbered entry in user_admins, rather than
the admin with the lowest userid.  This makes it easier to change the
primary admin.
2004-03-24 09:38:47 +00:00
moodler
20439c700b Add idnumber to list of course students 2004-03-21 03:30:27 +00:00
moodler
488acd1be9 Some fixes to the functions for fetching users (some of it is backing
out Scott's changes, sorry Scott!) and some fixes to the interface
for the admin user page.
2004-03-20 06:58:52 +00:00
moodler
1579586ced Some blank index.html files to prevent browsing 2004-03-20 04:10:26 +00:00
moodler
6670a7f214 Dummy index to prevent browsing 2004-03-20 04:08:19 +00:00
moodler
36ec6afea6 Added a small security check 2004-03-20 04:04:15 +00:00
julmis
d5a55d2388 Styles enabled on table-operations dialogs 2004-03-19 19:09:35 +00:00
selliott
5a4aa257c1 On second thought, let's display the lastaccess in the lastaccess column of admin/user.php ;) 2004-03-19 04:39:20 +00:00
selliott
73fc8c1af7 Added search parameter to get_course_students.
Modified get_course_students and count_course_students to handle a request for course 0 (will get all users, even if they are in no other course).
Changes done to for admin/user.php, should be compatible with all previous function calls.
2004-03-19 04:26:35 +00:00
julmis
1e77b7122e table-operations file that seems to only working... 2004-03-16 23:22:50 +00:00
julmis
825c4c8878 makefile.xml 2004-03-16 23:21:47 +00:00
julmis
63830e903d Fixing typos :-( sorry!!! 2004-03-16 23:00:45 +00:00
julmis
723ee6a111 Removelink feature added 2004-03-16 21:40:42 +00:00
julmis
bc1e9d4590 Updates 2004-03-16 21:39:57 +00:00
julmis
a9c48ae08d Removelink image 2004-03-16 21:39:18 +00:00
julmis
bf5f1e7676 TableOperations enabled on fullscreen mode, finally :-) 2004-03-16 21:21:21 +00:00
moodler
6c61fd041e Whoops! Just realised I never fully finished the deleteunconfirmed
feature!   All done now.
2004-03-16 10:59:42 +00:00
moodler
f038d9a313 Fixed bug with empty string 2004-03-16 07:11:14 +00:00
stronk7
54be24ecec Avoid login as himself to teachers. One missing USER
variable was the cause ;-)
2004-03-14 02:17:26 +00:00
moodler
06b1db82d2 Decalre some globals so debugging works better 2004-03-13 16:04:52 +00:00
moodler
4e3a60929c Finally fixed those annoying 'loginas' links on the main user listing 2004-03-13 14:34:32 +00:00
moodler
60b025d1cc Function name change ... hope it doesn't break any third-party code,
sorry if it does!

  get_users_in_group --->  get_group_users

... to be more consistent with other functions

Also a new function:  get_group_students()
2004-03-13 14:25:27 +00:00
julmis
95c1bce09e Sections, create folder and fileupload enabled also on link dialog. 2004-03-13 00:14:54 +00:00
julmis
6e4c0f6164 Some fixes of students dialog's placement on the screen
and a little fix for event handling
2004-03-11 08:21:55 +00:00
moodler
3cf4ab978b Added an option on the filters page to control whether uploaded
files are parsed by filters.    bug 1128
2004-03-11 02:14:15 +00:00