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