2009-11-01 13:10:07 +00:00
|
|
|
<?PHP
|
2004-01-30 14:50:03 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
// //
|
|
|
|
// Moodle configuration file //
|
|
|
|
// //
|
|
|
|
// This file should be renamed "config.php" in the top-level directory //
|
|
|
|
// //
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
// //
|
|
|
|
// NOTICE OF COPYRIGHT //
|
|
|
|
// //
|
|
|
|
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
|
2004-03-10 13:21:12 +00:00
|
|
|
// http://moodle.org //
|
2004-01-30 14:50:03 +00:00
|
|
|
// //
|
2007-06-27 07:24:24 +00:00
|
|
|
// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
|
2004-01-30 14:50:03 +00:00
|
|
|
// //
|
|
|
|
// This program is free software; you can redistribute it and/or modify //
|
|
|
|
// it under the terms of the GNU General Public License as published by //
|
2010-05-21 17:48:57 +00:00
|
|
|
// the Free Software Foundation; either version 3 of the License, or //
|
2004-01-30 14:50:03 +00:00
|
|
|
// (at your option) any later version. //
|
|
|
|
// //
|
|
|
|
// This program is distributed in the hope that it will be useful, //
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
|
|
|
// GNU General Public License for more details: //
|
|
|
|
// //
|
|
|
|
// http://www.gnu.org/copyleft/gpl.html //
|
|
|
|
// //
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
unset($CFG); // Ignore this line
|
2010-08-26 15:31:18 +00:00
|
|
|
global $CFG; // This is necessary here for PHPUnit execution
|
2008-08-31 22:23:53 +00:00
|
|
|
$CFG = new stdClass();
|
2004-01-30 14:50:03 +00:00
|
|
|
|
|
|
|
//=========================================================================
|
|
|
|
// 1. DATABASE SETUP
|
|
|
|
//=========================================================================
|
|
|
|
// First, you need to configure the database where all Moodle data //
|
|
|
|
// will be stored. This database must already have been created //
|
|
|
|
// and a username/password created to access it. //
|
|
|
|
|
2010-03-25 11:55:09 +00:00
|
|
|
$CFG->dbtype = 'pgsql'; // 'pgsql', 'mysqli', 'mssql' or 'oci'
|
|
|
|
$CFG->dblibrary = 'native'; // 'native' only at the moment
|
|
|
|
$CFG->dbhost = 'localhost'; // eg 'localhost' or 'db.isp.com' or IP
|
|
|
|
$CFG->dbname = 'moodle'; // database name, eg moodle
|
|
|
|
$CFG->dbuser = 'username'; // your database username
|
|
|
|
$CFG->dbpass = 'password'; // your database password
|
|
|
|
$CFG->prefix = 'mdl_'; // prefix to use for all table names
|
|
|
|
$CFG->dboptions = array(
|
|
|
|
'dbpersist' => false, // should persistent database connections be
|
|
|
|
// used? set to 'false' for the most stable
|
|
|
|
// setting, 'true' can improve performance
|
|
|
|
// sometimes
|
|
|
|
'dbsocket' => false, // should connection via UNIX socket be
|
|
|
|
// used? if you set it to 'true' here,
|
|
|
|
// set dbhost to 'localhost'
|
|
|
|
'dbport' => '', // the TCP port number to use when connecting
|
|
|
|
// to the server. keep empty string for the
|
|
|
|
// default port
|
|
|
|
);
|
2004-03-12 07:34:14 +00:00
|
|
|
|
2004-01-30 14:50:03 +00:00
|
|
|
|
2009-11-17 15:55:13 +00:00
|
|
|
//=========================================================================
|
2010-05-21 17:32:15 +00:00
|
|
|
// 2. SECRET PASSWORD SALT
|
2009-11-17 15:55:13 +00:00
|
|
|
//=========================================================================
|
|
|
|
// User password salt is very important security feature, it is created
|
|
|
|
// automatically in installer, you have to uncomment and modify value
|
|
|
|
// on the next line if you are creating config.php manually.
|
|
|
|
//
|
2009-11-17 16:30:39 +00:00
|
|
|
// $CFG->passwordsaltmain = 'a_very_long_random_string_of_characters#@6&*1';
|
2009-11-17 15:55:13 +00:00
|
|
|
//
|
|
|
|
// After changing the main salt you have to copy old value into one
|
|
|
|
// of the following settings - this allows migration to the new salt
|
|
|
|
// during the next login of each user.
|
|
|
|
//
|
|
|
|
// $CFG->passwordsaltalt1 = '';
|
|
|
|
// $CFG->passwordsaltalt2 = '';
|
|
|
|
// $CFG->passwordsaltalt3 = '';
|
|
|
|
// ....
|
|
|
|
// $CFG->passwordsaltalt19 = '';
|
|
|
|
// $CFG->passwordsaltalt20 = '';
|
|
|
|
|
|
|
|
|
2004-01-30 14:50:03 +00:00
|
|
|
//=========================================================================
|
2010-05-21 17:32:15 +00:00
|
|
|
// 3. WEB SITE LOCATION
|
2004-01-30 14:50:03 +00:00
|
|
|
//=========================================================================
|
|
|
|
// Now you need to tell Moodle where it is located. Specify the full
|
2004-08-21 10:12:09 +00:00
|
|
|
// web address to where moodle has been installed. If your web site
|
|
|
|
// is accessible via multiple URLs then choose the most natural one
|
2004-01-30 14:50:03 +00:00
|
|
|
// that your students would use. Do not include a trailing slash
|
2009-01-05 21:37:20 +00:00
|
|
|
//
|
|
|
|
// If you need both intranet and Internet access please read
|
|
|
|
// http://docs.moodle.org/en/masquerading
|
2004-01-30 14:50:03 +00:00
|
|
|
|
|
|
|
$CFG->wwwroot = 'http://example.com/moodle';
|
|
|
|
|
|
|
|
|
|
|
|
//=========================================================================
|
|
|
|
// 4. DATA FILES LOCATION
|
|
|
|
//=========================================================================
|
|
|
|
// Now you need a place where Moodle can save uploaded files. This
|
2004-08-21 10:12:09 +00:00
|
|
|
// directory should be readable AND WRITEABLE by the web server user
|
|
|
|
// (usually 'nobody' or 'apache'), but it should not be accessible
|
2004-01-30 14:50:03 +00:00
|
|
|
// directly via the web.
|
|
|
|
//
|
|
|
|
// - On hosting systems you might need to make sure that your "group" has
|
|
|
|
// no permissions at all, but that "others" have full permissions.
|
|
|
|
//
|
|
|
|
// - On Windows systems you might specify something like 'c:\moodledata'
|
|
|
|
|
|
|
|
$CFG->dataroot = '/home/example/moodledata';
|
|
|
|
|
|
|
|
|
|
|
|
//=========================================================================
|
|
|
|
// 5. DATA FILES PERMISSIONS
|
|
|
|
//=========================================================================
|
|
|
|
// The following parameter sets the permissions of new directories
|
2004-08-21 10:12:09 +00:00
|
|
|
// created by Moodle within the data directory. The format is in
|
2004-01-30 14:50:03 +00:00
|
|
|
// octal format (as used by the Unix utility chmod, for example).
|
2004-08-21 10:12:09 +00:00
|
|
|
// The default is usually OK, but you may want to change it to 0750
|
2004-01-30 14:50:03 +00:00
|
|
|
// if you are concerned about world-access to the files (you will need
|
|
|
|
// to make sure the web server process (eg Apache) can access the files.
|
|
|
|
// NOTE: the prefixed 0 is important, and don't use quotes.
|
|
|
|
|
2004-12-26 14:45:39 +00:00
|
|
|
$CFG->directorypermissions = 02777;
|
2004-01-30 14:50:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
//=========================================================================
|
|
|
|
// 6. DIRECTORY LOCATION (most people can just ignore this setting)
|
|
|
|
//=========================================================================
|
2004-08-21 10:12:09 +00:00
|
|
|
// A very few webhosts use /admin as a special URL for you to access a
|
|
|
|
// control panel or something. Unfortunately this conflicts with the
|
|
|
|
// standard location for the Moodle admin pages. You can fix this by
|
|
|
|
// renaming the admin directory in your installation, and putting that
|
2004-01-30 14:50:03 +00:00
|
|
|
// new name here. eg "moodleadmin". This will fix admin links in Moodle.
|
|
|
|
|
|
|
|
$CFG->admin = 'admin';
|
|
|
|
|
|
|
|
|
|
|
|
//=========================================================================
|
2004-02-10 05:06:12 +00:00
|
|
|
// 7. OTHER MISCELLANEOUS SETTINGS (ignore these for new installations)
|
2004-02-08 14:27:54 +00:00
|
|
|
//=========================================================================
|
|
|
|
//
|
2004-05-15 07:30:31 +00:00
|
|
|
// These are additional tweaks for which no GUI exists in Moodle yet.
|
|
|
|
//
|
2009-08-17 08:10:13 +00:00
|
|
|
// Starting in PHP 5.3 administrators should specify default timezone
|
|
|
|
// in PHP.ini, you can also specify it here if needed.
|
|
|
|
// See details at: http://php.net/manual/en/function.date-default-timezone-set.php
|
|
|
|
// List of time zones at: http://php.net/manual/en/timezones.php
|
|
|
|
// date_default_timezone_set('Australia/Perth');
|
2004-05-15 07:30:31 +00:00
|
|
|
//
|
2008-06-30 15:01:24 +00:00
|
|
|
// Change the key pair lifetime for Moodle Networking
|
|
|
|
// The default is 28 days. You would only want to change this if the key
|
|
|
|
// was not getting regenerated for any reason. You would probably want
|
|
|
|
// make it much longer. Note that you'll need to delete and manually update
|
|
|
|
// any existing key.
|
|
|
|
// $CFG->mnetkeylifetime = 28;
|
|
|
|
//
|
2009-11-17 05:58:24 +00:00
|
|
|
// Allow user passwords to be included in backup files. Very dangerous
|
|
|
|
// setting as far as it publishes password hashes that can be unencrypted
|
|
|
|
// if the backup file is publicy available. Use it only if you can guarantee
|
|
|
|
// that all your backup files remain only privacy available and are never
|
|
|
|
// shared out from your site/institution!
|
|
|
|
// $CFG->includeuserpasswordsinbackup = true;
|
|
|
|
//
|
2010-01-05 22:18:03 +00:00
|
|
|
// Completely disable user creation when restoring a course, bypassing any
|
|
|
|
// permissions granted via roles and capabilities. Enabling this setting
|
|
|
|
// results in the restore process stopping when a user attempts to restore a
|
|
|
|
// course requiring users to be created.
|
2009-12-30 17:35:36 +00:00
|
|
|
// $CFG->disableusercreationonrestore = true;
|
|
|
|
//
|
2010-04-29 18:30:17 +00:00
|
|
|
// Keep the temporary directories used by backup and restore without being
|
|
|
|
// deleted at the end of the process. Use it if you want to debug / view
|
|
|
|
// all the information stored there after the process has ended. Note that
|
|
|
|
// those directories may be deleted (after some ttl) both by cron and / or
|
|
|
|
// by new backup / restore invocations.
|
|
|
|
// $CFG->keeptempdirectoriesonbackup = true;
|
|
|
|
//
|
2009-12-30 17:35:36 +00:00
|
|
|
// Modify the restore process in order to force the "user checks" to assume
|
2010-01-05 22:18:03 +00:00
|
|
|
// that the backup originated from a different site, so detection of matching
|
|
|
|
// users is performed with different (more "relaxed") rules. Note that this is
|
|
|
|
// only useful if the backup file has been created using Moodle < 1.9.4 and the
|
|
|
|
// site has been rebuilt from scratch using backup files (not the best way btw).
|
|
|
|
// If you obtain user conflicts on restore, rather than enabling this setting
|
|
|
|
// permanently, try restoring the backup on a different site, back it up again
|
|
|
|
// and then restore on the target server.
|
2009-12-30 17:35:36 +00:00
|
|
|
// $CFG->forcedifferentsitecheckingusersonrestore = true;
|
|
|
|
//
|
2006-09-03 15:46:21 +00:00
|
|
|
// Prevent stats processing and hide the GUI
|
|
|
|
// $CFG->disablestatsprocessing = true;
|
|
|
|
//
|
2004-02-18 03:31:45 +00:00
|
|
|
// Setting this to true will enable admins to edit any post at any time
|
|
|
|
// $CFG->admineditalways = true;
|
2004-04-27 13:57:46 +00:00
|
|
|
//
|
2005-03-05 18:13:44 +00:00
|
|
|
// These variables define DEFAULT block variables for new courses
|
|
|
|
// If this one is set it overrides all others and is the only one used.
|
2004-09-03 20:11:20 +00:00
|
|
|
// $CFG->defaultblocks_override = 'participants,activity_modules,search_forums,admin,course_list:news_items,calendar_upcoming,recent_activity';
|
|
|
|
//
|
|
|
|
// These variables define the specific settings for defined course formats.
|
2005-03-05 18:13:44 +00:00
|
|
|
// They override any settings defined in the formats own config file.
|
|
|
|
// $CFG->defaultblocks_site = 'site_main_menu,admin,course_list:course_summary,calendar_month';
|
2004-09-03 20:11:20 +00:00
|
|
|
// $CFG->defaultblocks_social = 'participants,search_forums,calendar_month,calendar_upcoming,social_activities,recent_activity,admin,course_list';
|
|
|
|
// $CFG->defaultblocks_topics = 'participants,activity_modules,search_forums,admin,course_list:news_items,calendar_upcoming,recent_activity';
|
|
|
|
// $CFG->defaultblocks_weeks = 'participants,activity_modules,search_forums,admin,course_list:news_items,calendar_upcoming,recent_activity';
|
|
|
|
//
|
2005-03-05 18:13:44 +00:00
|
|
|
// These blocks are used when no other default setting is found.
|
|
|
|
// $CFG->defaultblocks = 'participants,activity_modules,search_forums,admin,course_list:news_items,calendar_upcoming,recent_activity';
|
2004-09-03 20:11:20 +00:00
|
|
|
//
|
2009-09-11 06:00:32 +00:00
|
|
|
// The blocks in this list will be protected from deletion, and this is primarily
|
|
|
|
// used to protect the navigation and settings blocks which can be very hard to
|
|
|
|
// get back if accidentally delete.
|
2010-04-19 06:30:30 +00:00
|
|
|
// $CFG->undeletableblocktypes = 'navigation,settings';
|
2009-09-11 06:00:32 +00:00
|
|
|
//
|
2009-05-06 09:14:01 +00:00
|
|
|
// You can specify a different class to be created for the $PAGE global, and to
|
|
|
|
// compute which blocks appear on each page. However, I cannot think of any good
|
|
|
|
// reason why you would need to change that. It just felt wrong to hard-code the
|
|
|
|
// the class name. You are stronly advised not to use these to settings unless
|
|
|
|
// you are absolutely sure you know what you are doing.
|
|
|
|
// $CFG->moodlepageclass = 'moodle_page';
|
|
|
|
// $CFG->blockmanagerclass = 'block_manager';
|
2004-05-03 14:57:11 +00:00
|
|
|
//
|
2004-08-22 17:52:21 +00:00
|
|
|
// Seconds for files to remain in caches. Decrease this if you are worried
|
|
|
|
// about students being served outdated versions of uploaded files.
|
2005-05-16 19:03:07 +00:00
|
|
|
// $CFG->filelifetime = 86400;
|
2005-05-13 08:56:31 +00:00
|
|
|
//
|
|
|
|
// This setting will prevent the 'My Courses' page being displayed when a student
|
|
|
|
// logs in. The site front page will always show the same (logged-out) view.
|
2005-05-16 19:03:07 +00:00
|
|
|
// $CFG->disablemycourses = true;
|
2008-08-31 22:23:53 +00:00
|
|
|
//
|
|
|
|
// If this setting is set to true, then Moodle will track the IP of the
|
|
|
|
// current user to make sure it hasn't changed during a session. This
|
|
|
|
// will prevent the possibility of sessions being hijacked via XSS, but it
|
2004-09-27 14:35:37 +00:00
|
|
|
// may break things for users coming using proxies that change all the time,
|
|
|
|
// like AOL.
|
|
|
|
// $CFG->tracksessionip = true;
|
First cut of email to module (or core) processing.
This patch contains:
* email_to_user will set the envelope sender to a special bounce processing address (based on $CFG settings)
* email_to_user will accept (and set) a reply-to header, to be generated by the module calling the function.
* new functions:
* generate_email_processing_address - ALWAYS use this to generate the reply-to header. reply-to header will look like this:
(LIMIT: 64 chars total)
prefix - EXACTLY four chars
encodeded, packed, moduleid (0 for core) (2 chars)
up to 42 chars for the modules to put anything they want it (can contain userid (or, eg for forum, postids to reply to), or anything really. 42 chars is ABSOLUTE LIMIT)
16 char hash (half an md5) of the first part of the address, together with a site "secret"
* moodle_process_email - any non-module email processing goes here (currently used for processing bounces)
* bounce handling:
* config settings for bounce threshold and ratio (and whether to handle bounces at all)
* if too many bounces occur against any given user, user_not_fully_set_up will force an email address change
* associated functions (over_bounce_threshold, set_send_count, set_bounce_count)
* handling emails to noreply address (see below)
* new script - admin/process_email.php
This script needs to be called from your mail program for anything starting with the 4 char prefix described above (and optionally, the noreply address)
It will bounce emails to the noreplyaddress, with a friendly "this is not a real email address" message
It will break down and unencode the email address into moduleid and validate the half md5 hash, and call $modname_process_email (if it exists). Arguments to these functions are: $modargs (any part of the email address that isn't the prefix, modid or the hash) and the contents of the email (read from STDIN).
* associated string changes/additions
* changes in config-dist.php to give clues as to how to set this up.
MODULE WRITERS!
take a look at new functions moodle_process_email and generate_email_processing_address in moodlelib.php for ideas about how to
* encode and unencode the arguments your module needs to do the processing
* how to deal with multiple "actions" for any given module.
Martin Langhoff <martin@catalyst.net.nz> will be writing up some PROPER documentation, containing amongst other things config settings for different mail servers (this was developed against Postfix). Feel free to email me with any feedback on the code or design, penny@catalyst.net.nz. Or post on the developer fourm.
2005-02-08 02:57:14 +00:00
|
|
|
//
|
|
|
|
//
|
|
|
|
// The following lines are for handling email bounces.
|
2005-03-05 18:13:44 +00:00
|
|
|
// $CFG->handlebounces = true;
|
|
|
|
// $CFG->minbounces = 10;
|
|
|
|
// $CFG->bounceratio = .20;
|
First cut of email to module (or core) processing.
This patch contains:
* email_to_user will set the envelope sender to a special bounce processing address (based on $CFG settings)
* email_to_user will accept (and set) a reply-to header, to be generated by the module calling the function.
* new functions:
* generate_email_processing_address - ALWAYS use this to generate the reply-to header. reply-to header will look like this:
(LIMIT: 64 chars total)
prefix - EXACTLY four chars
encodeded, packed, moduleid (0 for core) (2 chars)
up to 42 chars for the modules to put anything they want it (can contain userid (or, eg for forum, postids to reply to), or anything really. 42 chars is ABSOLUTE LIMIT)
16 char hash (half an md5) of the first part of the address, together with a site "secret"
* moodle_process_email - any non-module email processing goes here (currently used for processing bounces)
* bounce handling:
* config settings for bounce threshold and ratio (and whether to handle bounces at all)
* if too many bounces occur against any given user, user_not_fully_set_up will force an email address change
* associated functions (over_bounce_threshold, set_send_count, set_bounce_count)
* handling emails to noreply address (see below)
* new script - admin/process_email.php
This script needs to be called from your mail program for anything starting with the 4 char prefix described above (and optionally, the noreply address)
It will bounce emails to the noreplyaddress, with a friendly "this is not a real email address" message
It will break down and unencode the email address into moduleid and validate the half md5 hash, and call $modname_process_email (if it exists). Arguments to these functions are: $modargs (any part of the email address that isn't the prefix, modid or the hash) and the contents of the email (read from STDIN).
* associated string changes/additions
* changes in config-dist.php to give clues as to how to set this up.
MODULE WRITERS!
take a look at new functions moodle_process_email and generate_email_processing_address in moodlelib.php for ideas about how to
* encode and unencode the arguments your module needs to do the processing
* how to deal with multiple "actions" for any given module.
Martin Langhoff <martin@catalyst.net.nz> will be writing up some PROPER documentation, containing amongst other things config settings for different mail servers (this was developed against Postfix). Feel free to email me with any feedback on the code or design, penny@catalyst.net.nz. Or post on the developer fourm.
2005-02-08 02:57:14 +00:00
|
|
|
// The next lines are needed both for bounce handling and any other email to module processing.
|
|
|
|
// mailprefix must be EXACTLY four characters.
|
2008-08-31 22:23:53 +00:00
|
|
|
// Uncomment and customise this block for Postfix
|
2005-03-05 18:13:44 +00:00
|
|
|
// $CFG->mailprefix = 'mdl+'; // + is the separator for Exim and Postfix.
|
2008-08-31 22:23:53 +00:00
|
|
|
// $CFG->mailprefix = 'mdl-'; // - is the separator for qmail
|
2005-03-05 18:13:44 +00:00
|
|
|
// $CFG->maildomain = 'youremaildomain.com';
|
2005-02-13 22:54:25 +00:00
|
|
|
//
|
2010-07-07 15:44:51 +00:00
|
|
|
// Enable when setting up advanced reverse proxy load balancing configurations,
|
|
|
|
// it may be also necessary to enable this when using port forwarding.
|
2009-01-05 21:37:20 +00:00
|
|
|
// $CFG->reverseproxy = true;
|
|
|
|
//
|
|
|
|
// Enable when using external SSL appliance for performance reasons.
|
|
|
|
// Please note that site may be accessible via https: or https:, but not both!
|
|
|
|
// $CFG->sslproxy = true;
|
|
|
|
//
|
2008-08-31 22:23:53 +00:00
|
|
|
// This setting will cause the userdate() function not to fix %d in
|
2005-03-10 14:10:21 +00:00
|
|
|
// date strings, and just let them show with a zero prefix.
|
|
|
|
// $CFG->nofixday = true;
|
2005-03-20 09:15:53 +00:00
|
|
|
//
|
|
|
|
// This setting will make some graphs (eg user logs) use lines instead of bars
|
|
|
|
// $CFG->preferlinegraphs = true;
|
2005-03-20 17:13:50 +00:00
|
|
|
//
|
2005-07-14 15:35:23 +00:00
|
|
|
// Enabling this will allow custom scripts to replace existing moodle scripts.
|
2006-02-23 07:04:13 +00:00
|
|
|
// For example: if $CFG->customscripts/course/view.php exists then
|
2005-07-14 15:35:23 +00:00
|
|
|
// it will be used instead of $CFG->wwwroot/course/view.php
|
|
|
|
// At present this will only work for files that include config.php and are called
|
|
|
|
// as part of the url (index.php is implied).
|
|
|
|
// Some examples are:
|
|
|
|
// http://my.moodle.site/course/view.php
|
|
|
|
// http://my.moodle.site/index.php
|
|
|
|
// http://my.moodle.site/admin (index.php implied)
|
|
|
|
// Custom scripts should not include config.php
|
|
|
|
// Warning: Replacing standard moodle scripts may pose security risks and/or may not
|
|
|
|
// be compatible with upgrades. Use this option only if you are aware of the risks
|
2008-08-31 22:23:53 +00:00
|
|
|
// involved.
|
2006-02-23 07:04:13 +00:00
|
|
|
// Specify the full directory path to the custom scripts
|
|
|
|
// $CFG->customscripts = '/home/example/customscripts';
|
2005-07-14 15:35:23 +00:00
|
|
|
//
|
2008-08-31 22:23:53 +00:00
|
|
|
// Performance profiling
|
|
|
|
//
|
2005-04-07 00:11:28 +00:00
|
|
|
// If you set Debug to "Yes" in the Configuration->Variables page some
|
|
|
|
// performance profiling data will show up on your footer (in default theme).
|
|
|
|
// With these settings you get more granular control over the capture
|
|
|
|
// and printout of the data
|
|
|
|
//
|
|
|
|
// Capture performance profiling data
|
|
|
|
// define('MDL_PERF' , true);
|
|
|
|
//
|
|
|
|
// Capture additional data from DB
|
|
|
|
// define('MDL_PERFDB' , true);
|
|
|
|
//
|
|
|
|
// Print to log (for passive profiling of production servers)
|
|
|
|
// define('MDL_PERFTOLOG' , true);
|
|
|
|
//
|
|
|
|
// Print to footer (works with the default theme)
|
|
|
|
// define('MDL_PERFTOFOOT', true);
|
|
|
|
//
|
2005-05-10 06:18:30 +00:00
|
|
|
// Force displayed usernames
|
2008-08-31 22:23:53 +00:00
|
|
|
// A little hack to anonymise user names for all students. If you set these
|
2005-05-10 06:18:30 +00:00
|
|
|
// then all non-teachers will always see these for every person.
|
|
|
|
// $CFG->forcefirstname = 'Bruce';
|
|
|
|
// $CFG->forcelastname = 'Simpson';
|
2005-05-11 23:34:46 +00:00
|
|
|
//
|
|
|
|
// The following setting will turn SQL Error logging on. This will output an
|
|
|
|
// entry in apache error log indicating the position of the error and the statement
|
|
|
|
// called. This option will action disregarding error_reporting setting.
|
|
|
|
// $CFG->dblogerror = true;
|
2005-05-17 04:03:48 +00:00
|
|
|
//
|
2007-08-20 10:52:59 +00:00
|
|
|
// The following setting will log every database query to a table called adodb_logsql.
|
|
|
|
// Use this setting on a development server only, the table grows quickly!
|
|
|
|
// $CFG->logsql = true;
|
|
|
|
//
|
2005-05-17 04:03:48 +00:00
|
|
|
// The following setting will turn on username logging into Apache log. For full details regarding setting
|
|
|
|
// up of this function please refer to the install section of the document.
|
|
|
|
// $CFG->apacheloguser = 0; // Turn this feature off. Default value.
|
|
|
|
// $CFG->apacheloguser = 1; // Log user id.
|
|
|
|
// $CFG->apacheloguser = 2; // Log full name in cleaned format. ie, Darth Vader will be displayed as darth_vader.
|
2008-08-31 22:23:53 +00:00
|
|
|
// $CFG->apacheloguser = 3; // Log username.
|
2005-05-17 04:13:29 +00:00
|
|
|
// To get the values logged in Apache's log, add to your httpd.conf
|
|
|
|
// the following statements. In the General part put:
|
2005-06-20 09:15:30 +00:00
|
|
|
// LogFormat "%h %l %{MOODLEUSER}n %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"" moodleformat
|
2005-05-17 04:13:29 +00:00
|
|
|
// And in the part specific to your Moodle install / virtualhost:
|
|
|
|
// CustomLog "/your/path/to/log" moodleformat
|
|
|
|
// CAUTION: Use of this option will expose usernames in the Apache log,
|
|
|
|
// If you are going to publish your log, or the output of your web stats analyzer
|
|
|
|
// this will weaken the security of your website.
|
2008-08-31 22:23:53 +00:00
|
|
|
//
|
|
|
|
// Email database connection errors to someone. If Moodle cannot connect to the
|
2006-03-01 09:06:57 +00:00
|
|
|
// database, then email this address with a notice.
|
|
|
|
//
|
2006-03-01 09:12:13 +00:00
|
|
|
// $CFG->emailconnectionerrorsto = 'your@emailaddress.com';
|
2008-08-31 22:23:53 +00:00
|
|
|
//
|
2007-05-03 07:39:27 +00:00
|
|
|
// Set the priority of themes from highest to lowest. This is useful (for
|
|
|
|
// example) in sites where the user theme should override all other theme
|
|
|
|
// settings for accessibility reasons. You can also disable types of themes
|
2009-07-01 05:54:26 +00:00
|
|
|
// (other than site) by removing them from the array. The default setting is:
|
|
|
|
// $CFG->themeorder = array('course', 'category', 'session', 'user', 'site');
|
2007-05-03 07:39:27 +00:00
|
|
|
// NOTE: course, category, session, user themes still require the
|
|
|
|
// respective settings to be enabled
|
|
|
|
//
|
2009-12-23 18:52:42 +00:00
|
|
|
// It is possible to add extra themes directory stored outside of $CFG->dirroot.
|
|
|
|
// This local directory does not have to be accessible from internet.
|
|
|
|
//
|
|
|
|
// $CFG->themedir = '/location/of/extra/themes';
|
|
|
|
//
|
2010-09-17 13:41:59 +00:00
|
|
|
// Site default language can be set via standard administration interface. If you
|
|
|
|
// want to have initial error messages for eventual database connection problems
|
|
|
|
// localized too, you have to set your language code here.
|
|
|
|
//
|
|
|
|
// $CFG->lang = 'yourlangcode'; // for example 'cs'
|
|
|
|
//
|
2009-01-10 16:06:53 +00:00
|
|
|
//=========================================================================
|
|
|
|
// 8. SETTINGS FOR DEVELOPMENT SERVERS - not intended for production use!!!
|
|
|
|
//=========================================================================
|
2008-02-25 14:30:45 +00:00
|
|
|
//
|
2010-03-25 12:05:55 +00:00
|
|
|
// Force a debugging mode regardless the settings in the site administration
|
|
|
|
// @error_reporting(1023); // NOT FOR PRODUCTION SERVERS!
|
|
|
|
// @ini_set('display_errors', '1'); // NOT FOR PRODUCTION SERVERS!
|
|
|
|
// $CFG->debug = 38911; // DEBUG_DEVELOPER // NOT FOR PRODUCTION SERVERS!
|
|
|
|
// $CFG->debugdisplay = true; // NOT FOR PRODUCTION SERVERS!
|
|
|
|
//
|
2010-11-11 05:27:34 +00:00
|
|
|
// You can specify a comma separated list of user ids that that always see
|
|
|
|
// debug messages, this overrides the debug flag in $CFG->debug and $CFG->debugdisplay
|
|
|
|
// for these users only.
|
|
|
|
// $CFG->debugusers = '2';
|
|
|
|
//
|
2010-03-25 12:05:55 +00:00
|
|
|
// Prevent theme caching
|
|
|
|
// $CFG->themerev = -1; // NOT FOR PRODUCTION SERVERS!
|
|
|
|
//
|
2010-05-16 19:58:47 +00:00
|
|
|
// Prevent core_string_manager on-disk cache
|
2010-05-18 06:07:05 +00:00
|
|
|
// $CFG->langstringcache = false; // NOT FOR PRODUCTION SERVERS!
|
2010-05-16 19:58:47 +00:00
|
|
|
//
|
2009-01-12 16:52:53 +00:00
|
|
|
// When working with production data on test servers, no emails should ever be send to real users
|
2010-03-25 12:05:55 +00:00
|
|
|
// $CFG->noemailever = true; // NOT FOR PRODUCTION SERVERS!
|
2010-03-25 01:29:02 +00:00
|
|
|
//
|
|
|
|
// Divert all outgoing emails to this address to test and debug emailing features
|
2010-03-25 12:05:55 +00:00
|
|
|
// $CFG->divertallemailsto = 'root@localhost.local'; // NOT FOR PRODUCTION SERVERS!
|
2009-01-12 16:52:53 +00:00
|
|
|
//
|
2009-01-10 16:06:53 +00:00
|
|
|
// Specify prefix for fake unit test tables. If not specified only tests
|
2009-01-12 16:52:53 +00:00
|
|
|
// that do not need fake tables will be executed.
|
2010-03-25 12:05:55 +00:00
|
|
|
// $CFG->unittestprefix = 'tst_'; // NOT FOR PRODUCTION SERVERS!
|
2009-01-10 16:06:53 +00:00
|
|
|
//
|
|
|
|
// special magic evil developer only wanting to edit the xmldb files manually
|
|
|
|
// AND don't use the XMLDBEditor nor the prev/next stuff at all (Mahara and others)
|
|
|
|
// Uncomment these if you're lazy like Penny
|
2010-03-25 12:05:55 +00:00
|
|
|
// $CFG->xmldbdisablecommentchecking = true; // NOT FOR PRODUCTION SERVERS!
|
|
|
|
// $CFG->xmldbdisablenextprevchecking = true; // NOT FOR PRODUCTION SERVERS!
|
2009-01-10 16:06:53 +00:00
|
|
|
//
|
2009-01-12 16:52:53 +00:00
|
|
|
// Special magic - evil developer only wanting to edit xmldb files manually
|
2010-05-21 17:36:48 +00:00
|
|
|
// AND allowing the XMLDBEditor to reconstruct the prev/next elements every
|
2009-01-10 16:06:53 +00:00
|
|
|
// time one file is loaded and saved (Moodle).
|
|
|
|
// Uncomment this if you're lazy like Petr
|
2010-03-25 12:05:55 +00:00
|
|
|
// $CFG->xmldbreconstructprevnext = true; // NOT FOR PRODUCTION SERVERS!
|
2009-01-12 16:52:53 +00:00
|
|
|
//
|
|
|
|
// Since 2.0 sql queries are not shown during upgrade by default.
|
|
|
|
// Please note that this setting may produce very long upgrade page on large sites.
|
2010-03-25 12:05:55 +00:00
|
|
|
// $CFG->upgradeshowsql = true; // NOT FOR PRODUCTION SERVERS!
|
2010-05-19 13:30:13 +00:00
|
|
|
//
|
2010-11-15 08:05:02 +00:00
|
|
|
// Add SQL queries to the output of cron, just before their execution
|
|
|
|
// $CFG->showcronsql = true;
|
|
|
|
//
|
|
|
|
// Force developer level debug and add debug info to the output of cron
|
|
|
|
// $CFG->showcrondebugging = true;
|
|
|
|
//
|
2010-05-19 13:30:13 +00:00
|
|
|
//=========================================================================
|
|
|
|
// 9. FORCED SETTINGS
|
|
|
|
//=========================================================================
|
|
|
|
// It is possible to specify normal admin settings here, the point is that
|
|
|
|
// they can not be changed through the standard admin settings pages any more.
|
|
|
|
//
|
|
|
|
// Core settings are specified directly via assignment to $CFG variable.
|
|
|
|
// Example:
|
|
|
|
// $CFG->somecoresetting = 'value';
|
|
|
|
//
|
|
|
|
// Plugin settings have to be put into a special array.
|
|
|
|
// Example:
|
|
|
|
// $CFG->forced_plugin_settings = array('pluginname' => array('settingname' => 'value', 'secondsetting' => 'othervalue'),
|
|
|
|
// 'otherplugin' => array('mysetting' => 'myvalue', 'thesetting' => 'thevalue'));
|
2009-01-12 16:52:53 +00:00
|
|
|
|
2009-01-10 16:06:53 +00:00
|
|
|
|
2004-01-30 14:50:03 +00:00
|
|
|
//=========================================================================
|
|
|
|
// ALL DONE! To continue installation, visit your main page with a browser
|
|
|
|
//=========================================================================
|
2005-07-04 17:03:58 +00:00
|
|
|
|
2010-05-26 16:06:17 +00:00
|
|
|
require_once(dirname(__FILE__) . '/lib/setup.php'); // Do not edit
|
2010-05-21 17:32:15 +00:00
|
|
|
|
2009-03-28 15:15:22 +00:00
|
|
|
// There is no php closing tag in this file,
|
|
|
|
// it is intentional because it prevents trailing whitespace problems!
|