521 Commits

Author SHA1 Message Date
moodler
7d99d6959e New feature: hide/show topics! 2003-05-04 07:59:46 +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
984a8bf349 Two new language variables implemented.
langmenu  - turns the language menu on and off
langlist  - allows the admin to restrict and/or re-order the available language choices
2003-05-03 06:50:29 +00:00
moodler
107b010b43 Some random lowercasing 2003-05-03 06:49:37 +00:00
paca70
ea563f8f99 Postgres needs full longnames for indexes to prevent overlapping names. 2003-05-03 06:44:03 +00:00
stronk7
61ae5d36ca Modified the userdate() function. No changes needed when invoking it.
Added a new parameter (fixday->default true->old behavior) to avoid
formatting days when invoked with false value.
2003-05-02 09:37:41 +00:00
gregb_cc
aa0959690c fixed isadmin so that it checks once on each page view if the user is an admin
fixed check_gd_version to properly identify bundled gd versions (old
check_gd_version was returning 0 instead of 2 for bundled gd).
2003-05-01 23:12:05 +00:00
moodler
b3afe8244a Useful function for XML ... currently used only in Blackboard quiz importing 2003-05-01 13:57:35 +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
9d6f5d42eb Only retrieve records that are needed (eg description never is used) 2003-04-29 03:16:32 +00:00
moodler
a273084d7a Strange no-one has noticed this so far ... ! 2003-04-28 16:56:57 +00:00
paca70
28ba0d55cc ...And now it works 2003-04-28 15:24:13 +00:00
moodler
b86fc0e2a6 New feature replacing the old zoom function.
Now these are saved in a new table called course_display,
each user and each course can have independent settings.

I'm intending to expand this table later for all the other
course display stuff (like hidden topics etc)
2003-04-28 13:29:26 +00:00
paca70
9655b654a5 Now postgres works as it should, returned primarykeys are correct. 2003-04-28 12:51:19 +00:00
paca70
6492992616 I did't test previous change well, have take changes back. 2003-04-28 12:02:29 +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
paca70
e9ececbb1e $db->Insert_ID seems to work with postgresql too 2003-04-27 16:03:01 +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
paca70
e209e0b09e indexes for postgres 2003-04-27 09:54:03 +00:00
moodler
f5e82bc7f4 Moved microtime_diff() to moodlelib 2003-04-27 08:13:45 +00:00
moodler
f8bccb148a iNew configuration variable delete old logs - loglifetime 2003-04-27 06:41:53 +00:00
moodler
30f89d6833 New delete_records_select() function 2003-04-27 06:18:03 +00:00
moodler
f9ce68ee7f Using multiple indexes for slightly increased performance 2003-04-27 02:58:26 +00:00
moodler
1ba3960285 Working much better with indexes - update the schema 2003-04-26 15:26:51 +00:00
moodler
6459f225b8 Update to add new indexes to MySQL tables. Speeds up the log access. 2003-04-26 15:24:04 +00:00
moodler
ec2a28a607 Extended number of select fields allowed for get_field() and set_field() from 1 to 3 2003-04-26 12:38:04 +00:00
stronk7
86e6076b3b Modified the instance_is_visible function. It has a bug, having
the "forum" table harcoded. Simplify a bit. Now seems to work
fine with every mod.
2003-04-26 09:34:11 +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
580f2fbc07 New function to detect visibility of a single module, and
use of this function when displaying list of forums
2003-04-25 05:24:29 +00:00
moodler
047d30d1eb MySQL code (etc) to convert all usernames to lowercase ... does a lot more
checking than it really needs to, since MySQL is not case sensitive
2003-04-25 03:54:21 +00:00
paca70
1e22bc9c04 Conver usernames to lowercase for internal use. This prevent duplicate users
when using external authentication and posgresql.
2003-04-24 20:06:40 +00:00
paca70
e40488f80c routines to convert postgeruser to lowercase. 2003-04-24 18:48:09 +00:00
paca70
1dea7ebb04 global $CFG was missing...? 2003-04-24 17:38:20 +00:00
paca70
dbe0be0059 Added missing $ 2003-04-24 17:21:54 +00:00
stronk7
7cfb83477c Modified to obtain the visible property too. To use it when showing the list
of instances of every mod (bug #364)
2003-04-24 15:17:43 +00:00
moodler
2a40936834 Mark the hidden ones for teachers 2003-04-23 17:25:20 +00:00
moodler
13df5aeef3 Rebuild course modinfo caches to include the visible variable 2003-04-23 17:02:24 +00:00
moodler
7acaa63d09 Tidy up a bit 2003-04-23 16:57:35 +00:00
moodler
feffa4e695 chmod after mkdir (just in case) 2003-04-23 16:51:26 +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
stronk7
00d26a208b Changed the get_course_mods function to obtain the visible property too. 2003-04-23 16:09:56 +00:00
paca70
7d6cac54f3 New string conversion function to help with multibyte-locales 2003-04-21 16:39:43 +00:00
moodler
b369ff55fe Whoops, chmod not chown 2003-04-21 07:26:23 +00:00
moodler
718ad19f47 trying to fix up old file permissions 2003-04-21 07:21:33 +00:00
paca70
cefc7e817e Fix for postgresql column adding( $oldfield is always '"$oldfield"') 2003-04-18 20:50:42 +00:00
moodler
1acfbce5b6 Hide/show individual activities in any section
Code submitted by Eloy Lafuente (thanks!) for 1.0.8 ... I hand-merged it
into 1.0.9.
2003-04-14 15:11:09 +00:00
moodler
dae73c05e9 New $CFG->admin directory can override the location of the admin
directory.

Useful because some web hosts use /admin for other things.
2003-04-10 13:46:52 +00:00
moodler
bc700e6559 New function swapshuffle_assoc 2003-04-10 13:45:07 +00:00