root/releases/0.65/config-dist.php

Revision 492, 7.1 kB (checked in by ben, 2 years ago)

Moved walled garden to the authentication section of config.php.

  • Property svn:eol-style set to native
Line 
1 <?php
2 // ELGG system configuration parameters.
3
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");
7
8 // Name of the site (eg Elgg, Apcala, University of Bogton's Learning Landscape, etc)
9
10     $CFG->sitename = 'My Elgg site';
11
12 // External URL to the site (eg http://elgg.bogton.edu/)
13 // NB: **MUST** have a final slash at the end
14
15     $CFG->wwwroot = 'http://';
16
17 // Physical path to the files (eg /home/elggserver/httpdocs/)
18 // NB: **MUST** have a final slash at the end
19
20     $CFG->dirroot = '';
21
22 // Email address of the system (eg elgg-admin@bogton.edu)
23
24     $CFG->sysadminemail = '';
25
26 // Country code to set language to if you have gettext installed
27 // To include new languages, save their compiled .mo gettext
28 // file into languages/country code/LC_MESSAGES/
29 // (the file within this folder must be called elgg.mo)
30 // An Elgg gettext template is included as /elgg.pot
31
32     $CFG->defaultlocale = 'en_GB';
33
34 // The following should be set to false if you don't want the
35 // general public to be able to register accounts with your
36 // Elgg site.
37
38     $CFG->publicreg = true;
39     
40 // The following should be set to false if you don't want users
41 // to be able to invite new users into the system.
42
43     $CFG->publicinvite = true;
44
45 // Set this to 1 to enable a walled garden - i.e., if you're not logged in,
46 // all you can see is the login page.
47
48     $CFG->walledgarden = 0;
49
50 // If the following string is non-blank, it must be present within
51 // the domains of email addresses of people signing up. For example,
52 // if you set it to yourinstitution.edu, a user with the email address
53 // foo@bar.yourinstitution.edu will be able to sign up.
54 // This rule will hold true for both public registrations and invitations
55 // from within the system (if either are enabled).
56
57     $CFG->emailfilter = "";
58     
59 // The following sets the default access level within the Elgg
60 // site. Possible values include:
61 //        PUBLIC        :: available to everyone
62 //        LOGGED_IN    :: available to logged in users only
63 //        PRIVATE        :: available to the user only
64
65     $CFG->default_access = "LOGGED_IN";
66
67 // dataroot. this is where uploaded files will go (and sessions for now)
68 // This should be OUTSIDE your wwwroot.
69 // NB: **MUST** have a final slash at the end
70
71     $CFG->dataroot = '';
72
73 // You may change these values to something else but you must ensure that
74 // the user the web server process runs as is able to read and write under
75 // these permissions.
76 //$CFG->directorypermissions = 0777;
77 //$CFG->filepermissions = 0666;
78
79     $CFG->dbtype = 'mysql'; // for now
80     $CFG->dbhost = 'localhost';
81     $CFG->dbuser = '';
82     $CFG->dbpass = '';
83     $CFG->dbname = '';
84     $CFG->dbpersist = false;
85
86 // The following will assume all your database tables have this value at the start
87 // of their names. If you're upgrading from an earlier version of Elgg, you might
88 // need to set this to $CFG->prefix = '';
89
90     $CFG->prefix = 'elgg';
91
92 // performance and debugging //
93 // Uncomment this to get sql errors sent to the webserver error log.
94 // $CFG->dblogerror = true;
95 // put this to 2047 to get adodb error handling.
96
97     $CFG->debug = 0;
98
99 // Number of days to keep incoming RSS feed entries for before deleting them.
100 // A value of 0 disables automatic deletion.
101
102     $CFG->rsspostsmaxage = 0;
103
104 //
105 //   Capture performance profiling data
106 //   define('ELGG_PERF'  , true);
107 //
108 //   Capture additional data from DB
109 //   define('ELGG_PERFDB'  , true);
110 //
111 //   Print to log (for passive profiling of production servers)
112 //   define('ELGG_PERFTOLOG'  , true);
113 //
114 //   Print to footer (works with the default theme)
115 //   define('ELGG_PERFTOFOOT', true);
116 //
117 // EMAIL HANDLING
118 // $CFG->smtphosts= ''; // empty (sendmail), qmail (qmail) or hosts
119 // $CFG->smtpuser = ''; // if using smtphosts, optional smtpuser & smtppass
120 // $CFG->smtppass = '';
121 // $CFG->noreplyaddress = ''; // this will default to noreply@hostname (from wwwroot)
122
123 // CLAMAV HANDLING
124 //$CFG->runclamonupload = true;
125 //$CFG->quarantinedir = '/somewhere/the/webserver/can/write/to';
126 //$CFG->clamfailureonupload = 'actlikevirus'; // OR 'donothing';
127 //$CFG->pathtoclam = '/usr/bin/clamscan'; // OR '/usr/bin/clamdscan';
128
129 // TEMPLATES HANDLING
130 //$CFG->disable_usertemplates = true;  // users can only choose from available templates
131 //$CFG->templatestore = 'db';          // 'db' (default) or 'files' (requires $CFG->templatesroot to be set)
132 //$CFG->templatesroot = '/some/path/'; // use on-disk templates instead of DB templates
133
134 // set up some LMS hosts.
135 // --------------------------------------------------
136 // This array is KEYED on installid - the lms clients should identify themselves with this installid
137 // Token is required and should be shared with the lms client.
138 // Baseurl is required and will be used to link back to the lms.
139 // Name is optional and will be used to display a user friendly name.  The institution name is a good choice.
140 //      If this is not given, installid will be used instead.
141 // Confirmurl is optional (pings back confirmation of requests for signup and authentication.)
142 //      Moodle's confirm url is http://yourmoodlehost.com/blocks/eportfolio/confirm.php
143 //      But not all lms systems will implement this necessarily.
144 // Network address is optional (performs further checking on requests from the lms) & can be three different formats:
145 //      A full exact address like 192.168.0.1
146 //      A partial address like 192.168
147 //      CIDR notation, such as 231.54.211.0/20
148 //
149 // $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'));
150 //
151 // Note that if you are going to allow file transfers between your lms and elgg using scp
152 // you will need to obtain the .pub part of an ssh key that the lms has been set up to use,
153 // and add it to the ~/.ssh/authorized_keys file for the user on this machine they need to connect to,
154 // and provide the lms with the username for that user.
155 // This user needs write access to {$CFG->dataroot}lms/incoming/ as that is where the incoming files will end up.
156
157
158 // Some other $CFG variables found in codebase
159
160 // $CFG->admin
161 // $CFG->allowobjectembed
162 // $CFG->aspellpath
163 // $CFG->auth
164 // $CFG->cachetext
165 // $CFG->currenttextiscacheable
166 // $CFG->dbsessions
167 // $CFG->detect_unchecked_vars
168 // $CFG->editorbackgroundcolor
169 // $CFG->editorfontfamily
170 // $CFG->editorfontlist
171 // $CFG->editorfontsize
172 // $CFG->editorhidebuttons
173 // $CFG->editorkillword
174 // $CFG->editorspelling
175 // $CFG->filterall
176 // $CFG->framename
177 // $CFG->handlebounces
178 // $CFG->ignoresesskey
179 // $CFG->lang
180 // $CFG->lastcron
181 // $CFG->libdir
182 // $CFG->logsql
183 // $CFG->maxbytes
184 // $CFG->newsclient_lastcron
185 // $CFG->openid_comments_allowed
186 // $CFG->opentogoogle
187 // $CFG->pathtodu
188 // $CFG->perfdebug
189 // $CFG->pixpath
190 // $CFG->plugins->editor
191 // $CFG->plugins->tinymce
192 // $CFG->release
193 // $CFG->respectsessionsettings
194 // $CFG->secureforms
195 // $CFG->session_error_counter
196 // $CFG->sessioncookie
197 // $CFG->sessiontimeout
198 // $CFG->templatedir
199 // $CFG->tracksessionip
200 // $CFG->unzip
201 // $CFG->userlocale
202 // $CFG->version
203 // $CFG->zip
204
205 ?>
Note: See TracBrowser for help on using the browser.