Changeset 477
- Timestamp:
- 08/10/06 09:59:23 (2 years ago)
- Files:
-
- devel/config-dist.php (modified) (5 diffs)
- devel/includes.php (modified) (1 diff)
- devel/login/index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/config-dist.php
r420 r477 7 7 8 8 // Name of the site (eg Elgg, Apcala, University of Bogton's Learning Landscape, etc) 9 $CFG->sitename = 'My Elgg site'; 9 10 $CFG->sitename = 'My Elgg site'; 11 10 12 // External URL to the site (eg http://elgg.bogton.edu/) 11 13 // NB: **MUST** have a final slash at the end 12 $CFG->wwwroot = 'http://'; 14 15 $CFG->wwwroot = 'http://'; 16 13 17 // Physical path to the files (eg /home/elggserver/httpdocs/) 14 18 // NB: **MUST** have a final slash at the end 15 $CFG->dirroot = ''; 19 20 $CFG->dirroot = ''; 21 16 22 // Email address of the system (eg elgg-admin@bogton.edu) 17 $CFG->sysadminemail = ''; 23 24 $CFG->sysadminemail = ''; 25 18 26 // Country code to set language to if you have gettext installed 19 27 // To include new languages, save their compiled .mo gettext … … 21 29 // (the file within this folder must be called elgg.mo) 22 30 // An Elgg gettext template is included as /elgg.pot 23 $CFG->defaultlocale = 'en_GB'; 31 32 $CFG->defaultlocale = 'en_GB'; 33 24 34 // The following should be set to false if you don't want the 25 35 // general public to be able to register accounts with your 26 36 // Elgg site. 27 $CFG->publicreg = true; 37 38 $CFG->publicreg = true; 39 28 40 // The following sets the default access level within the Elgg 29 41 // site. Possible values include: … … 31 43 // LOGGED_IN :: available to logged in users only 32 44 // PRIVATE :: available to the user only 33 $CFG->default_access = "LOGGED_IN"; 45 46 $CFG->default_access = "LOGGED_IN"; 47 34 48 // dataroot. this is where uploaded files will go (and sessions for now) 35 49 // This should be OUTSIDE your wwwroot. 36 50 // NB: **MUST** have a final slash at the end 37 $CFG->dataroot = ''; 51 52 $CFG->dataroot = ''; 53 38 54 // You may change these values to something else but you must ensure that 39 55 // the user the web server process runs as is able to read and write under … … 42 58 //$CFG->filepermissions = 0666; 43 59 44 $CFG->dbtype = 'mysql'; // for now45 $CFG->dbhost = 'localhost';46 $CFG->dbuser = '';47 $CFG->dbpass = '';48 $CFG->dbname = '';49 $CFG->dbpersist = false;60 $CFG->dbtype = 'mysql'; // for now 61 $CFG->dbhost = 'localhost'; 62 $CFG->dbuser = ''; 63 $CFG->dbpass = ''; 64 $CFG->dbname = ''; 65 $CFG->dbpersist = false; 50 66 51 67 // The following will assume all your database tables have this value at the start 52 68 // of their names. If you're upgrading from an earlier version of Elgg, you might 53 69 // need to set this to $CFG->prefix = ''; 54 $CFG->prefix = 'elgg'; 70 71 $CFG->prefix = 'elgg'; 55 72 56 73 // performance and debugging // … … 58 75 // $CFG->dblogerror = true; 59 76 // put this to 2047 to get adodb error handling. 60 $CFG->debug = 0;61 77 78 $CFG->debug = 0; 62 79 63 80 // Number of days to keep incoming RSS feed entries for before deleting them. 64 81 // A value of 0 disables automatic deletion. 65 $CFG->rsspostsmaxage = 0; 82 83 $CFG->rsspostsmaxage = 0; 84 85 // Set this to 1 to enable a walled garden - i.e., if you're not logged in, 86 // all you can see is the login page. 87 88 $CFG->walledgarden = 0; 66 89 67 90 // devel/includes.php
r424 r477 71 71 run("init"); 72 72 73 // Walled garden checking: if we're not logged in, 74 // and walled garden functionality is turned on, redirect to 75 // the logon screen 76 if (!empty($CFG->walledgarden) && context != "login" && !logged_on) { 77 78 header("Location: " . $CFG->wwwroot . "login/index.php"); 79 exit(); 80 81 } 82 73 83 ?> devel/login/index.php
r473 r477 1 1 <?php 2 3 define("context","login"); 2 4 3 5 require_once(dirname(dirname(__FILE__)).'/includes.php');
