// //\r
///////////////////////////////////////////////////////////////////////////\r
\r
+unset($CFG); // Ignore this line\r
\r
//=========================================================================\r
// 1. DATABASE SETUP\r
$CFG->dbuser = "username"; // your database username\r
$CFG->dbpass = "password"; // your database password\r
\r
+$CFG->dbpersist = true; // Use persistent database connection? \r
+ // (should be 'true' for 99% of sites)\r
+\r
$CFG->prefix = "mdl_"; // Prefix to use for all table names\r
\r
\r
/// Eventually I'll go through and upgrade all the code to make this unnecessary
if (isset($_REQUEST)) {
+ if (isset($_REQUEST['CFG'])) {
+ unset($_REQUEST['CFG']); // We don't want to overwrite $CFG!
+ }
extract($_REQUEST);
}
if (isset($_SERVER)) {