423 Commits

Author SHA1 Message Date
moodler
c897eac5e4 Some small robustness things, and a new style for quiz feedback text 2003-01-08 09:08:05 +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
3b7c1de95e Changes to improve robustness of uploads, and make things compatible
with PHP 4.3.0.  Also some translation fixes with upload strings.
2003-01-05 04:20:32 +00:00
moodler
36b4f9852e buggy_referer is dead! Long live buggy_referer!
Should be fixed now.  As a bonus, I've removed all the uses of
HTTP_POST_VARS from all scripts.

All forms should use the new data_submitted() function to collect
form data (it does the match_referer thing internally now).

Much nicer.
2003-01-02 14:49:23 +00:00
moodler
fb964e0c78 Some robustness fixes. 2003-01-02 13:08:20 +00:00
moodler
04fa59d015 Use HTML editor for editing HTML files 2002-12-26 16:26:55 +00:00
moodler
d72788c346 Added php mime type 2002-12-07 04:24:22 +00:00
moodler
62c13a2f3e Changed all references of %e to %d to fix strftime on Windows 2002-11-19 14:27:57 +00:00
martin
fedc147ef7 Moved some functions out to lib/moodlelib.php 2002-09-01 14:28:08 +00:00
martin
0c377177ed Improved header now contains directory trail, and I internationalised
all the texts (buttons etc)
2002-08-30 13:18:06 +00:00
martin
6e4c09db98 slasharguments wasn't being found (CFG not declared global) 2002-08-28 13:41:38 +00:00
martin
718deefdc8 Added powerpoint 2002-08-28 13:36:49 +00:00
martin
293eae6863 New icon 2002-08-28 13:36:36 +00:00
martin
3f8247c2ea Changes to use a new configuration variable: CFG->slasharguments
If true, then display of user pictures or filenames will use the
method of providing arguments as "slash" arguments - this is much
better for caching, proxies, search engines etc.  Unfortunately
it doesn't seem to work on some PHP installations.

If false (the default), then a more compatible method is used
(ie usual way of passing parameters to scripts)
2002-08-26 09:48:00 +00:00
martin
8ce53f0f85 New CFG->zip and CFG->unzip valiables which specify programs to use
when zipping and unzipping files.  Unix only at this stage. (Zip interfaces
for Windows are much less standardised)
2002-08-18 15:26:04 +00:00
martin
6e40c33d32 Now properly sets and checks limits on file sizes 2002-08-07 08:24:38 +00:00
martin
6d6319c061 Upload works again ... 2002-08-07 03:45:22 +00:00
martin
6b1746806c Misc small changes while I was working on assignments 2002-08-04 16:20:30 +00:00
martin
7a302afc5f Slight changes to userdate() function. It now uses gmstrftime() instead of
gmdate to format times, thus allowing it to take advantage of locale, if set,
to print dates in the appropriate language.  Several userdate invocations
had to be changed, though, to use the different formatting specs.
2002-07-02 07:02:28 +00:00
martin
873960de8c Changes related to timezone display. Datetime display now uses userdate()
which itself uses the USER variable timezone to alter the displayed time.
2002-06-05 03:15:30 +00:00
martin
ce20f6cfb3 Removed log entry for now 2002-05-31 13:13:42 +00:00
martin
a99e41938e Moved the array into the function. 2002-05-19 04:43:04 +00:00
martin
f9903ed0a4 Initial revision 2001-11-22 06:23:56 +00:00