Commit Graph

239 Commits

Author SHA1 Message Date
fmarier b5840c4c7d MDL-19222 revert diskfree check 2009-06-08 01:16:15 +00:00
fmarier 83f9848c42 MDL-19222 lib/setup: work-around the disk_free_space call failing on very large partitions 2009-05-22 02:53:00 +00:00
fmarier 9ac7d1f1c9 MDL-19222 add a check and error message when initialising file sessions in case there is no free space on the partition 2009-05-18 05:25:32 +00:00
tjhunt bb2067c851 database: MDL-18269 query logging behaviour changed in Moodle 1.9 due to internal ADODB changes. 2009-02-16 03:00:07 +00:00
skodak f01be9f366 MDL-18253 hopefully fixed weird float precision that breaks upgrade and gradebook; backported from HEAD 2009-02-15 19:03:18 +00:00
skodak 05f6536c54 MDL-17789 prevent potential XSS problems through PHP_SELF; backported from HEAD 2009-01-06 13:09:13 +00:00
skodak ef005cf1fe MDL-17772 fixed guest access 2009-01-02 20:54:59 +00:00
jonathanharker 62cf1ae8c1 MDL-16875 New Moodle setting - sessioncookiedomain
Added new sessioncookiedomain setting to session handling section.

 * allows you to change the domain that the Moodle cookies are available
   from. This is useful for Moodle customisations (i.e. Squirrelmail SSO
   or enrolment plugins) that need to share Moodle session information
   with a web application on another subdomain.

 * Will NOT work if the moodle host does not have a domain - i.e. just a
   hostname, e.g. 'localhost' or 'myhostname'. Needs a FQDN

 * Currently the setting is set to PARAM_TEXT length 50 since PARAM_HOST
   does not allow a leading dot e.g.  '.mydomain.com'

 * TODO: do we make up a new PARAM_COOKIEDOMAIN which is the same as
   PARAM_HOST but allows leading dots? Using PARAM_HOST and prepending a
   dot may not always be desirable.
2008-12-14 23:30:58 +00:00
skodak d38c50ff6f MDL-16066 fixed apache log typo - thanks Neil Streeter 2008-08-17 22:22:51 +00:00
skodak e690e668ba MDL-15469 adding fclose before write to already open file 2008-07-09 10:32:37 +00:00
skodak 7713cdb03c MDL-15413 warn admins if display_errors enabled; backported from HEAD 2008-07-07 14:35:29 +00:00
dongsheng f6ee689f33 "MDL-15469, limit email notification" 2008-07-02 04:46:04 +00:00
fmarier 57d6548065 Printing ADODB error to the web server error log (MDL-14628) 2008-05-07 04:37:39 +00:00
skodak e1e2d33d8a MDL-13881 fixed silly logic bug when disabling rcache - patch by Matt Clarkson 2008-03-11 09:04:29 +00:00
skodak 7c6e10fe39 MDL-90 fixed quickforms pear include regression 2008-02-27 11:08:01 +00:00
martinlanghoff 58bf9beea3 MDL-90 lib/setup: extend include_path to cover the PEAR libs we distribute
Almost no cost - most of our require/include calls are with
absolute paths, which will skip the include_path. The few
that are not absolute are usually to include PEAR libs -
so this is appropriate and avoids having to change the
PEAR libs themselves when they make references to other
PEAR libs.

Using the include path does mean that OS-installed PEAR libs
will override ours. There's a small compat risk here - if you
need to ensure a particular version, use an absolute path.
2008-02-27 02:56:06 +00:00
martinlanghoff 26e8984b51 MDL-90 Introducing MOODLE_SANE_INPUT and MOODLE_SANE_OUTPUT to setup.php
These two constants indicate that the Moodle core should not mangle
input (magic quotes of any kind verboten!) and should not spit odd stuff
in the output (displaydebug verboten!). Both are needed for WebDAV
support.

MOODLE_SANE_INPUT is tricky - it means that the codepaths _must_ use
$db->qstr() (or addslashes() - but that has its own problems).
2008-02-27 02:51:59 +00:00
skodak 13db6cc1e4 MDL-13623 proper version detection 2008-02-26 18:33:22 +00:00
skodak 186fa912d9 MDL-13623 fixed regression in PHP < 5.2.0 2008-02-26 06:25:23 +00:00
skodak c5b4af2e5d MDL-13483 found two more native php mail() commands 2008-02-25 14:03:53 +00:00
skodak 01911fa4b2 MDL-11494 MDL-13623 - support for secure and httponly cookies 2008-02-24 12:45:49 +00:00
skodak cb2bf96fe9 MDL-12983 Installation stops after trying to download Language-Pack - patch by Dan Poltawski 2008-01-20 17:58:06 +00:00
martinlanghoff 18ef2fc61e lib/setup: restore sanity to rcache handling
$CFG->rcache is safe to keep, even as we are reading the config table.

This is because whenever we update the config table, all the rcache
plugins either mark the cache as dirty or they update the cache.

The reason we want to be able to preserve this is that rcache settings
in CFG should usually be set in config.php rather than in the config
table.

With this fix, we support both control points.

Merged from HEAD.
2008-01-06 22:56:11 +00:00
skodak 4bdb55f50b MDL-12716 fixed admin setting for rcache; more robust rcache handling in setup.php 2007-12-23 13:08:56 +00:00
stronk7 c15475c93b After some more tests... apply the new preconfigure_dbconnection()
to core. MDL-12657
2007-12-20 23:12:51 +00:00
skodak 40f43aa1fc MDL-11561 admin tree improvements and bugfixing; backported from HEAD 2007-12-19 17:38:37 +00:00
skodak d5d95c5e02 MFC: MDL-11927 fixed cookiepaths; patch by Kevin 2007-10-28 14:21:41 +00:00
skodak 1d19804aa3 MDL-11568 prevent warning from $USER->mnehostid when not logged in 2007-10-07 13:46:46 +00:00
skodak 7d0c81b3ba MDL-11521 fixed problems when creating contexts and aprents does not exist yet
MDL-11527 fixed warning from $CFG->defaultuserroleid when installing and upgrading
+ removed reusing of previous contexts in has_capability() and get_context_instance()  because it was hiding critical errors when context was false, not specified, etc.
+ tweaked roles defaults - faster and defaults are applied when roles exist
+ SYSCONTEXTID may be specified in config.php to eliminate 1 db query
+ static context cache is now reset after rebuilding of context paths
+ path field in context table is now nullable - pg compatibility requirement
+ other minor fixes
2007-10-05 15:06:38 +00:00
moodler bac6d28a6f Fixed the definition of SYSCONTEXTID when it's not 1 (like moodle.org) 2007-09-21 04:55:14 +00:00
martinlanghoff ac0b19ffe9 lib/setup: Cleanup warnings in apacheloguser handling 2007-09-19 07:55:46 +00:00
martinlanghoff 6dd34e935d lib/setup: declare SYSCONTEXTID to have the system context handy 2007-09-19 07:02:18 +00:00
moodler 43ee1454df Added Zoomspider as allowed to enter when opentogoogle is open 2007-09-13 08:59:31 +00:00
moodler e7aa5a8800 Patch as suggested by Eloy in MDL-11237 to work around a nasty PHP bug in PHP 5.20 2007-09-13 06:42:49 +00:00
martinlanghoff cf1348caae PERF logging - move handling to moodle_request_shutdown()
By moving the performance profile logging to the very
end of PHP processing, we cover more pages, notably those
that don't end up with a footer or a redirect, like file
serving.

This should improve quality of our performance logs, and
help catch some piggies...
2007-09-12 02:57:26 +00:00
Martin Langhoff 13534ef716 cvsimport fixups 2007-08-29 13:10:11 +12:00
urs_hunkler 70244cc2cd MDL-10075 - changes done following Petr's patch and optional_param with default ltr 2007-07-29 20:46:05 +00:00
urs_hunkler aa2ed80397 MDL-9977 and MDL-8446 - added $CFG->langdirection to be able to deal with ltr/rtl languages and correct themes. 2007-06-10 13:44:05 +00:00
toyomoyo 0856223c50 mechanism to install events 2007-04-19 08:45:30 +00:00
martinlanghoff cf8133c457 lib/setup moodelib: Introducing moodle_request_shutdown()
Now Moodle will have a 'shutdown_function' function. Right now
registered (and useful) only when running under apache + mod_php.

This initial function checks whether memory usage in this process exceeded
10MiB or $CFG->apachemaxmem (int, in bytes). This is really useful to prevent
using more RAM than we have.
2007-04-05 05:04:06 +00:00
skodak 4eefee9779 MDL-8469 increase memory limit everywhere due to changed calculation of used memory in PHP 5.2.x - the real memory useage is the same, but the reported size of used memory is now more accurate 2007-02-14 20:46:38 +00:00
moodler ab036ed9ca Feature from Eloy to set the language to whatever the browser suggests (if the user is not logged in) 2007-02-12 14:58:44 +00:00
skodak 6349a3ba48 MDL-8384 debugdisplay does not respect original value of display_errors 2007-02-01 21:11:50 +00:00
moodler 326e563a43 Prevent an rcache-related notice 2007-01-29 06:12:18 +00:00
skodak 8d2b18a886 MDL-8337 has_capability() ignores default roles for $userid and does not detect changed $USER and other minor fixes (this is needed for global $COURSE cleanup and fixed+improved cron.php) 2007-01-28 20:52:57 +00:00
skodak dcf6d93c9c MDL-8323 Add proper setup of course $CFG variables, fix use of global $COURSE
new function course_setup() thats does proper $CFG-> , locale and themes setup much sooner than print_header() originally (needed for MDL-8067), cleanup of forgotten global $course issues

MDL-8067 Fixed several $HTTPSREQUIRED issues - html editor now loads from https (the old hack did not wotk with IE7, new hack is uglier but works), fixed formlibs images (we can not set them in library global scope, we must wait for httpsrequired() and require_login() and od that in function), fixed links in meta.php, fixed help images

fixed setting of new $USER values in user edit forms
2007-01-27 19:56:08 +00:00
martinlanghoff bb931a61c6 rcache: cleanup, upgrade path, config options (MDL-8163)
record cache and caching schemes get a little cleanup, faster
if()s and a nice set of config options. Users who've been using
the internal cache get a nice upgrade too.
2007-01-14 23:02:13 +00:00
moodler d21a5865cf Added CFG->frametarget (defined by frametarget()) MDL-8050 2007-01-04 04:57:50 +00:00
moodler 2533830067 $CFG->debugdisplay now controls PHP errors too 2007-01-03 01:37:20 +00:00
martinlanghoff 2142d4924f $MACHE: add support for eaccelerator/memcached, change the $MCACHE calling convention a bit
- this effectively breaks memcached support for the moment
2006-12-27 22:47:14 +00:00