520 Commits

Author SHA1 Message Date
moodler
e79ddee2ad Smaller random number for smaller machines. :-) 2003-01-24 08:47:20 +00:00
moodler
03f06a1412 Remove the ampersand thing ... it was actually a Mozilla display bug. :-) 2003-01-24 08:41:18 +00:00
moodler
9223049919 Fixes to insert_record for inserting null values.
Also some unfinished changes to table_column ... not recommended for use right now
2003-01-24 07:51:55 +00:00
moodler
eb58acca4d New sessiontimeout config variable to set the timeout for sessions 2003-01-24 04:31:58 +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
9f44d972c7 Add slashes to data pulled out of external source, just in case O'Brien logs in :-) 2003-01-22 01:55:54 +00:00
moodler
d60131c3c9 Changes to use fonts in language packs, and also to use a language
decoding function if necessary
2003-01-21 09:17:10 +00:00
moodler
f6e653e06a Moved fonts into language pack so that other languages can have
proper displays in graphs
2003-01-21 07:27:01 +00:00
moodler
2e6d42735f Added new configuration value $CFG->directorypermissions to set the
permissions for new directories created in dataroot
2003-01-20 14:03:11 +00:00
moodler
3e9b5d5a90 Moved session lang setting into setup.php (works on all pages) 2003-01-20 08:09:25 +00:00
moodler
858156a995 Take session language into account when setting locale 2003-01-20 08:06:09 +00:00
moodler
37208cd23a Some robustness 2003-01-20 07:13:02 +00:00
moodler
dc8791f367 Undoing recent change to insert_record() because of some problems 2003-01-20 07:10:14 +00:00
moodler
c9d4e6da89 Remove old doclang variable 2003-01-19 12:37:56 +00:00
moodler
3db3acfb99 Instead of using doclang, use $SESSION->lang, and make it override other
language settings.  This should fix documentation display, but also will
be how setting registration languages and login languages works
2003-01-19 12:32:55 +00:00
moodler
a7e838796a Rogue tabs 2003-01-19 06:07:05 +00:00
moodler
fe2874294c If we create a directory, then chmod it to protect the contents. 2003-01-19 05:54:08 +00:00
moodler
3c72e2f9c9 Some changes to insert_record to help Postgres 7.3 2003-01-19 05:46:49 +00:00
moodler
7fb92a3388 Changed Czech code 2003-01-19 01:23:53 +00:00
moodler
536d3e22be Added Wales 2003-01-16 12:17:45 +00:00
moodler
dcde9f020a Displayed time formats are now stored in lang files
(see the new strftime* strings) so they can be customised per language
2003-01-15 10:55:54 +00:00
moodler
1c418003d7 FIxed logic problem when checking has_default variable in the database
when inserting new data
2003-01-14 15:36:20 +00:00
moodler
2c104c0152 Fixed redirection when user not completed yet in some instances when
using external authentication
2003-01-14 14:54:45 +00:00
moodler
1063d08854 Add info that may help solve a bug on some old servers 2003-01-13 12:06:33 +00:00
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
6ed3da1da4 Cleaned up file argument processing a bit 2003-01-12 06:53:25 +00:00
moodler
1685298e60 Removed a line from config.php 2003-01-12 06:31:07 +00:00
moodler
353439a354 Slight cleanup 2003-01-11 14:01:39 +00:00
moodler
6b72b9a911 A small standalone test program to test session support 2003-01-11 13:58:17 +00:00
moodler
3db75c62fc Fix when making timestamps from web selector 2003-01-10 05:41:20 +00:00
moodler
39e018b338 Fix for display of date selector, and also for finding server name from
environment
2003-01-10 05:40:35 +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
8af3e37948 Slight increase in log field size 2003-01-06 13:40:05 +00:00
moodler
6a738db7b5 Added 4.3.0 bug compatibility 2003-01-06 01:44:49 +00:00
moodler
b0e3a92523 Clean sweep through all the important changing all include(), include_once()
and require() to require_once()
2003-01-05 14:19:20 +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
a3fb1c450a New function table_column() to add or alter a column in any database. 2003-01-03 15:31:30 +00:00
moodler
e53b0823ab More robust checking of returned $rs 2003-01-03 06:44:35 +00:00
moodler
8663bfdb08 Display months in local language for date_selector 2003-01-03 06:43:12 +00:00
moodler
14217044a5 Some little fixes 2003-01-02 15:25:51 +00:00
moodler
5422d75fcb Hmmm database name causing some problems ... 2003-01-02 15:12:34 +00:00
moodler
e1bf736ffa Fixed that damn www linking problem with words like wwwroot :-) 2003-01-02 14:54:33 +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
fa3ba0f6c1 Slightly more efficient way to open the database connections 2003-01-02 11:34:00 +00:00
moodler
7adcd58f82 Prepend database name to all table names to avoid ADOdb bug when there
is multiple database connections at once.
2003-01-02 11:09:03 +00:00
moodler
61e96406df Robustness fixes 2003-01-02 10:35:11 +00:00