123 Commits

Author SHA1 Message Date
martinlanghoff
5c5c16bb98 Apache log integration -- updated with more options to control what is logged as username. Implemented by Patrick Li. 2005-05-17 04:03:48 +00:00
martinlanghoff
a559eee64e Apache log intergration. In apache conf file one can use ${MOODULEUSER}n in LogFormat to get the current logged in username in moodle. Implemented by Patrick Li. 2005-05-16 02:51:05 +00:00
moodler
0a194c4c03 Google say they want 404 for prefetch requests 2005-05-07 08:20:34 +00:00
martinlanghoff
d719609931 Merged from MOODLE_14_STABLE - Block link prefetching from Mozilla and Google Web Accelerator. 2005-05-07 03:07:08 +00:00
moodler
29e91ef724 Embedding the session checking a little better 2005-04-23 15:02:00 +00:00
martinlanghoff
d6ead3a251 Polish and fixes for language cache -- addresses bug 2891 2005-04-20 07:29:28 +00:00
skodak
00de82df28 Session test to detect user switching, error counter is displayed in healthcenter - please test, test, test; TODO - move string from setup.php to language file 2005-04-18 20:13:36 +00:00
moodler
7c12949d10 Rationalised get_user_info_from_db() and sundry other small bits into
a single function called: get_complete_user_data()

This is to help shibboleth but will also help when this function
needs to be extended in future.
2005-04-17 12:08:46 +00:00
martinlanghoff
66552670ba Improved performance info reporting and logging. Removed duplicate calls. 2005-04-06 07:36:10 +00:00
martinlanghoff
c2fd9e955a Improved performance info reporting and logging. Needs some work on the configuration front still. 2005-04-06 07:34:05 +00:00
martinlanghoff
51e565d1ad Capture some key stats for performance detail output. 2005-04-02 13:31:38 +00:00
moodler
b8cea9b2de Added some performance monitoring functions into the core 2005-04-01 10:00:18 +00:00
stronk7
18a2b08d74 Make validator works under PHP 5. 2005-03-25 00:00:37 +00:00
moodler
8d62ca684c Bless standardwhite for testing too 2005-03-23 16:49:03 +00:00
martinlanghoff
b350cb9d93 Merged from MOODLE_14_STABLE - Pedantic HTTP correctness; now we return an appropriate 503 HTTP status code when the database is unreachable and assumed overloaded. This is for the benefit of monitoring and load testing scripts. 2005-03-20 21:37:05 +00:00
moodler
86cc3e75a4 Two new variables $CFG->themedir and $CFG->themewww which tell us where the
themes we use are located.

For most sites these will stay in moodle/theme but it's nice for multi-hosting
sites to have the option to specify differently.
2005-03-14 13:23:38 +00:00
moodler
8a922475a0 Thanks, Eloy! I've got it in weblib instead 2005-03-05 04:09:20 +00:00
stronk7
c21f449fcd Not really sure if you want this there, but.... 2005-03-04 19:28:48 +00:00
gustav_delius
1d86c8ea4c I confused stripslashes with addslashes :o) 2005-02-19 18:31:29 +00:00
gustav_delius
75249234fe I replaced the magic_quotes hack with something more elegant because I needed to be able to post a deeper array than the old code would allow. Any objections to this? 2005-02-19 17:52:30 +00:00
moodler
ceff930730 Added a new table for logging ADODB requests and a config variable to
turn it on.  Very useful for debugging performance issues.
2005-02-18 14:12:38 +00:00
martinlanghoff
f93426cf07 Merged from MOODLE_14_STABLE - Added option to respect php.ini session settings, else we reenable garbage collection for sessions. Fixes stale session problems with Debian systems, but still allows package maintainers to override. 2005-02-13 22:54:25 +00:00
moodler
32e2b30209 This more or less completes the PHP side of the 1.5 themes
Added $user->theme and $course->theme choices, controlled by admin
variables on the main config variables page.

By default this is all turned off, since multiple themes can be
a little disorienting.

A hidden feature is session themes ... you can change the theme
on any page by passing theme=xxxx as a parameter.  By default this
requires sesskey (so that people don't change theme on each other),
but this security can be switched off using a hidden variable
$CFG->allowthemechangeonurl = true;   Good for quick tests.
2005-02-10 10:28:27 +00:00
moodler
18b9d66439 Moved theme changing to after SESSION exists 2005-02-01 08:00:58 +00:00
moodler
d74d4f2053 Some changes in the way theme setup is achieved, there is now a function
for it called theme_setup
2005-01-31 05:59:13 +00:00
moodler
1e92ee743b A SESSION->theme can be set (only with sesskey) 2005-01-30 19:28:27 +00:00
moodler
538a22102b Removed some THEME stuff 2005-01-25 17:39:55 +00:00
moodler
db70c04693 Standard theme is the one to use! Everybody switch to it!! :-) 2005-01-25 13:22:18 +00:00
moodler
7bb6d80f33 IMPORTANT NEW FEATURE FOR CSS
print_header now produces a unique CSS class and id for each page,
allowing targeting of styles for any module or page.
2005-01-25 11:05:23 +00:00
martinlanghoff
a10171eb39 Merged from MOODLE_14_STABLE. Issue a warning when overriding $CFG settings. 2005-01-18 22:59:41 +00:00
moodler
0182c65cec Fixed the problem with enrolments not sticking.
Also commented out Smarty stuff for now (for better performance in 1.5)
2005-01-18 18:28:25 +00:00
martinlanghoff
27a0c5f608 Ported from MOODLE_14_STABLE. SC#62 - Prevent database values from overriding $CFG values defined in config.php -- Credits go to Petr Skoda. 2005-01-09 21:54:48 +00:00
moodler
b60f0ee556 Validator ignores sesskeys 2004-12-22 02:56:16 +00:00
mjollnir_
24cc8ec9ba Merged from MOODLE_14_STABLE: Committing skodak's fixes for sc#40 and #42 2004-12-17 01:43:06 +00:00
moodler
f9f4d999fe Merged recent fixes to FULLME in stable 2004-12-12 06:49:26 +00:00
martinlanghoff
bce7197321 Merged from MOODLE_14_STABLE moodle--eduforge--1.3.3--patch-335 Now memory_limit can be overriden by higher config settings from php.ini, commandline, httpd.conf, .htaccess 2004-11-18 02:55:06 +00:00
moodler
53f39b328c Merged prettier error from stable 2004-10-15 08:47:12 +00:00
moodler
42b90599be SESSIONS-IN-DATABASE SUPPORT
Support for a new configuration variable called $CFG->dbsessions
which enables sessions via database.  Based on code from Jason Cole's
team - thanks!
2004-09-30 06:02:39 +00:00
dhawes
674fb525d2 fixed misplaced comments on CFG and USER globals 2004-09-28 02:51:56 +00:00
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