But in index.php there is a reference to $CFG->forcelogin (line 13) which isn't defined in config.php, couse/lib.php, mod/resource/lib.php or mod/forum/lib.php (all of which are referenced by index.php).
I reckon (ha!) that $CFG must have a skeleton somewhere (called 'config' for example) and then have:
<?php $CFG = new config; ?> or something similar.
If someone could point me in the right direction / correct me i'd be most grateful'
Thanks.