Commit Graph

66 Commits

Author SHA1 Message Date
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
moodler 346b1a2483 Tweaks 2003-01-01 06:40:31 +00:00
moodler 4fd7ccc0fe New "debug" variable to turn debugging on and off 2002-12-30 03:24:07 +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 11e8f20ec4 Accidentally left debugging on 2002-12-29 04:18:09 +00:00
moodler 9d378732e4 More little fixes 2002-12-29 04:17:32 +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
moodler 45f21f94d7 config.php not required ... just in case themes move or something ... 2002-12-13 03:15:28 +00:00
moodler cf3f6bcc2c Removed makeclass stuff completely. It's now in contrib/crown_college 2002-12-11 06:31:59 +00:00
moodler e6f10ec582 Theme not working for brand-new setup. 2002-12-10 13:37:37 +00:00
moodler 469e5eb18e More style and layout tweaking 2002-12-09 12:09:33 +00:00
moodler 2e4b204b26 Changes to make makeClassFromFile() in makeclass.php work better 2002-12-09 02:12:37 +00:00
moodler 339bb5599f New code to use locale information from language packs if necessary 2002-12-08 17:26:21 +00:00
moodler a8a71844e4 If the database doesn't work then just die before anything else 2002-12-07 07:27:58 +00:00
moodler 8dfc9d0f19 Using LOCALE defines, not strings 2002-11-08 01:33:04 +00:00
moodler 7209909ec9 On second thoughts, don't apply locale to numbers because it may
affect some calculations.   Just strings and times.
2002-10-29 15:33:09 +00:00
moodler fa0c7d6d91 Use the locale to set everything (eg string conversions, comparisons,
money numbers etc instead of just the time)
2002-10-29 15:25:22 +00:00
moodler 0ee8d9203e Added some commented-out code that MIGHT help people with string slash problems. 2002-10-26 02:31:49 +00:00
martin ae7aafeb53 Got rid of errorlevel configuration - more trouble than it's worth!
Hardcoded it into setup.php now - people who are that keen can change
it there.
2002-09-19 14:07:24 +00:00