root/releases/0.6rc2/config-dist.php

Revision 310, 4.9 kB (checked in by carmartin, 2 years ago)

templates: introducing CFG->templatesroot and CFG->templatestore to control on-disk templates

Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>

  • 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 $CFG->sitename = 'My Elgg site';
10 // External URL to the site (eg http://elgg.bogton.edu/)
11 // NB: **MUST** have a final slash at the end
12 $CFG->wwwroot = 'http://';
13 // Physical path to the files (eg /home/elggserver/httpdocs/)
14 // NB: **MUST** have a final slash at the end
15 $CFG->dirroot = '';
16 // Email address of the system (eg elgg-admin@bogton.edu)
17 $CFG->sysadminemail = '';
18 // Country code to set language to if you have gettext installed
19 // To include new languages, save their compiled .mo gettext
20 // file into languages/country code/LC_MESSAGES/
21 // (the file within this folder must be called elgg.mo)
22 // An Elgg gettext template is included as /elgg.pot
23 $CFG->defaultlocale = 'en_GB';
24 // The following should be set to false if you don't want the
25 // general public to be able to register accounts with your
26 // Elgg site.
27 $CFG->publicreg = true;
28 // The following sets the default access level within the Elgg
29 // site. Possible values include:
30 //        PUBLIC        :: available to everyone
31 //        LOGGED_IN    :: available to logged in users only
32 //        PRIVATE        :: available to the user only
33 $CFG->default_access = "LOGGED_IN";
34 // dataroot. this is where uploaded files will go (and sessions for now)
35 // This should be OUTSIDE your wwwroot.
36 $CFG->dataroot = '';
37 // You may change this value to something else but you must ensure that
38 // the user runs the web server process be able to read and write under
39 // this permission.
40 //$CFG->directorypermissions = 0777;
41
42 $CFG->dbtype = 'mysql'; // for now
43 $CFG->dbhost = 'localhost';
44 $CFG->dbuser = '';
45 $CFG->dbpass = '';
46 $CFG->dbname = '';
47 $CFG->dbpersist = false;
48 $CFG->prefix = 'elgg';
49
50 // performance and debugging //
51 // Uncomment this to get sql errors sent to the webserver error log.
52 // $CFG->dblogerror = = true;
53 // put this to 2047 to get adodb error handling.
54 $CFG->debug = 0;
55
56 //
57 //   Capture performance profiling data
58 //   define('ELGG_PERF'  , true);
59 //
60 //   Capture additional data from DB
61 //   define('ELGG_PERFDB'  , true);
62 //
63 //   Print to log (for passive profiling of production servers)
64 //   define('ELGG_PERFTOLOG'  , true);
65 //
66 //   Print to footer (works with the default theme)
67 //   define('ELGG_PERFTOFOOT', true);
68 //
69 // EMAIL HANDLING
70 // $CFG->smtphosts= ''; // empty (sendmail), qmail (qmail) or hosts
71 // $CFG->smtpuser = ''; // if using smtphosts, optional smtpuser & smtppass
72 // $CFG->smtppass = '';
73 // $CFG->noreplyaddress = ''; // this will default to noreply@hostname (from wwwroot)
74
75 // CLAMAV HANDLING
76 //$CFG->runclamonupload = true;
77 //$CFG->quarantinedir = '/somewhere/the/webserver/can/write/to';
78 //$CFG->clamfailureonupload = 'actlikevirus'; // OR 'donothing';
79 //$CFG->pathtoclam = '/usr/bin/clamscan'; // OR '/usr/bin/clamdscan';
80
81 // TEMPLATES HANDLING
82 //$CFG->disable_usertemplates = true;  // users can only choose from available templates
83 //$CFG->templatestore = 'db';          // 'db' (default) or 'files' (requires $CFG->templatesroot to be set)
84 //$CFG->templatesroot = '/some/path/'; // use on-disk templates instead of DB templates
85
86 // set up some LMS hosts.
87 // --------------------------------------------------
88 // This array is KEYED on installid - the lms clients should identify themselves with this installid
89 // Token is required and should be shared with the lms client.
90 // Baseurl is required and will be used to link back to the lms.
91 // Name is optional and will be used to display a user friendly name.  The institution name is a good choice.
92 //      If this is not given, installid will be used instead.
93 // Confirmurl is optional (pings back confirmation of requests for signup and authentication.)
94 //      Moodle's confirm url is http://yourmoodlehost.com/blocks/eportfolio/confirm.php
95 //      But not all lms systems will implement this necessarily.
96 // Network address is optional (performs further checking on requests from the lms) & can be three different formats:
97 //      A full exact address like 192.168.0.1
98 //      A partial address like 192.168
99 //      CIDR notation, such as 231.54.211.0/20
100 //
101 // $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'));
102 //
103 // Note that if you are going to allow file transfers between your lms and elgg using scp
104 // you will need to obtain the .pub part of an ssh key that the lms has been set up to use,
105 // and add it to the ~/.ssh/authorized_keys file for the user on this machine they need to connect to,
106 // and provide the lms with the username for that user.
107 // This user needs write access to {$CFG->dataroot}lms/incoming/ as that is where the incoming files will end up.
108
109 ?>
Note: See TracBrowser for help on using the browser.