856 Commits

Author SHA1 Message Date
gustav_delius
c7cdd6ec82 moved the database update code to where it belongs 2004-01-30 21:40:31 +00:00
gustav_delius
3d94772d47 better logging of forum mail errors, see http://moodle.org/mod/forum/discuss.php?d=4865. Required the addition of an extra optional argument $user="" to add_to_log() 2004-01-30 18:21:56 +00:00
moodler
5ea64f4b2f Error message for restricted users 2004-01-30 09:55:57 +00:00
moodler
fcf9c45033 New paratmeter to insert_record called primarykey (defaults to "id")
and removed insert_record_old
2004-01-30 09:04:31 +00:00
moodler
cb98d3120c New function to restrict defined users 2004-01-30 08:25:49 +00:00
paca70
77e84a85f2 My php 4.3.4/postgres7.4 combination was thinking
that returned id-column was string and some modules were thingking that theres
insert error if return value is string.
Right now all id-colums is always integer so
this should be ok.
2004-01-30 07:45:36 +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
25be6cfff3 Upgrading ADOdb to 4.11 ... there were lots of little bug fixes 2004-01-30 03:11:47 +00:00
moodler
89f1cea654 Fixed problem with magic quotes 2004-01-30 02:25:02 +00:00
moodler
0892f7bd01 IMPORTANT! CRUCIAL CHANGE TO MAJOR FUNCTION!
Petri Asikainen rewrote insert_record to use ADOdb functions.  It might
be very slightly slower but it gets rid of all the horrible not-quite-working
PostgreSQL workarounds the old one contained.

It worked for him on PostgreSQL 7.4 and for me on MySQL 3.23 and 4.0.15,
so I'm checking it in.

Please test it thoroughly on your test systems.

Since it writes data it has the potential to stuff things up, so be
careful on production systems for a few days.
2004-01-29 15:27:21 +00:00
moodler
ba39fa10cc Change type of config->value to text (to allow longer info) 2004-01-29 04:13:55 +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
1d1a623391 Added msup 2004-01-28 04:42:30 +00:00
moodler
899da17470 Allowing <algebra> tag 2004-01-27 03:30:57 +00:00
moodler
6a903e0e83 Better for CSS 2004-01-26 11:47:20 +00:00
moodler
9586c1dd6b Er, much better wayto do dividiers 2004-01-26 09:54:40 +00:00
moodler
e21e20cfd7 Mod to print_table to allow dividers between rows (used on forum listing) 2004-01-26 09:48:00 +00:00
moodler
6a751fca5a Adding more tags for matsh 2004-01-26 09:15:12 +00:00
moodler
404afe6b86 Get groupmode when returning a list of instances 2004-01-26 09:13:47 +00:00
moodler
8a2c90768f Clarification to some group logic 2004-01-26 09:12:52 +00:00
gustav_delius
2e39d2f810 minor fixes, including bugs 997, 998 2004-01-25 19:37:04 +00:00
moodler
18845ac357 If $CFG->opentogoogle is defined then
- google can get in as guest

   - visitiors referred from google get in as guest
2004-01-25 09:37:28 +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
d26924c4ec Load overlib.js as an external Javascript file, on all pages 2004-01-23 08:51:17 +00:00
moodler
210d0f3388 MD5 library for home-made security 2004-01-23 08:40:29 +00:00
moodler
80bc80e121 Overlib function for slick popups 2004-01-23 08: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
e08061157c Added lang and mathml tags to allowed tags 2004-01-20 13:27:37 +00:00
moodler
ce57cc79eb Added stripos function and allow filters to work even when courseid
isn't set.
2004-01-20 08:51:43 +00:00
moodler
ef6b0c645e Ignore errors on chown 2004-01-20 08:46:23 +00:00
les_kopari
33235e53b0 Renamed. 2004-01-17 13:02:24 +00:00
les_kopari
ea31ae41c7 Another test run. 2004-01-17 12:59:28 +00:00
les_kopari
cab9d39e60 Renamed to schemaGroups_members.xml 2004-01-17 12:57:24 +00:00
les_kopari
49df1a42b5 Renamed to schemaGroups.xml 2004-01-17 12:56:13 +00:00
les_kopari
945e013c67 Renamed table. 2004-01-17 12:52:42 +00:00
les_kopari
6b95445ac8 Test run with new columns and tables. 2004-01-17 12:49:49 +00:00
les_kopari
339ac7daa5 New columns. 2004-01-17 12:44:50 +00:00
les_kopari
68cd6454aa New columns and tables. 2004-01-17 12:41:54 +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
les_kopari
e34aab0dd0 New field. 2004-01-17 09:16:20 +00:00
les_kopari
5f1317f88e Correct defaults. 2004-01-17 09:06:21 +00:00
les_kopari
d8f6ab1b8a Added groupmode, groupmodeforce. 2004-01-17 08:55:22 +00:00
moodler
c4ae4fa1a8 Fixes so that $courseid can be passes to format_text (and this filter_text) 2004-01-16 10:49:07 +00:00
moodler
3da4752434 Added log links for teachers from each activity page 2004-01-15 07:17:47 +00:00
paca70
f63823b3cc FIXED:
script was calling fix_course_sortorder() before courseorder have been renamed to coursecount.
2004-01-14 18:13:26 +00:00
moodler
0a45ffe301 A new configuration setting - "forcelogin".
Default is false, everything is as it is now.

If turned on, then users are forced to log in before
being able to see the front page or the course listings.
2004-01-14 08:27:18 +00:00
moodler
0d67c51458 Work done on group functions 2004-01-11 17:44:46 +00:00
moodler
ddc7afad9a Added groupmode setting to course_modules 2004-01-11 17:44:09 +00:00