} /// Define admin directory if (!isset($CFG->admin)) { // Just in case it isn't defined in config.php $CFG->admin = 'admin'; // This is relative to the wwwroot and dirroot } /// Increase memory limits if possible raise_memory_limit('96M'); // We should never NEED this much but just in case... /// Load up standard libraries require_once $CFG->dirroot . '/lib/cc5983/import_all.php'; global $Out; $Out = new Out(); $Out->setGlobalDisplay(true); $Out->setDisplay(true); global $Out; //$Out->append('1', 0, true); require_once $CFG->libdir . '/textlib.class.php'; // Functions to handle multibyte strings require_once $CFG->libdir . '/weblib.php'; // Functions for producing HTML require_once $CFG->libdir . '/dmllib.php'; // Functions to handle DB data (DML) require_once $CFG->libdir . '/datalib.php'; // Legacy lib with a big-mix of functions. require_once $CFG->libdir . '/accesslib.php'; // Access control functions require_once $CFG->libdir . '/deprecatedlib.php'; // Deprecated functions included for backward compatibility require_once $CFG->libdir . '/moodlelib.php';