| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
$config = <<< END |
|---|
| 4 |
<?php |
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
// System constants: set values as necessary |
|---|
| 8 |
// Supply your values within the second set of speech marks in the pair |
|---|
| 9 |
// i.e., define("system constant name", "your value"); |
|---|
| 10 |
|
|---|
| 11 |
// Name of the site (eg Elgg, Apcala, University of Bogton's Social Network, etc) |
|---|
| 12 |
|
|---|
| 13 |
\$CFG->sitename = '$PARSEDCFG->sitename'; |
|---|
| 14 |
|
|---|
| 15 |
// A tagline for your site (eg 'Social network for Bogton') |
|---|
| 16 |
|
|---|
| 17 |
\$CFG->tagline = '$PARSEDCFG->tagline'; |
|---|
| 18 |
|
|---|
| 19 |
// External URL to the site (eg http://elgg.bogton.edu/) |
|---|
| 20 |
// NB: **MUST** have a final slash at the end |
|---|
| 21 |
|
|---|
| 22 |
\$CFG->wwwroot = '$PARSEDCFG->wwwroot'; |
|---|
| 23 |
|
|---|
| 24 |
// Physical path to the files (eg /home/elggserver/httpdocs/) |
|---|
| 25 |
// NB: **MUST** have a final slash at the end |
|---|
| 26 |
|
|---|
| 27 |
\$CFG->dirroot = '$PARSEDCFG->dirroot'; |
|---|
| 28 |
|
|---|
| 29 |
// Email address of the system (eg elgg-admin@bogton.edu) |
|---|
| 30 |
|
|---|
| 31 |
\$CFG->sysadminemail = '$PARSEDCFG->sysadminemail'; |
|---|
| 32 |
|
|---|
| 33 |
// Account 1, with username news, is initially administrator. This |
|---|
| 34 |
// will be its initial password - UPON INSTALLATION, YOU SHOULD LOG |
|---|
| 35 |
// IN AS NEWS AND CHANGE THE PASSWORD IMMEDIATELY. |
|---|
| 36 |
|
|---|
| 37 |
\$CFG->newsinitialpassword = '$PARSEDCFG->newsinitialpassword'; |
|---|
| 38 |
|
|---|
| 39 |
// Country code to set language to if you have gettext installed |
|---|
| 40 |
// To include new languages, save their compiled .mo gettext |
|---|
| 41 |
// file into languages/country code/LC_MESSAGES/ |
|---|
| 42 |
// (the file within this folder must be called elgg.mo) |
|---|
| 43 |
// See https://launchpad.net/elgg/trunk/+pots/elgg for more |
|---|
| 44 |
// translations. |
|---|
| 45 |
|
|---|
| 46 |
\$CFG->defaultlocale = '$PARSEDCFG->defaultlocale'; |
|---|
| 47 |
|
|---|
| 48 |
// The following should be set to false if you don't want the |
|---|
| 49 |
// general public to be able to register accounts with your |
|---|
| 50 |
// Elgg site. |
|---|
| 51 |
|
|---|
| 52 |
\$CFG->publicreg = $PARSEDCFG->publicreg; |
|---|
| 53 |
|
|---|
| 54 |
// The following should be set to false if you don't want users |
|---|
| 55 |
// to be able to invite new users into the system. |
|---|
| 56 |
|
|---|
| 57 |
\$CFG->publicinvite = $PARSEDCFG->publicinvite; |
|---|
| 58 |
|
|---|
| 59 |
// Set this to a positive number to cap the number of users in your |
|---|
| 60 |
// installation, for example if you're testing and only have a certain number |
|---|
| 61 |
// of resources available to you. |
|---|
| 62 |
|
|---|
| 63 |
\$CFG->maxusers = $PARSEDCFG->maxusers; |
|---|
| 64 |
|
|---|
| 65 |
// Set this to 1 to enable a walled garden - i.e., if you're not logged in, |
|---|
| 66 |
// all you can see is the login page. |
|---|
| 67 |
|
|---|
| 68 |
\$CFG->walledgarden = $PARSEDCFG->walledgarden; |
|---|
| 69 |
|
|---|
| 70 |
// If the following string is non-blank, it must be present within |
|---|
| 71 |
// the domains of email addresses of people signing up. For example, |
|---|
| 72 |
// if you set it to yourinstitution.edu, a user with the email address |
|---|
| 73 |
// foo@bar.yourinstitution.edu will be able to sign up. |
|---|
| 74 |
// This rule will hold true for both public registrations and invitations |
|---|
| 75 |
// from within the system (if either are enabled). |
|---|
| 76 |
|
|---|
| 77 |
\$CFG->emailfilter = "$PARSEDCFG->emailfilter"; |
|---|
| 78 |
|
|---|
| 79 |
// The following sets the default access level within the Elgg |
|---|
| 80 |
// site. Possible values include: |
|---|
| 81 |
// PUBLIC :: available to everyone |
|---|
| 82 |
// LOGGED_IN :: available to logged in users only |
|---|
| 83 |
// PRIVATE :: available to the user only |
|---|
| 84 |
|
|---|
| 85 |
\$CFG->default_access = "$PARSEDCFG->default_access"; |
|---|
| 86 |
|
|---|
| 87 |
// Set the following to true to force users to log in before they can post comments, overriding per-user option |
|---|
| 88 |
// Handy sledgehammer-to-crack-a-nut to protect against comment spam. |
|---|
| 89 |
\$CFG->disable_publiccomments = $PARSEDCFG->disable_publiccomments; |
|---|
| 90 |
|
|---|
| 91 |
// dataroot. this is where uploaded files will go (and sessions for now) |
|---|
| 92 |
// This should be OUTSIDE your wwwroot. |
|---|
| 93 |
// NB: **MUST** have a final slash at the end |
|---|
| 94 |
|
|---|
| 95 |
\$CFG->dataroot = '$PARSEDCFG->dataroot'; |
|---|
| 96 |
|
|---|
| 97 |
// You may change these values to something else but you must ensure that |
|---|
| 98 |
// the user the web server process runs as is able to read and write under |
|---|
| 99 |
// these permissions. |
|---|
| 100 |
//\$CFG->directorypermissions = 0777; |
|---|
| 101 |
//\$CFG->filepermissions = 0666; |
|---|
| 102 |
|
|---|
| 103 |
\$CFG->dbtype = '$PARSEDCFG->dbtype'; // for now |
|---|
| 104 |
\$CFG->dbhost = '$PARSEDCFG->dbhost'; |
|---|
| 105 |
\$CFG->dbuser = '$PARSEDCFG->dbuser'; |
|---|
| 106 |
\$CFG->dbpass = '$PARSEDCFG->dbpass'; |
|---|
| 107 |
\$CFG->dbname = '$PARSEDCFG->dbname'; |
|---|
| 108 |
\$CFG->dbpersist = $PARSEDCFG->dbpersist; |
|---|
| 109 |
|
|---|
| 110 |
// The following will assume all your database tables have this value at the start |
|---|
| 111 |
// of their names. If you're upgrading from an earlier version of Elgg, you might |
|---|
| 112 |
// need to set this to \$CFG->prefix = ''; |
|---|
| 113 |
|
|---|
| 114 |
\$CFG->prefix = '$PARSEDCFG->prefix'; |
|---|
| 115 |
|
|---|
| 116 |
// performance and debugging // |
|---|
| 117 |
// Uncomment this to get sql errors sent to the webserver error log. |
|---|
| 118 |
// \$CFG->dblogerror = true; |
|---|
| 119 |
// put this to 2047 to get adodb error handling. |
|---|
| 120 |
|
|---|
| 121 |
\$CFG->debug = $PARSEDCFG->debug; |
|---|
| 122 |
|
|---|
| 123 |
// Number of days to keep incoming RSS feed entries for before deleting them. |
|---|
| 124 |
// A value of 0 disables automatic deletion. |
|---|
| 125 |
|
|---|
| 126 |
\$CFG->rsspostsmaxage = $PARSEDCFG->rsspostsmaxage; |
|---|
| 127 |
|
|---|
| 128 |
// Set this to 'admin' to only allow administrators to create new communities. |
|---|
| 129 |
// You can set this to other user flags if you're told to by a plugin. |
|---|
| 130 |
|
|---|
| 131 |
\$CFG->community_create_flag = "$PARSEDCFG->community_create_flag"; |
|---|
| 132 |
|
|---|
| 133 |
// Username and password for the admin panel at /_elggadmin/ |
|---|
| 134 |
// To use the admin panel, these can't be left blank! |
|---|
| 135 |
|
|---|
| 136 |
\$CFG->adminuser = "$PARSEDCFG->adminuser"; |
|---|
| 137 |
\$CFG->adminpassword = "$PARSEDCFG->adminpassword"; |
|---|
| 138 |
|
|---|
| 139 |
// |
|---|
| 140 |
// Capture performance profiling data |
|---|
| 141 |
// define('ELGG_PERF' , true); |
|---|
| 142 |
// |
|---|
| 143 |
// Capture additional data from DB |
|---|
| 144 |
// define('ELGG_PERFDB' , true); |
|---|
| 145 |
// |
|---|
| 146 |
// Print to log (for passive profiling of production servers) |
|---|
| 147 |
// define('ELGG_PERFTOLOG' , true); |
|---|
| 148 |
// |
|---|
| 149 |
// Print to footer (works with the default theme) |
|---|
| 150 |
// define('ELGG_PERFTOFOOT', true); |
|---|
| 151 |
// |
|---|
| 152 |
// EMAIL HANDLING |
|---|
| 153 |
// \$CFG->smtphosts= ''; // empty (sendmail), qmail (qmail) or hosts |
|---|
| 154 |
// \$CFG->smtpuser = ''; // if using smtphosts, optional smtpuser & smtppass |
|---|
| 155 |
// \$CFG->smtppass = ''; |
|---|
| 156 |
// \$CFG->noreplyaddress = ''; // this will default to noreply@hostname (from wwwroot) |
|---|
| 157 |
|
|---|
| 158 |
// CLAMAV HANDLING |
|---|
| 159 |
//\$CFG->runclamonupload = true; |
|---|
| 160 |
//\$CFG->quarantinedir = '/somewhere/the/webserver/can/write/to'; |
|---|
| 161 |
//\$CFG->clamfailureonupload = 'actlikevirus'; // OR 'donothing'; |
|---|
| 162 |
//\$CFG->pathtoclam = '/usr/bin/clamscan'; // OR '/usr/bin/clamdscan'; |
|---|
| 163 |
|
|---|
| 164 |
// TEMPLATES HANDLING |
|---|
| 165 |
\$CFG->disable_usertemplates = $PARSEDCFG->disable_usertemplates; // users can only choose from available templates |
|---|
| 166 |
\$CFG->disable_templatechanging = $PARSEDCFG->disable_templatechanging; // users can't change their template at all |
|---|
| 167 |
//Templates root defaults to /mod/template/templates; if you change this, you will need |
|---|
| 168 |
//to move or copy /mod/template/templates/Default_Template/ to the new location |
|---|
| 169 |
\$CFG->templatesroot = '$PARSEDCFG->templatesroot'; // use on-disk templates instead of DB templates |
|---|
| 170 |
|
|---|
| 171 |
// PROFILE LOCATION |
|---|
| 172 |
\$CFG->profilelocation = '$PARSEDCFG->templatelocation'; |
|---|
| 173 |
|
|---|
| 174 |
//Template file handing is not currently recommended. |
|---|
| 175 |
//\$CFG->templatestore = 'db'; // 'db' (default) or 'files' (requires \$CFG->templatesroot to be set) |
|---|
| 176 |
|
|---|
| 177 |
// set up some LMS hosts. |
|---|
| 178 |
// -------------------------------------------------- |
|---|
| 179 |
// This array is KEYED on installid - the lms clients should identify themselves with this installid |
|---|
| 180 |
// Token is required and should be shared with the lms client. |
|---|
| 181 |
// Baseurl is required and will be used to link back to the lms. |
|---|
| 182 |
// Name is optional and will be used to display a user friendly name. The institution name is a good choice. |
|---|
| 183 |
// If this is not given, installid will be used instead. |
|---|
| 184 |
// Confirmurl is optional (pings back confirmation of requests for signup and authentication.) |
|---|
| 185 |
// Moodle's confirm url is http://yourmoodlehost.com/blocks/eportfolio/confirm.php |
|---|
| 186 |
// But not all lms systems will implement this necessarily. |
|---|
| 187 |
// Network address is optional (performs further checking on requests from the lms) & can be three different formats: |
|---|
| 188 |
// A full exact address like 192.168.0.1 |
|---|
| 189 |
// A partial address like 192.168 |
|---|
| 190 |
// CIDR notation, such as 231.54.211.0/20 |
|---|
| 191 |
// |
|---|
| 192 |
// \$CFG->lmshosts = array('installid' => array('token' => 'sharedsecret', 'networkaddress' => 'xxx.xxx.xxx.xxx','confirmurl' => 'http://thelms.com/something.php', 'baseurl' => 'http://thelms.com', 'name' => 'Something Friendly')); |
|---|
| 193 |
// |
|---|
| 194 |
// Note that if you are going to allow file transfers between your lms and elgg using scp |
|---|
| 195 |
// you will need to obtain the .pub part of an ssh key that the lms has been set up to use, |
|---|
| 196 |
// and add it to the ~/.ssh/authorized_keys file for the user on this machine they need to connect to, |
|---|
| 197 |
// and provide the lms with the username for that user. |
|---|
| 198 |
// This user needs write access to {\$CFG->dataroot}lms/incoming/ as that is where the incoming files will end up. |
|---|
| 199 |
|
|---|
| 200 |
|
|---|
| 201 |
// For SSL feed *reading* support, Snoopy needs to know where the curl executable is. |
|---|
| 202 |
// To disable, or if curl is not available (e.g. on Windows), set to false |
|---|
| 203 |
//\$CFG->curlpath = "/usr/bin/curl"; |
|---|
| 204 |
\$CFG->curlpath = '$PARSEDCFG->curlpath'; |
|---|
| 205 |
|
|---|
| 206 |
// Some other \$CFG variables found in codebase. |
|---|
| 207 |
// They may or may not be config options. Some are just used for holding global data. |
|---|
| 208 |
|
|---|
| 209 |
// \$CFG->admin |
|---|
| 210 |
// \$CFG->allowobjectembed // boolean - whether to allow <object> and <embed> tags through input-cleaning |
|---|
| 211 |
// \$CFG->auth |
|---|
| 212 |
// \$CFG->cachetext |
|---|
| 213 |
// \$CFG->currenttextiscacheable |
|---|
| 214 |
// \$CFG->dbsessions |
|---|
| 215 |
// \$CFG->detect_unchecked_vars |
|---|
| 216 |
// \$CFG->filterall |
|---|
| 217 |
// \$CFG->framename |
|---|
| 218 |
// \$CFG->handlebounces // in commented-out code |
|---|
| 219 |
// \$CFG->ignoresesskey // in commented-out code |
|---|
| 220 |
// \$CFG->logsql |
|---|
| 221 |
// \$CFG->maxbytes |
|---|
| 222 |
// \$CFG->openid_comments_allowed |
|---|
| 223 |
// \$CFG->opentogoogle |
|---|
| 224 |
// \$CFG->pathtodu |
|---|
| 225 |
// \$CFG->perfdebug |
|---|
| 226 |
// \$CFG->pixpath |
|---|
| 227 |
// \$CFG->plugins->editor |
|---|
| 228 |
// \$CFG->plugins->tinymce |
|---|
| 229 |
// \$CFG->release |
|---|
| 230 |
// \$CFG->respectsessionsettings |
|---|
| 231 |
// \$CFG->secureforms |
|---|
| 232 |
// \$CFG->session_error_counter |
|---|
| 233 |
// \$CFG->sessioncookie |
|---|
| 234 |
// \$CFG->sessiontimeout |
|---|
| 235 |
// \$CFG->templatedir |
|---|
| 236 |
// \$CFG->tracksessionip |
|---|
| 237 |
// \$CFG->unzip |
|---|
| 238 |
// \$CFG->userlocale |
|---|
| 239 |
// \$CFG->version |
|---|
| 240 |
// \$CFG->zip |
|---|
| 241 |
|
|---|
| 242 |
?> |
|---|
| 243 |
END; |
|---|
| 244 |
|
|---|
| 245 |
?> |
|---|