2 // GForge Universal Site Modifications
3 // by David HM Spector <spector@zeitgeist.com>
4 // Autoconf support added by Richard Offer.
6 // Really Important Safety Tip: --> DO NOT LEAVE ANY WHITE
7 // SPACE AFTER THE CLOSING PHP TAG AT THE END OF THIS FILE!
9 // Doing so will really confuse the software and cause
10 // 1) cookies to fail and 2) HTML page headers to fail
11 // which will give you some preally hard-to-debug problems.
12 // Why? PHP is a *pre-processor* -- anything that's not PHP gets
13 // emitted as part of the HTML stream and processed by the browser,
14 // so white space is meaningful!
19 // Hostnames should be fully qualified domain names (FQDNs); using short names
20 // would be prettier but would stop you from distributing your SourceForge
21 // implementation across multiple domains.
23 // Of course, if you have a lot of machines serving a particular purpose
24 // such as FTP or for shell accounts, the "hostname" here might be in
25 // reality an addr_list of machines that is serviced by a round-robin
26 // mechanism or something fancy like a local-director.
28 // The default GForge domain
29 // this is used where ever the "naked" form of the GForge domain
30 // might be used. E.g., "mailto:admin@gforge.net"
31 $sys_default_domain = '@sys_default_domain@';
32 $sys_fallback_domain = '@sys_fallback_domain@';
33 $sys_internal_network = '@sys_internal_network@';
35 // Machine that hosts CVS
36 $sys_cvs_host = '@sys_cvs_host@';
38 // Force the use of a single cvs host instead of cvs.project.domain.com
39 // Set to 1 to use cvs.domain.com:/cvsroot/project for all projects
40 // Set to 0 to use cvs.project.domain.com:/cvsroot/project
41 $sys_cvs_single_host = 1;
43 // Machine used for downloading sources/packages
44 $sys_download_host = "@sys_download_host@";
46 // Machine used for uploading sources/packages
47 $sys_upload_host = "@sys_upload_host@";
49 // Machine(s) that host users' shell accounts
50 // N.B. to the SourceForge Crew: What's the difference between the user
51 // host and the shell host? They are clearly two different hostnames
52 // in the source code, but they seem to serve the same purpose..?
53 $sys_shell_host = "@sys_shell_host@";
54 $sys_users_host = "@sys_users_host@";
55 $homedir_prefix='@homedir_prefix@';
56 $groupdir_prefix='@groupdir_prefix@';
58 // Machine that hosts docs (such as the FAQs and the various software
59 // licenses (*BSD, [L]GPL, etc.). You REALLY want this to be the same
60 // machine that the SourceForge code is running on because all of the
61 // PHP makes reference to these documents in terms of relative paths that
62 // are part of the GForge code tree.
63 $sys_docs_host = "@sys_docs_host@";
65 // Machine that hosts the GForge mailing lists (This could also be
66 // the mail host if you have enough horsepower & bandwidth)
67 $sys_lists_host = "@sys_lists_host@";
69 // Domain Name Servers
70 // N.B.: Use terminated FQDNs here (with the final ".") so the resolver
71 // doesn't attempt to recurse in the case of a slightly broken DNS
73 $sys_dns1_host = "@sys_dns1_host@";
74 $sys_dns2_host = "@sys_dns2_host@";
76 //Databases, html/php/other paths
77 //server to use for updates and reads
78 $sys_dbhost="@sys_dbhost@";
79 //whether or not to use replication
80 $sys_db_use_replication=false;
81 $sys_dbreadhost='@sys_dbreadhost@';
82 $sys_dbreaddb='@sys_dbreaddb@';
83 $sys_dbname="@sys_dbname@";
84 $sys_dbuser="@sys_dbuser@";
85 $sys_dbpasswd="@sys_dbpasswd@";
86 // You can also specify a database port if you're using something other than 5432
88 $sys_server="@sys_server@";
92 // LDAP configurataion
94 // disable ldap use altogether
95 $sys_use_ldap=@sys_use_ldap@;
96 $sys_ldap_host="@sys_ldap_host@";
98 // this is dn under which all information stored
99 $sys_ldap_base_dn="@sys_ldap_base_dn@";
100 // and this, how we do access it (add permission required)
101 $sys_ldap_bind_dn="@sys_ldap_bind_dn@";
102 $sys_ldap_passwd="@sys_ldap_passwd@";
103 // admin dn - login dn which has permissions to delete entries
104 // NOT used by web code, only by support utilities
105 // note that password NOT stored here
106 $sys_ldap_admin_dn="@sys_ldap_admin_dn@";
110 // Jabber Configuration
112 $sys_use_jabber=@sys_use_jabber@;
113 //messages from the system will be sent to this address
114 $sys_jabber_server='@sys_jabber_host@';
115 $sys_jabber_port='5222';
116 // messages sent to jabber accounts will come from this user
117 // It is similar to the "From: noreply@gforge.org" used in emails
118 $sys_jabber_user='@sys_jabber_user@';
119 $sys_jabber_pass='@sys_jabber_pass@';
122 // File Upload Configuration
124 // Create a directory, which is writable by your webserver, but not
125 // within its document root (does not fall under www/ in the tarball)
126 // Your php.ini file may have to be modified to allow writing outside
127 // the webserver's directory
129 $sys_upload_dir="@sys_upload_dir@/";
131 // Where the GForge files are placed
132 // *** IMPORTANT: sys_urlroot *MUST* be an ABSOLUTE FILEYSTEM PATH NAME
133 // that points to the www directory of the GForge
134 // installation. If you use ANY form of relative path
135 // you will break the html_image function in include/html.php
137 $sys_urlroot='@sys_urlroot@';
139 // Name of the system as a whole (needed by various utils and titles)
140 $sys_name="@sys_name@";
142 // session cookie settings
144 // IMPORTANT - YOU MUST CHANGE the key to a long, random number
146 $sys_session_key = '@sys_session_key@';
147 $sys_session_expire = 60 * 60 * 24 * 7;
149 // Require that user give unique (not yet existent in db) email upon
151 $sys_require_unique_email=0;
153 // Themeing related vars... Some of this needs to change in the session stuff
154 // The theme base directory, everything else is handled by theme_sysinit()
155 $sys_themeroot=$sys_urlroot."themes/";
156 // If you want an other default theme or language
157 $sys_theme='@sys_theme@';
158 $sys_lang='@sys_lang@';
160 // Akamization of images
161 // example: http://images.company.com
162 $sys_images_url = "";
163 $sys_images_secure_url = "";
166 // The GForge permission model is based on groups
167 // certain parts of the site, like news, stats, etc
168 // are based on special group_id numbers
169 // group_id #1 is the super-user group of sitewide admins
170 $sys_news_group=@sys_news_group@;
171 $sys_stats_group=@sys_stats_group@;
172 $sys_peer_rating_group=@sys_peer_rating_group@;
173 $default_trove_cat=@default_trove_cat@;
176 $sys_path_to_jpgraph='@sys_path_to_jpgraph@';
179 // Setting this to 1 will add a "Show Source" link to the bottom of each page
182 // End of customizations -- place nothing after the closing PHP tag!