root/releases/0.401/includes.php

Revision 260, 3.3 kB (checked in by ben, 3 years ago)

The default access restriction is now 'logged in users'. Furthermore, default access restrictions for an Elgg site can now be set in includes.php - either public, logged in users, or private.

  • Property svn:eol-style set to native
Line 
1 <?php
2
3     // error_reporting(E_ERROR | E_WARNING | E_PARSE);
4
5     // ELGG system includes
6     
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");
10     
11         // Name of the site (eg Elgg, Apcala, University of Bogton's Learning Landscape, etc)
12             define("sitename", "");
13         // External URL to the site (eg http://elgg.bogton.edu/)
14         // NB: **MUST** have a final slash at the end
15             define("url", "");
16         // Physical path to the files (eg /home/elggserver/httpdocs/)
17         // NB: **MUST** have a final slash at the end
18             define("path", "");
19         // Email address of the system (eg elgg-admin@bogton.edu)
20             define("email", "");
21         // Country code to set language to if you have gettext installed
22         // To include new languages, save their compiled .mo gettext
23         // file into languages/country code/LC_MESSAGES/
24         // (the file within this folder must be called elgg.mo)
25         // An Elgg gettext template is included as /elgg.pot
26             define("locale", "en_GB");
27         // The following should be set to false if you don't want the
28         // general public to be able to register accounts with your
29         // Elgg site.
30             define("public_reg", true);
31         // The following sets the default access level within the Elgg
32         // site. Possible values include:
33         //        PUBLIC        :: available to everyone
34         //        LOGGED_IN    :: available to logged in users only
35         //        PRIVATE        :: available to the user only
36             define("default_access", "LOGGED_IN");
37             
38         // Whether to display verbose error information. This is intended mainly
39         // for Elgg developers, and should normally be set to false.
40             define("ELGG_DEBUG", true);
41             
42     // Database config:
43     
44         // Database server (eg localhost)
45             define("db_server", "");
46         // Database username
47             define("db_user", "");
48         // Database password
49             define("db_pass", "");
50         // Database name
51             define("db_name", "");
52                     
53     // Load required system files: do not edit this line.
54         require("includes_system.php");
55         
56     /***************************************************************************
57     *    INSERT PLUGINS HERE
58     *    Eventually this should be replaced with plugin autodiscovery
59     ****************************************************************************/
60         
61     // XMLRPC
62     //    @include(path . "units/rpc/main.php");
63     
64     // Visual editor (tinyMCE)
65         @include(path . "units/tinymce/main.php");
66     
67     // Calendaring system
68     //    require(path . "units/calendar/main.php");
69     
70     /***************************************************************************
71     *    CONTENT MODULES
72     *    This should make languages easier, although some kind of
73     *    selection process will be required
74     ****************************************************************************/
75         
76     // General
77         @include(path . "content/general/main.php");
78     // Main index
79         @include(path . "content/mainindex/main.php");
80     // User-related
81         @include(path . "content/users/main.php");
82     
83     /***************************************************************************
84     *    HELP MODULES
85     ****************************************************************************/
86         
87     // Include main
88         @include(path . "help/mainindex/main.php");
89         
90     /***************************************************************************
91     *    START-OF-PAGE RUNNING
92     ****************************************************************************/
93     
94         run("init");
95         
96 ?>
97
Note: See TracBrowser for help on using the browser.