713 Commits

Author SHA1 Message Date
stronk7
23f6216b92 Do some isset() checkings with $CFG->sessioncookie.
Previously when debug turned on, login was impossible
due to some notices sent before writing http headers.
2003-10-17 09:54:41 +00:00
moodler
39dda0fc4f Added nolink tag 2003-10-16 14:25:36 +00:00
moodler
6de85459d2 Use $CFG->sessioncookie on MOODLEID cookie as well 2003-10-16 13:23:53 +00:00
moodler
c1f5319532 A new Moodle variable called sessioncookie is now added to the session
cookie name.  This provides a means for multiple Moodles within the
same website to keep separate sessions and not get confused.
2003-10-16 13:19:10 +00:00
moodler
3528bae253 Fixed comments on str_ireplace 2003-10-16 10:20:35 +00:00
moodler
7ec2fc00a0 Improved version of str_ireplace() for older versions of PHP (now handles arrays) 2003-10-16 09:28:27 +00:00
moodler
72c751da80 New class for handling ODBC socket server 2003-10-15 08:49:12 +00:00
moodler
c53be4c013 Some cleaning up ... shouldn't make much difference 2003-10-15 02:48:40 +00:00
moodler
e67b9e31e5 NEW EXPERIMENTAL FEATURE: text filters.
This new feature allows arbitrary text filters to be added to
any HTML that is printed (forum posts, resources etc) ... anything
that uses the standard format_text function.

The first one properly supported is the glossary dynamic linking
feature.
2003-10-13 14:11:17 +00:00
moodler
266a416e16 get_real_size can now pick up 900k 2003-10-13 03:16:25 +00:00
moodler
5204d8316a A new configuration parameter 'allowunenroll' will enable/disable the
"unenrol me" buttons on user pages and course pages.
2003-10-12 18:03:50 +00:00
moodler
089ce20f37 Stop inadvertant browsing 2003-10-12 17:27:31 +00:00
moodler
408e62f865 FIxed bug when no courseid 2003-10-12 17:24:46 +00:00
moodler
50bdc74de2 A new feature to allow teachers to browse course files to
find images to insert into Richtext editor windows.

This hack was started by Janne Mikkonen, and I further refined it
to fit better into Moodle.

See:  http://moodle.org/mod/forum/discuss.php?d=2126
2003-10-12 17:12:02 +00:00
moodler
950cf40381 <acronym> is an allowed tag 2003-10-06 18:09:27 +00:00
moodler
4909e17632 These changes implement some better controls for controlling uploads.
1) There is a new site-wide configuration variable called maxbytes,
   which provides an upper filesize limit for all (student) uploads.

2) There is a new course-level variable called maxbytes, which further
   limits uploads within a course.

3) There is a new maxbytes field for forums, which further restricts
   the size allowed in a particular forum.  There is also a new config
   variable in the module configuration to specify a default size
   to use when defining a new forum.

4) Assignments already had a limit, but this is now aware of the other
   limits, and like forums there is now a settable default value.

5) Finally, the sizes of files (Gb, Mb, Kb, bytes) is now translatable
   in the language packs.
2003-10-06 18:02:35 +00:00
moodler
d8152d04c0 Language direction is now set in the language file, rather than
as a site-level setting.  This currently only affects Arabic but
will affect Hebrew later and maybe others.
2003-10-05 14:05:57 +00:00
moodler
7631d9c355 Goodbye old library! Replaced by moodle/lib/excel 2003-09-30 13:24:23 +00:00
moodler
aa3eb05096 When getting a list of countries, check the parent language if necessary. 2003-09-26 08:21:11 +00:00
moodler
5833a6c8eb The list of countries has finally been moved into the language packs
so it can be translated.

There is now a new function get_list_of_countries() which will return a
sorted array of countries in the best current language.

get_string("AU", "countries")   will also work if needed
2003-09-26 08:04:48 +00:00
moodler
8b1fb0c66a Adding a new system for producing Excel documents that are a little
more compatible with non-Excel spreadsheets.  It also has more features
than the old system that we might take advantage of later.
2003-09-26 04:18:02 +00:00
les_kopari
401a81dddf Added columns indent, visible to create, inserts. 2003-09-24 02:06:34 +00:00
les_kopari
24604ce7fe Initial version for Oracle: does nothing. 2003-09-24 01:30:43 +00:00
moodler
a1f8ff87c7 Small fix to avoid warnings on empty tables 2003-09-23 12:18:27 +00:00
moodler
ba7166c377 Added is_internal_auth() function to quickly identify internal authentication 2003-09-22 13:58:20 +00:00
moodler
e4576482d5 Robustness on an optional variable 2003-09-21 16:35:49 +00:00
moodler
66a51452d9 Changes from Mad Alex and Gustav Delius:
- make more of the HTML into XHTML
  - add a $usexml parameter to print_header that sets up the page as XML
    (in the first case, for MathML)
2003-09-21 15:45:24 +00:00
moodler
489b291962 When searching users don't use "LIKE" for all databases. 2003-09-19 08:33:27 +00:00
thepurpleblob
299665b644 Changed replacement logic for quotes (") as some versions of Micro$oft's
(so called) browser are buggy and sometimes ignore <p> tags.
2003-09-18 12:52:14 +00:00
moodler
160e811553 Don't grab unconfirmed users in user listing 2003-09-18 11:51:05 +00:00
moodler
7a1ade1b78 Make get_course_students backward compatible 2003-09-18 04:50:22 +00:00
moodler
4969ad7400 First attempt at proper paging for the user page.
Still needs some work ...
2003-09-18 04:46:34 +00:00
moodler
ab2df10cc8 Hide labels from nav menu 2003-09-15 11:59:15 +00:00
moodler
30222590f7 When adding a new column, set all the default values manually 2003-09-14 17:39:18 +00:00
moodler
aac94fd0cc New field on course_modules called "indent" ... this is an integer
that tells us how far to indent the activity when it is displayed.

This gives us some more flexibility on the course outline to
arrange things as we might like them, into subtopics etc

Backup/restore is updated as well.

There is also a bit more robustness in course/mod.php
2003-09-14 16:31:33 +00:00
moodler
c9f6251ea8 Two things are in this checkin:
1) Support for the new "label" module has been added.  It's unfortunate
   about having to make these exceptions but this was the overall cleanest
   way I could think of.

2) All local calculation of pixpath and modpixpath has been removed and
   replaced with a single calculation which is done in setup.php and
   stored in $CFG->pixpath and #CFG->modpixpath.  All graphics should
   use these variables so that themes can easily override them.
2003-09-14 12:25:16 +00:00
moodler
c7ce6d80a3 Used the wrong function to display the message (Notify, not Notice) 2003-09-14 12:22:13 +00:00
moodler
18a97fd84d Some early phpdoc-style documentation (thanks to Russell Jungwirth!)
Fixes for use of MySQL-only CONCAT function on other databases
2003-09-14 04:04:15 +00:00
moodler
bb9cf93d21 Frontpage directories to ignore are called _vti_cnf .. not vti_cnf 2003-09-13 08:19:42 +00:00
les_kopari
96c1e116e6 Oracle tables, etc converted from mysql, plus test transactions. 2003-09-13 08:05:21 +00:00
moodler
8bd0a875e0 Fixed some short tags 2003-09-11 13:53:25 +00:00
moodler
e71f132dc8 Added missing showrecent field to PostgreSQL 2003-09-10 13:48:19 +00:00
moodler
88487dea6d One GROUP BY -> DISTINCT 2003-09-10 13:28:27 +00:00
moodler
0db8b2e2b7 Some fixes for PostgreSQL (use DISTINCT) 2003-09-10 13:17:13 +00:00
moodler
b626680ead Removed some short PHP tags 2003-09-09 04:02:55 +00:00
moodler
2b09e37782 Fixes for obfuscate_text() when printing emails with numbers in them.
(Patch from Zbigniew Fiedorowicz  - thanks)
2003-09-09 02:22:36 +00:00
moodler
f1c1b17ab5 Some small fixes to the category display:
- small numbers of courses (less than 8) are displayed in full,
    unless the creator or admin is editing.

  - course counts are now accurate when all courses are removed from
    a category
2003-09-03 14:05:31 +00:00
moodler
b48f834cfb Some cleaning up and improvement of the course listings, especially when
courses are listed under multiple categories
2003-09-03 12:13:08 +00:00
moodler
3af6e1dbb8 Allow Course creators to see all hidden categories and courses 2003-09-03 08:29:05 +00:00
moodler
5b6a1dd3ad Invisible courses get put last on the My Courses listing 2003-09-03 08:10:02 +00:00