446 Commits

Author SHA1 Message Date
skodak
20e9d26f83 MDL-16066 fixed apache log typo - thanks Neil Streeter 2008-08-17 22:23:19 +00:00
skodak
775f811a66 MDL-16002 rewritten upgrade locking and better upgrade progress tracking; MDL-16070 Do not use $a[0] syntax in lang packs + various other upgrade improvements and fixes 2008-08-16 12:16:01 +00:00
dongsheng
d255c6e9ad "MDL-15244, fix bugs of ip blocker" 2008-07-25 08:27:50 +00:00
dongsheng
5035228fc0 MDL-15244
1. move ip blocker to security menu
2. blocked list and allowed list can work together, a new option could set the order of them
2008-07-22 04:07:58 +00:00
dongsheng
4e63912156 MDL-15244, add ability to block ip addresses. 2008-07-16 02:16:42 +00:00
dongsheng
ab99c8f014 MDL-15244, add ability to block ip addresses for HEAD. 2008-07-14 08:14:31 +00:00
skodak
b373260475 MDL-15413 warn admins if display_errors enabled 2008-07-07 14:34:40 +00:00
Francois Marier
6800d78e06 Drift between CVS and git
- large deletions
- lucene updates
- error() => print_error()
- NO_MOODLE_COOKIES define
- various other things
2008-06-25 17:31:23 +00:00
skodak
3dce78e125 MDL-15247 lib/dmllib.php is now obsolete 2008-06-15 11:35:25 +00:00
skodak
251387d087 MDL-14956 basic exception support in Moodle + other minor related refactoring 2008-06-13 17:51:34 +00:00
skodak
e4c033a9dd MDL-15194 adodb separation, dml database creation support 2008-06-09 20:22:11 +00:00
skodak
294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
stronk7
6d5a22b208 Installer fixed, prefixes improved, moved conn settings to connect() and some more improvements. MDL-14864 2008-05-19 18:02:33 +00:00
skodak
f33e1ed4ae MDL-14679 ok, here is the big patch with new dmllib and ddlib API, some code is already converted, XML db editor works; see tracker for details of regressions and TODOs 2008-05-15 21:40:00 +00:00
fmarier
211c6890c5 Printing ADODB error to the web server error log (MDL-14628)
Merged from MOODLE_18_STABLE and MOODLE_19_STABLE
2008-05-07 04:40:18 +00:00
skodak
a648b6a8f1 MDL-14617 ancient register globals hack removed 2008-05-01 21:53:10 +00:00
skodak
8d14ff6d9c MDL-14617 removed old PHP4 session stuff 2008-05-01 21:52:09 +00:00
skodak
d3acaab4e4 MDL-14617 removed pre PHP 5.2.0 coocie compatibility stuff 2008-05-01 21:15:29 +00:00
skodak
2728a623e7 MDL-14622 fixed regression during install time - thanks Stephen Bourget 2008-05-01 21:08:50 +00:00
skodak
f995580108 MDL-14622 error when unsupported version jump detected - only upgrades from 1.8.x allowed 2008-04-30 14:05:36 +00:00
skodak
0a2925beb9 MDL-13881 fixed silly logic bug when disabling rcache - patch by Matt Clarkson; merged from MOODLE_19_STABLE 2008-03-11 09:05:20 +00:00
skodak
7fc1a27d05 MDL-90 fixed quickforms pear include regression; merged from MOODLE_19_STABLE 2008-02-27 11:09:27 +00:00
martinlanghoff
a4c371ece6 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:55:36 +00:00
martinlanghoff
8f64ba0483 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:49 +00:00
skodak
8cadac9dc7 MDL-13623 proper version detection; merged from MOODLE_19_STABLE 2008-02-26 18:35:30 +00:00
skodak
748923a045 MDL-13623 fixed regression in PHP < 5.2.0; merged from MOODLE_19_STABLE 2008-02-26 06:26:55 +00:00
skodak
585385278c MDL-13483 found two more native php mail() commands; merged from MOODLE_19_STABLE 2008-02-25 14:05:06 +00:00
skodak
4ea8df2173 MDL-11494 MDL-13623 - support for secure and httponly cookies; merged from MOODLE_19_STABLE 2008-02-24 12:46:37 +00:00
skodak
6a525ce289 MDL-12983 Installation stops after trying to download Language-Pack - patch by Dan Poltawski; merged from MOODLE_19_STABLE 2008-01-20 17:59:26 +00:00
martinlanghoff
b1df0eb2ce 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.
2008-01-06 22:56:07 +00:00
skodak
392e73631e MDL-12716 fixed admin setting for rcache; more robust rcache handling in setup.php; merged from MOODLE_19_STABLE 2007-12-23 13:10:35 +00:00
stronk7
35c1c575d4 After some more tests... apply the new preconfigure_dbconnection()
to core. MDL-12657

Merged from MOODLE_19_STABLE
2007-12-20 23:15:03 +00:00
skodak
220a90c5a1 MDL-11561 admin tree improvements and bugfixing 2007-12-19 17:35:20 +00:00
skodak
1504e26135 MDL-11927 fixed cookiepaths; patch by Kevin 2007-10-28 14:20:20 +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