Commit Graph

384 Commits

Author SHA1 Message Date
moodler 4037263a06 Fixed bug with quotes (finally?) 2004-09-27 09:32:59 +00:00
paca70 d53748e6bf Ficed bug on " -> ' conversion 2004-09-27 05:15:21 +00:00
dhawes da8759cb8f Phpdoc comments added to define moodle globals. Also converted double quote strings to single quote literals 2004-09-25 05:30:03 +00:00
gustav_delius dcb1bd3c9a towards XHTML compliance 2004-09-12 13:21:01 +00:00
moodler 91d39e19ef Merged increased memory limit from stable 2004-09-08 07:11:48 +00:00
moodler de7e4ac97d Set ampersands for automatic URL parameters 2004-09-07 09:49:41 +00:00
moodler 003c49cb7d Better login 2004-09-07 08:23:11 +00:00
moodler 98de6431e9 Fixed a typo, whoops 2004-09-07 08:04:02 +00:00
moodler 9610a66e21 Allow Validator from http://validator.w3.org/ and the Cynthia 508 checker.
It only works when you are using the new standardxhtml theme.

This is temporary while we do testing and validation.

I highly advise using Mozilla/Firefox and the Web Developer extension

   http://www.chrispederick.com/work/firefox/webdeveloper/
2004-09-07 07:38:44 +00:00
moodler 80035a89e1 Disallow dots being passed to lang (path disclosure) 2004-08-18 05:52:01 +00:00
moodler 22d42bf0ce If possible, increase the memory limit at run-time. doh!
Not many servers have this compiled into PHP though.
2004-08-16 07:26:19 +00:00
moodler 32c60ce365 Whoops, forgot to check this in last night. 2004-07-17 04:31:34 +00:00
gustav_delius be0bdec88c a hack to fix bug 1598 regarding undefined $CFG->enrol 2004-06-29 21:16:58 +00:00
moodler afb18f5aea Set up Smarty template system in the setup.php 2004-06-24 13:10:47 +00:00
moodler a2fa19d87c Merged in latest changes from STABLE 2004-06-21 13:07:44 +00:00
moodler 2d33fc00d1 Allow other Google thigns into the site too ... in particular translate.google.com 2004-05-16 14:19:35 +00:00
moodler cec0a0fc30 New developmental setting to force UTF for the whole server
Plus, some optimisation on the way encoding is stored (in the session).
2004-04-27 13:57:46 +00:00
moodler 39e1c4158f I think this might solve the mysterious problems with
session garbage collection and timeouts not working.

Note: upgrading to this will KILL all current sessions, so
you will need to log back in.
2004-04-15 14:46:54 +00:00
moodler 36ec6afea6 Added a small security check 2004-03-20 04:04:15 +00:00
moodler 18845ac357 If $CFG->opentogoogle is defined then
- google can get in as guest

   - visitiors referred from google get in as guest
2004-01-25 09:37:28 +00:00
moodler 1040ea8501 A workaround for a PHP bug with Turkish, and some fixed strings changed from "" to '' 2003-11-12 07:39:10 +00:00
moodler 482b6e6e38 Same as Eloy's fix, just a few less lines of code. ;-) 2003-10-17 12:30:17 +00:00
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 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 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 16e4918d43 Little tweak to fix a caching problem.
User images were not being cached properly because Moodle was
sending a session cookie.  I've turned this off now for user images.
2003-08-12 07:02:34 +00:00
moodler 46213aa855 Improved magic_quotes routine (deals with arrays now, too) 2003-07-29 01:54:16 +00:00
moodler aa6af0f833 A hack to get around magic_quotes_gpc being turned off 2003-07-28 16:37:12 +00:00
moodler d1a3dc8867 The session is now named "MoodleSession" to prevent conflicts with
other software.
2003-06-07 06:35:12 +00:00
moodler 16ba73512e Slight improvements to import of global variables
- don't globalise cookies
  - better checking of lang variables
2003-05-26 15:38:52 +00:00
moodler c39c66a5e8 Using new ini_get_bool function to work around a bug with ini_get where
the result is different for items set in htaccess
2003-05-17 02:05:10 +00:00
moodler 9f71c9e713 Use the new $CFG->dbpersist variable in config.php to determine whether
to use persistent connections or not.  The default is to use them (for
speed/efficiency) but now they can be switched off with:

$CFG->dbpersist = false;
2003-05-09 02:20:03 +00:00
moodler 3d9f0f81d6 IMPORTANT SECURITY FIX - this makes sure $CFG can not be overridden 2003-05-09 02:02:27 +00:00
moodler 0cb29cc411 Turn off PHP error reporting while connecting to database 2003-05-07 08:07:48 +00:00
moodler 4f5dbd132c Try persistent connection first, but if that fails for some reason then
automatically fall back to a non-persistent connection.
2003-05-07 08:03:43 +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 08c17336a7 Fixed $USER and $SESSION to be pointers to the real $_SESSION
variables, so there's no longer a need for save_session  (thanks,Petri)
2003-02-27 02:38:55 +00:00
paca70 1924074c76 Added support for nonadmin course creation.
Course creators are managed by /admin/creator.php , same way that admins.
Or if authetication module have 'auth_iscreator'-function (right now only ldap-module have) ,
users are added to creators at login time.
2003-02-24 18:48:55 +00:00
moodler eb58acca4d New sessiontimeout config variable to set the timeout for sessions 2003-01-24 04:31:58 +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 1063d08854 Add info that may help solve a bug on some old servers 2003-01-13 12:06:33 +00:00
moodler 1685298e60 Removed a line from config.php 2003-01-12 06:31:07 +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 5422d75fcb Hmmm database name causing some problems ... 2003-01-02 15:12:34 +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 b6bae251a1 If prefix isn't defined in config.php then define it as "" to avoid
problems with upgraders who don't edit config.php
2003-01-01 09:29:05 +00:00
moodler 6fbf8d8fe8 Default debugging 2003-01-01 08:48:15 +00:00