skodak
6ec7ca0f07
fixed handling of selected language in installer; fixed selection of session language
2006-09-11 20:41:49 +00:00
skodak
aa893d6b76
fixed several bogus errors and warnings during installation and upgrades, forced logout when upgrading from 1.6
2006-09-10 21:10:48 +00:00
moodler
c4d0753b25
Moving deprecated functions to deprecatedlib.php from moodlelib.php and
...
some cleanups around the place.
Many of the functions in deprecatedlib.php have been rewritten to work with
the new roles and capabilities so that they can still work as well as possible.
2006-09-03 08:10:10 +00:00
skodak
35a518c5de
fixed admin defaults, some warnings during install and added trmporary hack to make $CFG->notloggedinroleid work
2006-09-02 10:03:30 +00:00
skodak
647a256616
db sessions are now using the newer session handler adodb-session2.php
2006-08-29 22:45:54 +00:00
gustav_delius
e57d9d69f7
Small correction in the documentation for the $CFG global
2006-08-28 09:00:38 +00:00
skodak
a2b0c57b0a
debug off level is now 5 instead of 7 to prevent E_WARNING on production sites SC#294; merged from MOODLE_16_STABLE
2006-08-22 22:25:30 +00:00
stronk7
73bb7f8db0
Setting some ADOdb variables properly and calling to the new
...
configure_dbconnection() function to set DB encoding and other
preliminar settings.
2006-08-20 18:22:48 +00:00
stronk7
7e13be0887
Splitting datalib.php in three libraries:
...
- ddllib.php: Where all the DDL (install/upgrade) functions will be.
- dmllib.php: Where all the DML (select...) functions will be.
- datalib.php: Legacy lib. Its contents should go to other libraries soon.
For more info see: http://docs.moodle.org/en/XMLDB_Roadmap (point 1)
2006-08-18 22:56:08 +00:00
skodak
284ac70210
$CFG->debug=0 from config.php is not overriden by setup.php anymore SC#293; merged from MOODLE_16_STABLE
2006-08-14 20:57:18 +00:00
toyomoyo
0c23b59c9b
merfed fix for 6178
2006-08-01 05:12:13 +00:00
skodak
be933850a7
Bug #6176 - locale setting on config variables page not functioning correctly; merged from MOODLE_16_STABLE
2006-07-30 10:39:21 +00:00
skodak
9bbb40d631
healthcenter fixes - new extra whitespace detection, fixed automatic slasharguments detection; merged from MOODLE_16_STABLE
2006-07-05 07:44:20 +00:00
skodak
508b76d94f
fixed warning from clone($SITE) during site setup; merged from MOODLE_16_STABLE
2006-05-29 20:33:12 +00:00
moodler
45fc1f759e
Make $COURSE a full object for later use
2006-05-29 07:31:22 +00:00
stronk7
6ed15ea50a
Now get_config() is executed after "set names", so textual data retrieved
...
from the config table has the proper encoding. Bug 5043.
(http://moodle.org/bugs/bug.php?op=show&bugid=5043 )
2006-04-07 23:57:38 +00:00
stronk7
820743c5b1
Moving $CFG->ostype and $CFG->os setting, because
...
report_session_error() was being executed before setting
such variables and moodle_setlocale() need them.
(http://moodle.org/mod/forum/discuss.php?d=43466 )
2006-04-07 22:58:07 +00:00
stronk7
391f527040
Hehe, setup itself was using register_globals hack! ;-)
...
Now the lang menu is working again.
Note: I've used the PARAM_SAFEDIR flag because it's the
only one supporting alpha+digits+underscore. Its name
doesn't seem to be perfect for this. Perhaps we should
create some alias?
2006-04-05 23:29:46 +00:00
moodler
cb342045ec
The globals hack is history!
2006-04-05 02:44:33 +00:00
stronk7
475e9de86f
SITE and SITEID were calculated *before* 'set names' so they weren't
...
fetched properly from DB. Moving such block of code from datalib.php
to setup.php to execute it *after* 'set names'. Credit goes to Skodak B-)
2006-03-29 23:38:46 +00:00
stronk7
7104d80dbc
Now setup.php detects is CFG->unicode is not set and examines
...
DB to detect such value dinamically. Useful for installations
not using the standard installer but manually edited config.php
files.
Little TODO: modify a bit the initial config tables insets to
insert this value, avoiding to call it for each request. Coming
soon (although not mandatory for 1.6beta). Tested against both
MySQL and PostgreSQL with unicode and non-unicode DBs.
2006-03-27 11:24:14 +00:00
moodler
a33c4e5a84
Added support for Yahoo and MSN Search
2006-03-25 07:09:40 +00:00
stronk7
b8770bc0a5
Two new $CFG runtime variables created $CFG->ostype (WINDOWS, UNIX) and
...
$CFG->os (= PHP_OS) to handle it centrally. Also, although not critical,
it should be recommended to replace all the current uses of PHP_OS to the
new variables. See bug 4968.
(http://moodle.org/bugs/bug.php?op=show&bugid=4968 )
2006-03-23 17:54:33 +00:00
skodak
4f01826a27
removed $SESSION->encoding now replaced by current_charset() and $CFG->unicodedb; 3rd party contribs must be fixed to be utf-8 and 1.6dev compatible anyway;
...
going to add a notice to wiki at http://docs.moodle.org/en/UTF-8_scripts
2006-03-13 22:26:06 +00:00
martinlanghoff
ed8365d9c2
[multienrol]Set default enrol_plugins_enabled if the variable is not set
2006-03-09 03:58:08 +00:00
martinlanghoff
a51e2a7f3b
[multienrol]Renamed "internal" enrolment plugin to "manual"
2006-03-09 03:19:10 +00:00
moodler
880a6f6b7a
Added a new config variable that will mail db connection errors to someone (eg admin)
2006-03-01 09:06:57 +00:00
stronk7
2c76ad371b
This was causing some disruption in tests because "SET CHARSET" changes
...
conection charset to default DB charset and not to the specified 'utf8'.
2006-01-13 14:26:53 +00:00
moodler
d3f9f1f85d
Moving some functions to setuplib.php so they are first
2006-01-05 07:08:10 +00:00
moodler
6aaa17c7cc
Merging language-pack-related updates from Eloy's MOODLE_16_UTF8 branch.
...
Do not use that branch any more!!
2006-01-04 08:23:42 +00:00
skodak
16303ee905
fixed session fixation prevention that was broken after cookieless patch SC#205
2005-12-28 19:05:46 +00:00
dhawes
735b85670a
correct malformed phpdoc function comments, rearranged phpdoc comments associated with wrong globals, and removed some tab characters
2005-12-13 02:21:02 +00:00
toyomoyo
fd78420b78
patch for cookieless sessions
2005-12-05 02:24:45 +00:00
skodak
578dcc4019
add GLOBALS overwrite protection and improved magic_quotes_gpc hack SC#191, SC#184, SC#92; merged together with Jon's last patch from MOODLE_15_STABLE
...
also removed the broken unregister_globals() function
2005-11-14 22:53:44 +00:00
martinlanghoff
a670108e0f
Merged from MOODLE_15_STABLE - If wwwroot is unset, log something before dying
2005-10-18 03:31:13 +00:00
mjollnir_
2b287cacba
Merged from MOODLE_15_STABLE : Much better namespace collision fix to apacheloguser thing
2005-09-29 23:40:14 +00:00
mjollnir_
72194b0aa3
Merged from MOODLE_15_STABLE: Fixing up the log apache user patch from the otherday - problem with variable scope
2005-09-29 21:54:03 +00:00
mjollnir_
96e19e7b67
Merged from MOODLE_15_STABLE: Logging apache user now takes into account loginas
2005-09-27 05:25:23 +00:00
skodak
1c6932d825
new session timeout handling + gecko fix in moodlelib.php - merged from MOODLE_15_STABLE
2005-09-23 18:38:50 +00:00
skodak
4dfa092564
new handling of session timeouts - part 1; merged from MOODLE_15_STABLE
2005-09-09 15:14:48 +00:00
skodak
9259cb73bc
reverting previous patch - see http://moodle.org/mod/forum/discuss.php?d=26970
2005-09-09 12:07:13 +00:00
patrickslee
dd875f1aa2
Finally the *correct* fix for the looping problem. Thanks to Penny (Merged from MOODLE_15_STABLE)
2005-09-07 04:23:37 +00:00
ikawhero
2b0b32d8fe
Return control to original script after including a custom script. Allows
...
more flexibility to add code to a page. If the original is to be completely
replaced, the custom script must explicitly exit.
Credit to Eloy.
2005-07-15 15:36:40 +00:00
stronk7
9d0dd812ac
HTTPSPAGEREQUIRED and CFG->httpswwwroot added to
...
support 100% SSL pages.
Merged from MOODLE_15_STABLE
2005-07-14 20:11:29 +00:00
moodler
18259d4fd3
Adding the capability to replace existing scripts with customised versions.
...
See config-dist.php for more info.
Will add an admin interface for this later.
Shane.
2005-07-14 15:35:23 +00:00
moodler
33674080d6
Merged altavista from stable
2005-07-14 04:18:59 +00:00
skodak
53a6c4cfd8
compatibility hack for Moodle Cron, cookies not deleted, but set to "deleted"; merged from MOODLE_15_STABLE
2005-07-06 08:43:19 +00:00
stronk7
5982740d30
Now $CFG->allowobjectembed is working properly. Admins
...
will ignore this setting. Bug 3608.
(http://moodle.org/bugs/bug.php?op=show&bugid=3608 )
Merged from MOODLE_15_STABLE
2005-06-25 15:42:44 +00:00
defacer
34137668b5
Adding a little more checking to the session switching trap code.
...
I 've come across a problem where:
1. You have an "old" (say 1.3.5?) Moodle installation.
2. You are logged in as admin.
3. You suddenly switch to using a 1.5+ codebase with
the SAME database, WITHOUT LOGGING OUT FIRST.
In this situation, I was presented with a deadlock. I could not do
anything because "my session had expired", and I could not even
log OUT to clear my session. In fact it was just reloading the
"session expired page" all the time.
If it weren't for debug = On which causes a notice in these
circumstances, it would be fracking difficult to understand what
was going on.
With this small addition, you can at least visit your login page
and log in anew, so problem fixed.
I believe this was talked about in the forums lately? Not sure.
(Also merging Martin's theme standard -> standardwhite change)
2005-06-13 02:56:37 +00:00
thepurpleblob
373da1d463
Added $CFG->disableglobalshack option for testing 'register_globals' free code
...
Also kills require_variable() and optional_variable() if true
(effectively kills Moodle dead - if true - at the moment!)
2005-06-10 08:55:26 +00:00