Commit Graph

1777 Commits

Author SHA1 Message Date
moodler 94e3411897 Slightly more robust function 2003-01-13 02:42:57 +00:00
moodler 03c17ddfec Fix for dates (the last?) 2003-01-13 02:37:47 +00:00
moodler 3db75c62fc Fix when making timestamps from web selector 2003-01-10 05:41:20 +00:00
moodler 1079c8a872 More robust when dealing with a plugin module that isn't readable 2003-01-08 09:07:07 +00:00
moodler ce78926df0 Small robustness fixes 2003-01-06 13:55:37 +00:00
moodler 607809b3ba OK a number of small changes here.
Firstly, I'm replacing all use of old-style global variables like
$HTTY_REFERER with their new-style equivalent $_SERVER["HTTP_REFERER"]
Also using $_POST instead $HTTP_POST_VARS  etc

Secondly, if gdversion == 0 (ie GD is not installed) then:

 - users are not even allowed to upload new images
 - graphs now just print a message instead of failing.

this allows Moodle to still be used even if GD is not present
2003-01-05 06:45:20 +00:00
moodler 70d4cf8267 Ah!! At last, the dreaded off-by-one date bug, squashed. 2003-01-03 16:58:37 +00:00
moodler 14217044a5 Some little fixes 2003-01-02 15:25:51 +00:00
moodler ac5d88ebe9 Ignore guest when checking imcomplete users 2003-01-02 10:32:51 +00:00
moodler 0c106cd3ab Don't try to display docs files if they don't exist. 2003-01-01 12:03:15 +00:00
moodler 346b1a2483 Tweaks 2003-01-01 06:40:31 +00:00
moodler 808a3baaf8 If a user has authenticated via external authentication, then FORCE them
to fill out the user profile form (is they can't do anything else until
this is done)
2002-12-30 15:30:05 +00:00
moodler 9c9f7d7790 Various little fixes to remove warnings (usually about empty variables)
when error_reporting is turned up to 15 or so ... more of these to come ...
2002-12-29 17:32:32 +00:00
moodler cae7436602 Use session-specified language if possible 2002-12-29 16:26:44 +00:00
moodler 9bd2c8741c New function document_file() for fetching documentation from language
packs, and a few cleanups to reduce warnings
2002-12-29 14:41:03 +00:00
moodler 92a4b0f180 Fixes to allow the GD detection to work on PHP 4.3.0 (with bundled GD) 2002-12-28 14:45:54 +00:00
moodler 4fe04be0bd Er... on the cookies I meant. 2002-12-24 10:08:24 +00:00
moodler 7185e073ed Use table prefixes on database too :-) 2002-12-24 10:07:45 +00:00
moodler ebc3bd2b24 Changes throughout Moodle to remove any reserved words from the
Moodle tables.

ie user -> userid in many tables, plus in user_students
   start -> starttime and end -> endtime

I've just done all this as carefully as I could ... I don't think
I missed anything but it's pretty intensive work and I'd be fooling myself
if I didn't think I'd missed a couple.

Note that this version should pretty much be able to bootstrap itself
using PostgreSQL now ... but this is untested
2002-12-23 09:39:26 +00:00
moodler 1d881d926b More moving functions around and removal of hardcoded SQL 2002-12-23 03:07:01 +00:00
moodler 9fa49e22ab Many many changes lumped in here ... not finished yet either.
Basically all the Database functions are in lib/datalib.php
and the web functions are all in lib/weblib.php, so
moodlelib.php is much thinner than it was.

Data functions have been extended ... most old calls will
still work, but now many more SQL commands can be performed
using the datalib functions rather than using SQL.  I'm
currently moving through the whole tree replacing SQL
calls or at least concentrating them in one section of
mod/xxx/lib.php

Still working on forums, quizzes, surveys, resources.

The tree is currently not full working ... some things are
half-completed ... will resume tomorrow.
2002-12-20 14:44:14 +00:00
gregb_cc 8caf7e0430 Since the reimplementation of check_php_version will probably never be used, I
have removed it.
2002-12-17 03:04:07 +00:00
gregb_cc 709c0cb359 added in a commented out reimplementation of check_php_version, that will most
likely never be used.
2002-12-17 03:02:53 +00:00
moodler a3e175eea5 performance improvement when checking gd version 2002-12-15 02:40:25 +00:00
moodler 7be475f601 New consistent help buttons for textarea fields throughout all modules 2002-12-13 09:06:30 +00:00
moodler 8ab95b7186 Style hooks for print_simple_box 2002-12-13 03:14:49 +00:00
moodler d7facad81e Modifications from Greg Barnett at Crown College to add more admins.
See http://bugs.moodle.org/bug.php?op=show&bugid=202
2002-12-11 14:59:37 +00:00
moodler 2338465770 Tweak to etxt in box 2002-12-09 13:48:31 +00:00
moodler 7541bc3e87 More styles 2002-12-09 13:36:55 +00:00
moodler 21ba1d796b testing wrong thing 2002-12-09 12:12:42 +00:00
moodler 469e5eb18e More style and layout tweaking 2002-12-09 12:09:33 +00:00
moodler 86400f05f5 Small changes to help display of Japanese and on Netscape 2002-12-07 08:44:21 +00:00
moodler 035cdbff1a Improved removal of leading zeroes, but with some efficiency lost 2002-12-02 01:35:18 +00:00
moodler bea7a51e3c Slight change to get rid of leading zeroes in dates 2002-12-02 01:13:14 +00:00
moodler 64efda84b5 Fixes to increase the number of options available to limit assignment
upload size, and also to limit the list based on PHP limits
2002-11-28 02:41:56 +00:00
moodler fc05fccb64 Strip slashes from filenames 2002-11-26 02:11:05 +00:00
moodler 92710226a5 Tidy up some of the dox 2002-11-22 09:38:15 +00:00
moodler 466558e349 Changes to allow admin to control the "forgot password" function
and a bug fix for set_config
2002-11-22 08:43:35 +00:00
moodler 89b5432563 Allow admin user to always get in, no matter what the authentication method 2002-11-21 12:39:33 +00:00
moodler 6ae24de0e1 No longer need the getuserinfo parameter 2002-11-21 11:28:46 +00:00
moodler 34daec9b3b Tweaks to authentication system. Database method now allows other
fields to be specified so that things like email, names etc can be
pulled in from external database when new Moodle accounts are created
2002-11-21 07:37:21 +00:00
moodler 15e4b2ecd9 User pictures no longer are links on main view page 2002-11-20 14:58:24 +00:00
moodler 62c13a2f3e Changed all references of %e to %d to fix strftime on Windows 2002-11-19 14:27:57 +00:00
moodler 0431bd7c73 Extend the range of allowable timezones up to 13 hours ... (NZ Daylight savings) 2002-11-15 02:46:48 +00:00
moodler d483bcd35d Typo in variable 2002-11-14 11:48:01 +00:00
moodler 98c4eae3ac Set the character set of email to be the same as the default language 2002-11-14 11:45:14 +00:00
moodler a15803d3d8 Argh ... fix for Netscape fix - was causing problems on other browsers 2002-11-14 06:22:13 +00:00
moodler 7bee16d404 More sensible varible names 2002-11-10 08:55:39 +00:00
moodler dfc9ba9bbe Added navmenu in more places 2002-11-10 08:43:44 +00:00
moodler 4359e8f715 Typo in navmenu 2002-11-10 07:59:01 +00:00