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");
11 // Name of the site (eg Elgg, Apcala, University of Bogton's Social Network, etc)
13 \
$CFG->sitename
= '$PARSEDCFG->sitename';
15 // A tagline for your site (eg 'Social network for Bogton')
17 \
$CFG->tagline
= '$PARSEDCFG->tagline';
19 // External URL to the site (eg http://elgg.bogton.edu/)
20 // NB: **MUST** have a final slash at the end
22 \
$CFG->wwwroot
= '$PARSEDCFG->wwwroot';
24 // Physical path to the files (eg /home/elggserver/httpdocs/)
25 // NB: **MUST** have a final slash at the end
27 \
$CFG->dirroot
= '$PARSEDCFG->dirroot';
29 // Email address of the system (eg elgg-admin@bogton.edu)
31 \
$CFG->sysadminemail
= '$PARSEDCFG->sysadminemail';
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.
37 \
$CFG->newsinitialpassword
= '$PARSEDCFG->newsinitialpassword';
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
46 \
$CFG->defaultlocale
= '$PARSEDCFG->defaultlocale';
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
52 \
$CFG->publicreg
= $PARSEDCFG->publicreg
;
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.
57 \
$CFG->publicinvite
= $PARSEDCFG->publicinvite
;
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.
63 \
$CFG->maxusers
= $PARSEDCFG->maxusers
;
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.
68 \
$CFG->walledgarden
= $PARSEDCFG->walledgarden
;
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).
77 \
$CFG->emailfilter
= "$PARSEDCFG->emailfilter";
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
85 \
$CFG->default_access
= "$PARSEDCFG->default_access";
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
;
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
95 \
$CFG->dataroot
= '$PARSEDCFG->dataroot';
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
100 //\$CFG->directorypermissions = 0777;
101 //\$CFG->filepermissions = 0666;
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
;
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 = '';
114 \
$CFG->prefix
= '$PARSEDCFG->prefix';
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.
121 \
$CFG->debug
= $PARSEDCFG->debug
;
123 // Number of days to keep incoming RSS feed entries for before deleting them.
124 // A value of 0 disables automatic deletion.
126 \
$CFG->rsspostsmaxage
= $PARSEDCFG->rsspostsmaxage
;
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.
131 \
$CFG->community_create_flag
= "$PARSEDCFG->community_create_flag";
133 // Username and password for the admin panel at /_elggadmin/
134 // To use the admin panel, these can't be left blank!
136 \
$CFG->adminuser
= "$PARSEDCFG->adminuser";
137 \
$CFG->adminpassword
= "$PARSEDCFG->adminpassword";
140 // Capture performance profiling data
141 // define('ELGG_PERF' , true);
143 // Capture additional data from DB
144 // define('ELGG_PERFDB' , true);
146 // Print to log (for passive profiling of production servers)
147 // define('ELGG_PERFTOLOG' , true);
149 // Print to footer (works with the default theme)
150 // define('ELGG_PERFTOFOOT', true);
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)
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';
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
172 \
$CFG->profilelocation
= '$PARSEDCFG->profilelocation';
174 //Template file handing is not currently recommended.
175 //\$CFG->templatestore = 'db'; // 'db' (default) or 'files' (requires \$CFG->templatesroot to be set)
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
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'));
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.
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';
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.
210 // \$CFG->allowobjectembed // boolean - whether to allow <object> and <embed> tags through input-cleaning
213 // \$CFG->currenttextiscacheable
215 // \$CFG->detect_unchecked_vars
218 // \$CFG->handlebounces // in commented-out code
219 // \$CFG->ignoresesskey // in commented-out code
222 // \$CFG->openid_comments_allowed
223 // \$CFG->opentogoogle
227 // \$CFG->plugins->editor
228 // \$CFG->plugins->tinymce
230 // \$CFG->respectsessionsettings
231 // \$CFG->secureforms
232 // \$CFG->session_error_counter
233 // \$CFG->sessioncookie
234 // \$CFG->sessiontimeout
235 // \$CFG->templatedir
236 // \$CFG->tracksessionip