7 Commits

Author SHA1 Message Date
gustav_delius
ec81373f50 In order to ensure that when a teacher hides a resource or an activity that students really can't get at it, even if they know the direct links to its pages, I have given an optional third argument $cm to the functions require_login() and require_course_login(). Pages showing information about a particular course module now pass the course module object in this third argument. The login functions will then test if either the course module is visible or the user is a teacher. If neither is the case then the user is redirected to the course homepage after being shown a message "Sorry, this activity is currently hidden".
(While I was at it I also turned the autologinguests off for most module pages, except on the index.php pages and the view.php pages for those modules that allow guests)
2005-02-16 10:40:48 +00:00
bobopinna
59c71f4b37 Updated XHTML tags and attributes in order to pass W3C validation 2004-09-20 13:50:38 +00:00
bobopinna
1a12b1f1d1 Some bug fixes, added new score view (thanks Matt) and added a new validation procedure 2004-07-19 14:53:43 +00:00
bobopinna
fc274a5f40 *** empty log message *** 2004-07-06 12:45:56 +00:00
bobopinna
6d9c91c72e Updated backup to popup windows. Modified auto-continue feature. Added nav.event data model. Patched a problem with time data model. 2004-07-01 09:54:08 +00:00
bobopinna
5d8790cb77 Fixed PHP_SELF and patched some other playing problems 2004-06-07 12:16:41 +00:00
moodler
98ca59f6e1 Putting SCORM into maintree CVS, to make it easier to test.
It's getting pretty useful now!
2004-05-20 17:06:19 +00:00