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
1b4002e0b7
Just changing some parameters stuff to new functions...
...
See SC and Bug 1837
Merged from MOODLE_14_STABLE
2004-11-17 00:14:34 +00:00
gustav_delius
839f2456bb
XHTML compliance
...
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- & in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
gustav_delius
41905731b7
fixed capitalization and quoting of attribute values
2004-09-12 16:24:41 +00:00
stronk7
8a2fe40709
strip_tags() to some parameters. Thanks skodak.
...
Bug 1836
(http://moodle.org/bugs/bug.php?op=show&bugid=1836 )
Merged from MOODLE_14_STABLE
2004-08-29 22:57:41 +00:00
stronk7
59c265b390
Now students cannot add/edit/delete entries if glossary->studentcanpost = 0
...
using manual URLs.
Merged from MOODLE_14_STABLE
2004-08-28 19:15:52 +00:00
stronk7
3a512f86c7
Some important changes arrive:
...
- 'editalways' applied to comments.
- some minor notices out.
- security bug solved:
+ users cannot edit any comment now.
+ users cannot delete any comment now.
+ users cannot edit any entry now.
+ users cannot delete any antry now.
Thanks to skodak, discovering the bug!!!
Merged from MOODLE_14_STABLE
2004-08-28 00:28:56 +00:00
stronk7
193a26447b
Error when sending a delete-entry action to logs...
2004-08-27 09:13:32 +00:00
gustav_delius
90fcc576ea
Removed notices by introducing new function print_header_simple() which works on site as well as in courses without extra logic.
2004-08-21 20:20:58 +00:00
moodler
bdb2f23f70
Started out with a small user interface fix (to use standard functions)
...
and ended up cleaning up the code quite a bit
2004-04-03 13:04:00 +00:00
stronk7
fabf55e684
Added the cmid field to some add_to_log() calls. To use it when
...
restoring logs. Now I think that everything is ready !! :-)
2004-02-18 20:52:44 +00:00
willcast
072f753331
- Some fixes when deleting entries and glossaries.
...
- Changing the way the comments are shown
- Saving a couple of lines in the Add Entry screen.
2003-12-02 14:35:39 +00:00
willcast
1ac87c7397
- Rewrite of the internal API in order to, hopefully, create an easy way to handle the flow of data internally and externally.
...
- Adding a new frame: Browse by Author
- A new, friendly way to show entries (asked by Martin): view?id=cm&mode=term&hook=[concept | alias ]
- Handling user activies, outline and complete.
- Properly showing new entries in recent activity box.
- Adding a flag to categories to specify if a category should or should not be automatically linked.
- Adding some missing strings and files as well.
- Adding a field to each glossary that specify how many entries by pages it should show.
2003-11-15 15:55:47 +00:00
willcast
c76e673ab5
- Cleaning a lot of code in edit.php and view.php
...
- Removing more notices when debug is ON
- Added a new feature: Now the entries have a default approval status... Not approved entries are shown on a teachers-only frame from which they can be approved or not prior to be visible by everyone.
2003-10-21 04:55:22 +00:00
willcast
677038ee7d
- Removing notices when debug is on
...
- Deleting entries with attachments now delete the attachments properly
2003-10-20 16:42:49 +00:00
willcast
ad2c7282e9
- Housekeeping... :)
2003-10-18 13:43:36 +00:00
willcast
891ae55ee4
- Fixed a problem when showing the icons in entries with inline images.
...
- Fixed a bug when deleting entries without attachments.
2003-10-18 13:33:46 +00:00
willcast
ad58adac10
- Exported entries are now linked instead of copied to the main glossary.
...
- Short tags are gone.
- Little changes in ES language.
2003-09-29 03:06:30 +00:00
willcast
2e26533562
*** empty log message ***
2003-09-22 12:35:13 +00:00
willcast
fb443f1acf
- Now the entries could be categorized.
...
- Any entry could belongs to many categories
- Improved main page and add entry look.
- Added PostgreSQL7 squema (Thanks Janne Mikkonen!)
- Deleting entries also delete its attachments if any.
2003-09-21 17:08:41 +00:00
moodler
0784202319
New Glossary module, version 0.1 - by Williams Castillo!
2003-09-16 03:07:21 +00:00