132 Commits

Author SHA1 Message Date
michaelpenne
f6e200cbce changed how data is passed from overview to detailed view and fixed the timeout issue 2005-03-14 22:18:29 +00:00
stronk7
28b09d7057 Now hidden lessons cannot be viewed.
Thanks to Javier Gil detecting it. Bug 2733.
(http://moodle.org/bugs/bug.php?op=show&bugid=2733)
2005-03-12 18:00:05 +00:00
michaelpenne
7f2ad6c2d3 changed the math for calculating the time left in a lesson to be more compatible with browsers 2005-03-11 23:15:18 +00:00
michaelpenne
011cfc95ed updated lesson_delete_instance to delete records from timer, branch, and high_scores tables 2005-03-10 22:43:00 +00:00
michaelpenne
1c97019eaf removed lesson_clean_data_submitted() function. Removed all instances of its use before I did this 2005-03-10 20:51:26 +00:00
michaelpenne
d0b8bcdc8b updategrade now cleans params correctly now (i hope) 2005-03-10 20:42:09 +00:00
michaelpenne
801697d170 insertpage and updatepage now clean params correctly (i hope) 2005-03-10 20:34:32 +00:00
stronk7
bbab80d1fc Some minor XML indentation, some changes in the XML structure and
some important bugs. Now everything seems to work properly with
lessons and backup/restore.

Only 1 pending change: Should the answer->grade field in old backups
  go to the new score field??????
2005-03-07 01:32:05 +00:00
moodler
832b9f8204 Removed filter and put badwords list in string files 2005-03-05 03:14:45 +00:00
stronk7
ac8e16be13 Bye. Now all those tabs are out 2005-03-05 00:09:39 +00:00
stronk7
8032acc64c Simple replace of tabs to spaces!! 2005-03-04 00:30:02 +00:00
stronk7
d698fea233 Some $ME are now out!
Merged from MOODLE_14_STABLE
2005-02-27 00:12:25 +00:00
michaelpenne
b0ec882fc1 delete user attempts now deletes a users grades, attempts, and time recrods. The email it sends is nicer as well 2005-02-25 19:28:51 +00:00
michaelpenne
5f3b3a084a updated report to find the times in timer table, now much more accurate. Also fixed a sesskey problem 2005-02-25 19:12:39 +00:00
michaelpenne
ff2978cea0 updated the time code to refect the new view 2005-02-25 19:11:12 +00:00
michaelpenne
c022b4964f changed the time code, now the timer table keeps track of time spent per attempt per lesson for each student. It is also used for timed tests. Also, moved check navigation link so it wont show up when there are no lesson pages. 2005-02-25 19:10:17 +00:00
michaelpenne
6899d8973f removed an echo and a comment 2005-02-23 22:24:46 +00:00
michaelpenne
0741a56672 woops, took out gustavs change, yah cvs 2005-02-23 00:56:28 +00:00
michaelpenne
49584784ac fixed up leftmenu some more 2005-02-23 00:52:29 +00:00
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
stronk7
95e72c12d0 Now retrieving only needed fields! 2005-02-13 00:42:29 +00:00
gustav_delius
48e535bc35 Activities can now be hidden/shown from the activity editing page. Also for modules that know about groups the groupmode can be set from there. See bug 2533. This required adding to the mod.html files calls to new functions print_visible_setting() and print_groupmode_setting() which are combined in print_standard_coursemodule_settings().
The visibility of coursemodules is now always set through the function set_coursemodule_visible() in order to make sure that the associated events get updated in the calendar appropriately.

If moving a coursemodule to a hidden section then the module is set to hidden as well and its events are hidden in the calendar.

If deleting a coursemodule its events are deleted from the calendar.

The function choose_from_menu() has an extra optional argument $disabled which, when set to true, will disable the menu.

For the sake of consistency the function set_groupmode_for_module has been renamed to set_coursemodule_groupmode and the functions show_course_module() and hide_course_module() have been combined to set_coursemodule_visible().
2005-02-12 21:41:22 +00:00
michaelpenne
f7ffb898fa array/object initialization 2005-02-09 22:36:24 +00:00
michaelpenne
078ab023be array/object initialization and made essay question type work with unanswered lesson flow 2005-02-09 22:34:14 +00:00
michaelpenne
d72b5b56dc I think just array/object initialization 2005-02-09 22:31:36 +00:00
michaelpenne
0f4be3f608 initialized arrays and objects, fixed a few bugs 2005-02-09 22:29:29 +00:00
moodler
fafd89a0f1 Removed $THEMEs and stuff.
I'm a little worried about this spaghetti code ... it's a mess!
2005-02-09 15:36:29 +00:00
moodler
a710d8c616 Improved feedback after an action (on redirect) and also put a
navigation check link up the top.
2005-02-09 15:21:56 +00:00
stronk7
e09087bc76 Some minor changes to each module to XHTMLise the restore process 2005-02-07 23:33:17 +00:00
michaelpenne
5aeebbc894 re-arranged a lot of code. Only branch tables appear in slide show mode. Display left and slideshow works with tables now instead of stylesheets (helps with browser compatibility). Some XHTML fixes. Fixed grading essay questions for non-custom scoreing. Reformated a lot of output 2005-02-04 19:39:18 +00:00
michaelpenne
ea6c76e0f2 removed a lot of styles because left menu and slideshow work in a table instead of styles. This helps with compatibility with more browsers 2005-02-04 19:35:43 +00:00
michaelpenne
9d1bd908f5 fixed the clock formating. 2005-02-04 19:34:22 +00:00
michaelpenne
62d5291318 this is Petrs security fix for import 2005-02-04 19:33:33 +00:00
michaelpenne
9127f2494d fixed a clean param function call 2005-02-04 19:31:24 +00:00
michaelpenne
b7daa75d08 most changes in continue section. Took it out of slideshow. Made some display changes with display left (not style sheet dependent now) 2005-02-04 19:30:19 +00:00
moodler
3ce16d70d7 Removed unmatched closing tag 2005-01-29 10:17:59 +00:00
michaelpenne
d9ef9b836d fixed some prefixes, not sure how this didnt get noticed before ;) 2005-01-28 19:31:41 +00:00
michaelpenne
f862f00d54 variable cleaning and sesskey updates 2005-01-27 21:36:12 +00:00
michaelpenne
0733cc0062 made a change to lesson_clean_data_submitted and added some xhtml compliance fixes 2005-01-27 21:35:37 +00:00
michaelpenne
d6847e5d95 uncommented the require style sheet (was there a problem?), also rearranged lesson settings into categories. 2005-01-27 21:33:35 +00:00
michaelpenne
07fe38c02b added function lesson_clean_data_submitted(), this cleans the object made from data_submitted() function (forgot comments before) 2005-01-26 00:30:46 +00:00
michaelpenne
57bfe93dca added function lesson_clean_data_submitted(), this cleans the object made from data_submitted() function 2005-01-26 00:25:20 +00:00
michaelpenne
eb65aeb7fd security updates: parameter cleaning 2005-01-26 00:22:51 +00:00
stronk7
1082105205 Modify sesskey behaviour. SC#73 2005-01-22 18:53:44 +00:00
michaelpenne
29a014c05a corrected the sesskey code 2005-01-21 23:13:53 +00:00
michaelpenne
4ea3ce2fcb added sesskey code to remove the sesskey error from updating the lesson from view.php 2005-01-21 19:02:57 +00:00
michaelpenne
bca6b842ca fix class stats for essay questions 2004-12-06 20:33:44 +00:00
michaelpenne
8061400e0f updated essay and short answer code to work with quotes (single and double) 2004-12-01 21:02:07 +00:00
michaelpenne
611e79fd75 updated essay code to work with quotes being used in user answer and teacher response 2004-12-01 21:00:49 +00:00
mjollnir_
33a55a6d55 Merged from MOODLE_14_STABLE: Indexes for lesson and version bump (honoring partial freeze) 2004-11-19 03:13:05 +00:00