92 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
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
moodler
f1c1d2f166 Removing the THEME variable and adding in classes where appropriate 2005-02-10 10:41:22 +00:00
stronk7
e09087bc76 Some minor changes to each module to XHTMLise the restore process 2005-02-07 23:33:17 +00:00
julmis
5096a8eada Adding <span class="nolink"> excluding. 2005-01-30 14:21:52 +00:00
stronk7
1082105205 Modify sesskey behaviour. SC#73 2005-01-22 18:53:44 +00:00
urs_hunkler
08bcdcbea2 _ added the div framework 2005-01-19 09:26:45 +00:00
gustav_delius
713492e36c corrected typo in previous commit 2005-01-15 21:59:41 +00:00
gustav_delius
dc9e582553 fixed bug 1887 2005-01-15 21:55:25 +00:00
gustav_delius
61e59ace64 implemented fix for restore problem given in bug #1589 2005-01-15 21:49:22 +00:00
skodak
a0fb9e8e65 merged from MOODLE_14_STABLE; updated zipping code - see bug #2228 2004-12-15 21:59:30 +00:00
mchurch
03c6f3bf7d Modified to ouput proper XHTML - especially if it already was XHTML.
See bug #2230.
2004-12-08 22:05:44 +00:00
moodler
b64dab0e5d Changes for XHTML and accessibility compatibility 2004-11-26 09:33:02 +00:00
mjollnir_
38279ad6d8 Merged from MOODlE_14_STABLE: Attempt to fix bad constraint name in wiki and version bump (honoring partial freeze) and requires bump (needs changes in execute_sql to not show adodb feedback) 2004-11-23 22:40:48 +00:00
paca70
3c55bb0f9d Fixed typo. Time to sleep... 2004-11-23 21:34:38 +00:00
paca70
e80c7d5d15 Closed bug #2209
Don't replace & if it's part of encoded character.
2004-11-23 21:29:21 +00:00
mjollnir_
81c41b659e Merged from MOODLE_14_STABLE: Indexes for wiki and version bump (honoring partial freeze) 2004-11-21 21:16:41 +00:00
mjollnir_
cfd146aefa Wiki integration with upload class.
Changes in two upload forms and in moodle_binary_store.php - moodle_binary_store_file

These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-363
    Penny Leach <penny@catalyst.net.nz>
    wiki integration with upload class.
arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-364
    Penny Leach <penny@catalyst.net.nz>
    fixed lost submit button from last wiki upload patch, also fixed bug related to generating db id for attached files

Full logs:

Revision: moodle--eduforge--1.3.3--patch-363
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Nov  8 11:18:08 NZDT 2004
Standard-date: 2004-11-07 22:18:08 GMT
Modified-files: mod/wiki/ewiki/ewiki.php
    mod/wiki/ewiki/plugins/moodle/downloads.php
    mod/wiki/ewiki/plugins/moodle/moodle_binary_store.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-363
Summary: wiki integration with upload class.
Keywords:


Revision: moodle--eduforge--1.3.3--patch-364
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Nov  8 16:01:29 NZDT 2004
Standard-date: 2004-11-08 03:01:29 GMT
Modified-files: mod/wiki/ewiki/plugins/moodle/downloads.php
    mod/wiki/ewiki/plugins/moodle/moodle_binary_store.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-364
Summary: fixed lost submit button from last wiki upload patch, also fixed bug related to generating db id for attached files
Keywords:
2004-11-08 05:32:18 +00:00
moodler
5938401cff Updated Resource, Wiki and Scorm to use the new files/index.php to
choose files.   The old coursefiles.php is obsolete.
2004-11-02 12:53:32 +00:00
moodler
e61d4b39a0 Merged fix from stable 2004-10-26 07:42:33 +00:00
skodak
763692fd55 merged from 14_STABLE - fixed warning in Activity report/Outline - oops, wrong line 2004-10-24 21:08:06 +00:00
skodak
5c05d23b4b merged from 14_STABLE - fixed warning in Activity report/Outline 2004-10-23 19:21:30 +00:00
stronk7
0085c88953 Now Wiki's FileManager is using central zip & unzip functions.
Merged from MOODLE_14_STABLE
2004-10-17 23:16:17 +00:00
moodler
cb59215c7f Merged from stable 2004-10-01 02:19:29 +00:00
paca70
55bcf883c3 Fixes for new postgres database creation 2004-09-24 07:49:40 +00:00
gustav_delius
8f0cd6ef0f Resolved problems with previous replacement of
& to &amp; and fixed redirect() to entity encode the
inut where needed.
Julian Sedding
2004-09-21 11:41:58 +00:00
skodak
d1a6dd2716 short php tags - Bug #1956 2004-09-18 22:36:09 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
mjollnir_
16ffe14a93 Integration of new centralised upload code with wiki/wikifiles.php - this is the choose initial page part, not the upload a page into the wiki part.
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-63
    2004-09-15 21:56:38 GMT
    Penny Leach <penny@catalyst.net.nz>
    wikifiles integration with upload class - this is just the initial page part, not the upload a file into the wiki parg


Full logs:

Revision: moodle--eduforge--1.3.3--patch-63
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Thu Sep 16 09:56:38 NZST 2004
Standard-date: 2004-09-15 21:56:38 GMT
Modified-files: mod/wiki/wikifiles.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-63
Summary: wikifiles integration with upload class - this is just the initial page part, not the upload a file into the wiki parg
Keywords:
2004-09-15 22:07:27 +00:00
mchurch
d2481a47ba Fixed strip_pages bug. 2004-09-13 23:03:42 +00:00
gustav_delius
a9ef4a630a closed <input /> <br /> <hr /> 2004-09-12 14:41:49 +00:00
mchurch
91fa15e4c2 Fixed a bug in export caused by the removal of email filters. 2004-09-10 18:38:25 +00:00
mchurch
c49ae4ae77 Fixed potential undefined variable. 2004-09-09 12:52:24 +00:00
paca70
2ca24fc3ab Use getremoteaddr() in place of getenv("REMOTE_ADDR") and $_SERVER["REMOTE_ADDR"] 2004-09-04 11:30:16 +00:00
skaldrom
5323756b05 Reactivated Cancel when editing. 2004-09-03 21:25:52 +00:00
skaldrom
1c6fc1e75f Removed Wikinews 2004-09-03 21:05:04 +00:00
skaldrom
087fef3ed4 Fix for Bug #1603 - Shortening URLs in Wiki pages
- Renamed wikipage in page (URL and variable)
- When groupid or userid is 0, it is not shown anymore (I hope I have changed all places)
2004-09-03 21:02:27 +00:00
skaldrom
d9742e4071 Fix for Bug #1820 - wiki export does not keep correct links
Create filenames with + (next+page.html).
2004-09-03 20:01:47 +00:00
mchurch
24223b9eb7 Fixed some formatting issues that prevented ** and ## from working. 2004-09-02 18:43:23 +00:00
mchurch
82df5e1331 Fixed a malformed if statement around 'get_site()'. 2004-09-01 01:08:55 +00:00
gustav_delius
222ac91bc9 removed unnecessary calls to get_site() 2004-08-29 14:15:40 +00:00
moodler
1290953e40 Merged changes from stable 2004-08-26 15:23:07 +00:00
stronk7
c4e86f0895 Merged from 14_STABLE
Bug 1788
(http://moodle.org/bugs/bug.php?op=show&bugid=1788)
2004-08-26 10:58:49 +00:00
gustav_delius
8f6b80b90c Merging from stable branch 2004-08-24 18:38:14 +00:00
gustav_delius
56c1fd3684 disabled email_protect plugin, see Bug #1775 2004-08-24 12:51:28 +00:00
moodler
eb474b29a3 Merged some changes 2004-08-24 07:03:06 +00:00
mchurch
37d7e21482 Bug #1611 - Fixed the editing of wiki pages containing apostrophes. 2004-08-24 00:08:08 +00:00
mchurch
ae342592c8 Fixed filtering of wiki output to only apply to wiki text pages and not action pages. 2004-08-23 21:56:47 +00:00
moodler
c3415fd3c3 Attempt to extract the user from the old author field when upgrading 2004-08-23 09:04:30 +00:00
moodler
71fe1da3f4 Database now stores userid, and page info is now more Moodley
(plus it doesn't show IP information to everyone!)

All old authors are not currently displayed  (I chose not to)
This is easy to fix if people want it, since the old author
string is still there in the database.
2004-08-22 16:41:54 +00:00