]> git.mjollnir.org Git - moodle.git/commitdiff
Changed default strings to use single-quotes and avoid possible slash problems
authormoodler <moodler>
Mon, 19 May 2003 07:41:12 +0000 (07:41 +0000)
committermoodler <moodler>
Mon, 19 May 2003 07:41:12 +0000 (07:41 +0000)
config-dist.php

index d9b99e4a46f499d86f39acc865ab86daae52e399..29c8565cd129850073db48c548590ad88a471541 100644 (file)
@@ -43,16 +43,16 @@ unset($CFG);  // Ignore this line
 //   postgres7  - the prefix is REQUIRED, regardless of whether the      //\r
 //                database already contains tables.                      //\r
 \r
-$CFG->dbtype    = "mysql";       // mysql or postgres7 (for now)\r
-$CFG->dbhost    = "localhost";   // eg localhost or db.isp.com \r
-$CFG->dbname    = "moodle";      // database name, eg moodle\r
-$CFG->dbuser    = "username";    // your database username\r
-$CFG->dbpass    = "password";    // your database password\r
+$CFG->dbtype    = 'mysql';       // mysql or postgres7 (for now)\r
+$CFG->dbhost    = 'localhost';   // eg localhost or db.isp.com \r
+$CFG->dbname    = 'moodle';      // database name, eg moodle\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
+$CFG->prefix    = 'mdl_';        // Prefix to use for all table names\r
 \r
 \r
 //=========================================================================\r
@@ -63,7 +63,7 @@ $CFG->prefix    = "mdl_";        // Prefix to use for all table names
 // is accessible via multiple URLs then choose the most natural one \r
 // that your students would use.  Do not include a trailing slash.\r
 \r
-$CFG->wwwroot   = "http://example.com/moodle";\r
+$CFG->wwwroot   = 'http://example.com/moodle';\r
 \r
 \r
 //=========================================================================\r
@@ -72,12 +72,12 @@ $CFG->wwwroot   = "http://example.com/moodle";
 // Next, specify the full OS directory path to this same location\r
 // For Windows this might be something like this:\r
 //\r
-//    $CFG->dirroot = "C:\Program Files\Easyphp\www\moodle"\r
+//    $CFG->dirroot = 'C:\Program Files\Easyphp\www\moodle';\r
 //\r
 // NOTE: Make sure all the upper/lower case is EXACTLY the same as it is \r
 // on your computer otherwise you may experience some problems (bug in PHP)\r
 \r
-$CFG->dirroot   = "/web/moodle";\r
+$CFG->dirroot   = '/web/moodle';\r
 \r
 \r
 //=========================================================================\r
@@ -91,9 +91,9 @@ $CFG->dirroot   = "/web/moodle";
 // - On hosting systems you might need to make sure that your "group" has\r
 //   no permissions at all, but that "others" have full permissions.\r
 //\r
-// - On Windows systems you might specify something like "C:\moodledata"\r
+// - On Windows systems you might specify something like 'C:\moodledata'\r
 \r
-$CFG->dataroot  = "/home/moodledata";\r
+$CFG->dataroot  = '/home/moodledata';\r
 \r
 \r
 //=========================================================================\r
@@ -105,6 +105,7 @@ $CFG->dataroot  = "/home/moodledata";
 // The default is usually OK, but you may want to change it to 0750 \r
 // if you are concerned about world-access to the files (you will need\r
 // to make sure the web server process (eg Apache) can access the files.\r
+// NOTE: the prefixed 0 is important, and don't use quotes.\r
 \r
 $CFG->directorypermissions = 0777;\r
 \r
@@ -119,7 +120,7 @@ $CFG->directorypermissions = 0777;
 // renaming the admin directory in your installation, and putting that \r
 // new name here.  eg "moodleadmin".  This will fix admin links in Moodle.\r
 \r
-$CFG->admin = "admin";\r
+$CFG->admin = 'admin';\r
 \r
 \r
 //=========================================================================\r