103 Commits

Author SHA1 Message Date
moodler
3662bce5b4 A few tweaks for robustness. 2003-05-26 14:43:19 +00:00
moodler
8d2accb64c More robust check of argument 2003-05-26 07:54:53 +00:00
stronk7
cc7fa0dc05 Added a 4th OPTIONAL (default "get") parameter to
"print_single_button" function. Now can make "post"
forms too.
2003-05-18 16:41:23 +00:00
moodler
ae384ef160 New configuration variable: secureforms (defaults to 'true')
Replaces the old $CFG->buggy_referer (reverses it, in fact) and can
now be set in the configuration page (no need for it in config.php).
2003-05-15 15:59:52 +00:00
moodler
c6a0f9d5bf Minor touch-ups to the front page HTML 2003-05-15 14:02:13 +00:00
moodler
76c1650d02 Changed home page link to moodle.org (from moodle.com)
I did some heavy thinking about this, and I think this is
best for the community.  I had wanted to drive some traffic
past moodle.com (the moodle.com will feature very prominent
links to moodle.org).  What I'll do now, I think, is put a
advertisements on http://moodle.org pointing to moodle.com.

Also some lowercasing of HTML.
2003-05-14 05:01:01 +00:00
moodler
a0deb5db60 Add a backdoor for match_referer ... if the referer is "nomatch" then
it always returns true.
2003-05-12 09:22:00 +00:00
moodler
393c9b4ff4 Fixes for detect_munged_arguments() and default values for p() s() etc 2003-05-12 06:35:32 +00:00
moodler
5867bfb50e New feature to manage installed code modules!
You can now hide/show individual activity modules and even delete them completely!

For example, if you hide the "choice" module, then all choice activities
will be hidden throughout the whole site, and "Choice" will not
appear on any "Add..." menu.

Deleting a module is a complete deletion of all data from the database.

If you want to try out the deletion on a real module, I suggest the
pgassignment module, since it will soon be deleted from CVS anyway
(because it's being replaced with workshop).

Look for "Manage modules" on the admin menu.
2003-05-09 17:24:17 +00:00
moodler
6c8e8b5ed4 IMPORTANT SECURITY FIX: this prevents bad characters being passed to help.php 2003-05-09 02:05:16 +00:00
moodler
e825f27967 New pop-up help page about smileys - clicking on the smiley inserts it
into the form using Javascript!

Also rationalised and patched some of the other help about text formats.

LANGUAGE EDITORS MAY WANT TO RE-CHECK:

   lang/en/help/textformat.html
2003-05-08 16:09:30 +00:00
moodler
5f350e8f6d Improvements for PLAIN FORMAT (links) plus some efficiency I think 2003-05-05 16:40:46 +00:00
moodler
01d799665d Better detection of URLs in brackets etc ... plus some tweaks 2003-05-05 16:28:40 +00:00
moodler
11a876e1b6 Minor touches to notice() padding 2003-05-05 12:25:08 +00:00
moodler
2bc269fd7b Typo in javascript .... selectedindex should selectedIndex ! 2003-05-05 07:44:53 +00:00
moodler
dfec7b013f Some clean ups - various things to do with Topics view 2003-05-04 09:43:03 +00:00
moodler
d342c76370 Added Wiki format as a system-wide format (forums, journals, etc)
Also, added better formatting to plain-text emails via a new function
in weblib.php  -  format_text_email
2003-05-04 04:07:36 +00:00
moodler
eb347b6b68 Fixes to improve the password recovery process. There is now a
confirmation step required before the password is changed and sent.

Also, many of the email texts have been cleaned up.

TRANSLATORS:  check your texts in moodle.php starting with "email.."
2003-05-04 03:00:52 +00:00
moodler
107b010b43 Some random lowercasing 2003-05-03 06:49:37 +00:00
moodler
3e9ca9fbc5 Added new Wiki code to allow Resource web pages to be created/edited using Wiki format
This code contributed by Howard Miller.  Thanks!
2003-05-01 03:43:16 +00:00
moodler
ca16eaeb31 Make sure all these links break out of subframes and go to mainframe 2003-04-29 13:54:53 +00:00
moodler
dc0dc7d5dd Tidying up the way pix images are used.
It's now also possible to override the standard pix with a set of new ones
in a theme.
2003-04-28 04:32:55 +00:00
moodler
6901fa7955 New plain text format.
Translates smileys and carriage returns, but prints all other tags and code
as plain text
2003-04-27 10:46:16 +00:00
moodler
a282d0ffda Adding user's name at the top of the course page.
Just experimenting with it there for a while ... feedback welcome
2003-04-25 06:40:30 +00:00
moodler
2a40936834 Mark the hidden ones for teachers 2003-04-23 17:25:20 +00:00
stronk7
cf055081ef Changed the navmenu function to show only visible-mods on the
jumpmenu. Everything is showed when the user is a teacher.
2003-04-23 16:32:11 +00:00
moodler
ef49e5c301 addslashes to string used for javascript link 2003-04-02 07:24:42 +00:00
moodler
0d0baabf2c Fixed a missing global $CFG declaration. 2003-03-30 13:25:49 +00:00
moodler
075a591656 Better regular expresssion for detecting URLs at the very start of a text.
I don't know what the old one thought it was doing!  :-)
2003-03-26 07:33:26 +00:00
moodler
9d5b689c8a Added vim commands at the bottom of the file to try it out 2003-03-14 07:55:22 +00:00
gregb_cc
c0f728ba9e code formatting change: switched from alternative syntax to using {} 2003-03-12 21:40:47 +00:00
gregb_cc
6908193151 speed improvement in smilie_replace. It is now almost as fast (within 5-10%) of
the version that used global smilie definitions.
2003-03-12 21:37:05 +00:00
gregb_cc
617778f2d3 Added benchmark and test for replace_smilies 2003-03-12 20:36:55 +00:00
moodler
c9082a8c2f Integrated the default redirect message delay from Greg B 2003-03-12 07:44:29 +00:00
moodler
f82c2d428a Modified Greg's work to:
- rename the main_frame variable to framename, because it
       - might have caused some confusion
       - none of the global variables have underscores
  - put the config in the config table, with a default of _top
2003-03-12 07:36:22 +00:00
gregb_cc
2ea9027bc4 Small cleanup of smilie replacement.
This change removes the smilie variable assignment from the global namespace.
This change retains the original user input as the alt text.
The main reason for this change is to make it possible for me to use my
make_class function on weblib.php (still need to do something about the defines
though).
2003-03-12 03:42:44 +00:00
gregb_cc
08b3606390 This is a first attempt to make moodle frame safe.
I've added the variable CFG->main_frame to config-dist.php, and replaced _top
targets with the variable in all the php files.  HTML files, like those in the
documentation, have not been modified, as they are not (yet) parsed.

The variable should probably get moved into the config table, and get some
documentation.

I've also included, but commented out, a slight change in weblib.php, which
would guarantee that messages would be seen before redirecting the user (unless
delay intentionally set to 0 when redirect is used).
2003-03-11 21:35:12 +00:00
moodler
9a9a2907c2 Add a target to the "made with moodle" link to avoid confusing students 2003-03-07 15:09:12 +00:00
moodler
08c17336a7 Fixed $USER and $SESSION to be pointers to the real $_SESSION
variables, so there's no longer a need for save_session  (thanks,Petri)
2003-02-27 02:38:55 +00:00
moodler
3f3960656d Fixed link to picture file in print_picture_file 2003-02-11 01:53:10 +00:00
moodler
73f8658c36 Provide the possibility that the format of a text is not defined properly 2003-02-05 12:41:59 +00:00
moodler
bcdfe14e02 Whoops, fixed some obvious bugs when getting slash arguments 2003-02-05 10:52:55 +00:00
moodler
eaa50dbc83 Removed some redundant code when looking for slash arguments (use me() function instead) 2003-02-05 10:48:13 +00:00
moodler
fced815cd7 Improved me() function 2003-01-30 15:52:38 +00:00
moodler
db11e52dec Allow tags for embedded objects 2003-01-28 03:55:55 +00:00
moodler
750ab759ed Slightly better robustness for notice() when there is no referer 2003-01-26 06:04:14 +00:00
moodler
03f06a1412 Remove the ampersand thing ... it was actually a Mozilla display bug. :-) 2003-01-24 08:41:18 +00:00
moodler
7d8f674dea Implemented a safer version of stripslashes called stripslashes_safe.
This will only fix these three cases:

  \'
  \"
  \\

and leaves all other backslashes alone.  Should fix problems in forums
and forms where backslashes were sometimes disappearing from windows
paths like C:\temp - usually only in the richtext editor, but still.
2003-01-23 13:07:49 +00:00
moodler
f3e48e6ef0 Solve this silly mpersand display problem 2003-01-23 05:03:27 +00:00
moodler
37208cd23a Some robustness 2003-01-20 07:13:02 +00:00