727 Commits

Author SHA1 Message Date
moodler
f426a62eff Header "login" link now breaks out of possible frame 2002-11-07 11:18:18 +00:00
moodler
6f3ba7c93d Make a $homepage flag for use in footers 2002-11-06 15:46:12 +00:00
moodler
65ccdd8cc8 When using loginas to be a student, you can now return to being
yourself using a link in the footer.  Improvements to footer display
2002-11-06 07:54:44 +00:00
moodler
5ebe27e22c Fixed notices a bit 2002-11-05 16:47:30 +00:00
moodler
cb909d74ca Fixes to prevent teachers using loginas to enter other courses as that student 2002-11-05 16:38:02 +00:00
moodler
9f58537a53 Added SMTP authentication for email delivery 2002-11-05 06:06:18 +00:00
moodler
7209909ec9 On second thoughts, don't apply locale to numbers because it may
affect some calculations.   Just strings and times.
2002-10-29 15:33:09 +00:00
moodler
fa0c7d6d91 Use the locale to set everything (eg string conversions, comparisons,
money numbers etc instead of just the time)
2002-10-29 15:25:22 +00:00
moodler
533e975551 Added session.auto_start (off) ... having it turned on will break Moodle
on some versions of PHP
2002-10-29 12:30:31 +00:00
moodler
53f2259aa9 Added short_open_tag 2002-10-29 04:04:08 +00:00
moodler
0ee8d9203e Added some commented-out code that MIGHT help people with string slash problems. 2002-10-26 02:31:49 +00:00
moodler
7beb45d8a0 Upgrading all news and social forums (except those in social courses)
so that they are course modules in an (invisible) section, which means
they are now editable and parameters, names etc can be changed.
2002-10-25 08:47:53 +00:00
moodler
87a2fa0338 Tweaks 2002-10-25 07:17:23 +00:00
moodler
72c578ca4d Mail now contains Moodle version 2002-10-23 12:12:01 +00:00
moodler
e7311a0a56 Changed name of upgrade_moodle function to main_upgrade (for consistency) 2002-10-23 04:10:10 +00:00
moodler
377f3c9ee4 new function print_heading_with_help() to print a heading with a helpbutton 2002-10-22 09:54:36 +00:00
moodler
840aaba179 Added some more allowed HTML tags 2002-10-21 09:16:06 +00:00
moodler
be025399d8 Table header aligns to top 2002-10-21 06:51:56 +00:00
moodler
09a4ce320c Changes to toolbar to position color pickers better, and
reintroduce the "select all" button.  Unfortnately, I had
to remove the "About richtext" button to make room
2002-10-21 05:42:37 +00:00
moodler
4168490e17 Added paragraphs to allowed HTML tags 2002-10-21 04:12:54 +00:00
moodler
e5dfd0f31f Improvements to help, and addition of new "Activity modules" help
for teachers adding new modules.
2002-10-21 03:00:40 +00:00
moodler
c74a0ca5c2 Category editing in quizzes is now supported. Some other little
cleanups along the way ...
2002-10-20 17:15:39 +00:00
moodler
16c0beb00b Strip slashes from print_simple_box (just in case) 2002-10-20 10:12:12 +00:00
moodler
c1d5710174 Cleaned up format a little, plus added better error checking of server
variables so that at least people will get feedback if they are missing
2002-10-19 04:58:14 +00:00
moodler
0be05df068 Find URLs at the beginning of lines ... 2002-10-18 17:05:17 +00:00
moodler
3fe3851d57 OK, I've rationalised the text formatting now. Basically, both Moodle and
HTML text allow the same range of HTML tags (so it doesn't matter is you
switch from one to the other).

<IMG> and <A> are now ALLOWED in Moodle text.  However, the clean_text
function now checks for and removes any embedded javascript triggers
to avoid cross-site scripting attacks that way.

clean_text() should be called on ANY text that comes in from students.
2002-10-18 09:09:19 +00:00
moodler
a0bac19d81 Whoops ... typo. 2002-10-18 09:00:09 +00:00
moodler
57243ffe02 Also set default language on new user created by external authentication 2002-10-18 08:52:33 +00:00
moodler
08beb3327b Allow <IMG> tags in Moodle format text. Not having it can really mess
up smileys etc if the text has been edited at any stage using the
richtext editor.

I realise it's possible for students to really mess up forums display
etc if they wanted to include a huge picture ... I'm not sure if there
are any cross-site scripting attacks possible with images in there.

But there is also now the HTML format for most things, which is editable
using an ordinary form, so this problem is currently already exposed.

I think it's OK as long as can find a filter to strip all javascript
out of ANY format text in Moodle.
2002-10-18 06:05:56 +00:00
moodler
2a439ba7f6 ***NOTE NOTE NOTE **********************************************************
THIS IS A BIG CHANGE!

I've renamed the "reading" module to "resource".

This meant changing quite a few references throughout Moodle.

The automatic upgrade process should work OK (it worked OK on my
development server) and there shouldn't be any problems.

BUT PLEASE PROCEED WITH CAUTION AND KEEP BACKUPS OF EVERYTHING
UNTIL I HAVE A FEW MORE TESTS!   If you upgrade please let me know.

One thing that will break are any hard-coded links within forum messages.

What I will be doing to fix this on my apache server is to add this to
httpd.conf:

Redirect /mod/reading/ http://moodle.com/mod/resource/

Sorry about any inconvenience, but it's better this is done sooner than later.
2002-10-17 14:03:59 +00:00
moodler
5f652ac38e Alt text on moodle logo 2002-10-16 15:48:22 +00:00
moodler
7ce20f09cb Changes related to module editing buttons 2002-10-16 04:53:44 +00:00
moodler
55c2620784 Got rid of the wimpy icons in the top-right corner of pages and put some
manly buttons there.  ;-)   I think this will be much clearer for novices,
as well as being a bigger target for experts!
2002-10-15 16:47:43 +00:00
moodler
ff80e012b0 Miscellaneous little changes from today ... 2002-10-14 16:00:55 +00:00
moodler
3df49694a9 New function to print richtext javascript 2002-10-12 15:00:34 +00:00
moodler
e1947876ec Moved the object code out into a function print_textarea 2002-10-12 07:23:16 +00:00
moodler
1a072208ce Smilies are now replaced even in HTML text, and small fixes 2002-10-12 05:09:49 +00:00
moodler
75096957ca Keep this one here :-) for the interface 2002-10-12 04:19:51 +00:00
moodler
2ec69fce6a Added a function useful for debugging Javascript problems 2002-10-12 04:09:51 +00:00
moodler
696f751f7a Swapped clown for surprise - looks better that way 2002-10-12 04:04:59 +00:00
moodler
c828070ac9 Deleted these icons because I'm not using them. The editor now uses
the standard Moodle icons instead.
2002-10-12 04:03:23 +00:00
moodler
cd68ebfaef This page now uses the Moodle standard icons for consistency 2002-10-12 03:55:50 +00:00
moodler
84f98bc8a9 Removed references to btnPost because I don't use it 2002-10-12 03:54:56 +00:00
moodler
c9dda99059 Modified text_to_html to use the new smilies, which for efficiency are
now defined in a global array, and use str_replace instead of ereg ...
2002-10-12 03:53:40 +00:00
moodler
541117b6cb Changes to support choice of language direction (so that languages
like Arabic, Hebrew etc will work)
2002-10-11 02:31:37 +00:00
moodler
0095d5cd3c Additions to cope with richtext editor being used in some forms. 2002-10-10 07:26:10 +00:00
moodler
de909d238d Adding a beta version of Rich Text Editor, for embedding into Moodle
forms (forums, readings, journals etc).  Works only on IE 5.5 and later.

Slightly customised for a slimmer toolbar.
2002-10-10 07:21:32 +00:00
moodler
bc0750aaae Arg .. so much for quick hacks ... this code is so messy it's
a hassle to hack ... going back to the way it was originally, with
just a more informative error message instead.
2002-10-09 14:20:24 +00:00
moodler
0bdce31166 Changes to avoid cryptic errors 2002-10-09 14:08:33 +00:00
moodler
f8e4809a03 New function print_file_picture for printing a picture from the
files area, or optionally from a URL
2002-10-06 17:20:32 +00:00