?? local.inc.in
字號:
<?php// GForge Universal Site Modifications// by David HM Spector <spector@zeitgeist.com>// Autoconf support added by Richard Offer.//// Really Important Safety Tip: --> DO NOT LEAVE ANY WHITE// SPACE AFTER THE CLOSING PHP TAG AT THE END OF THIS FILE!//// Doing so will really confuse the software and cause// 1) cookies to fail and 2) HTML page headers to fail// which will give you some preally hard-to-debug problems.// Why? PHP is a *pre-processor* -- anything that's not PHP gets// emitted as part of the HTML stream and processed by the browser,// so white space is meaningful!////// GForge hostnames//// Hostnames should be fully qualified domain names (FQDNs); using short names// would be prettier but would stop you from distributing your SourceForge// implementation across multiple domains.//// Of course, if you have a lot of machines serving a particular purpose// such as FTP or for shell accounts, the "hostname" here might be in// reality an addr_list of machines that is serviced by a round-robin// mechanism or something fancy like a local-director.//// The default GForge domain// this is used where ever the "naked" form of the GForge domain// might be used. E.g., "mailto:admin@gforge.net"$sys_default_domain = '@sys_default_domain@';$sys_fallback_domain = '@sys_fallback_domain@';$sys_internal_network = '@sys_internal_network@'; // Machine that hosts CVS$sys_cvs_host = '@sys_cvs_host@';// Force the use of a single cvs host instead of cvs.project.domain.com// Set to 1 to use cvs.domain.com:/cvsroot/project for all projects// Set to 0 to use cvs.project.domain.com:/cvsroot/project$sys_cvs_single_host = 1; // Machine used for downloading sources/packages$sys_download_host = "@sys_download_host@"; // Machine used for uploading sources/packages$sys_upload_host = "@sys_upload_host@";// Machine(s) that host users' shell accounts// N.B. to the SourceForge Crew: What's the difference between the user// host and the shell host? They are clearly two different hostnames// in the source code, but they seem to serve the same purpose..?$sys_shell_host = "@sys_shell_host@";$sys_users_host = "@sys_users_host@";$homedir_prefix='@homedir_prefix@';$groupdir_prefix='@groupdir_prefix@'; // Machine that hosts docs (such as the FAQs and the various software// licenses (*BSD, [L]GPL, etc.). You REALLY want this to be the same// machine that the SourceForge code is running on because all of the// PHP makes reference to these documents in terms of relative paths that// are part of the GForge code tree.$sys_docs_host = "@sys_docs_host@"; // Machine that hosts the GForge mailing lists (This could also be// the mail host if you have enough horsepower & bandwidth)$sys_lists_host = "@sys_lists_host@"; // Domain Name Servers// N.B.: Use terminated FQDNs here (with the final ".") so the resolver// doesn't attempt to recurse in the case of a slightly broken DNS// configuration$sys_dns1_host = "@sys_dns1_host@";$sys_dns2_host = "@sys_dns2_host@";//Databases, html/php/other paths//server to use for updates and reads$sys_dbhost="@sys_dbhost@";//whether or not to use replication$sys_db_use_replication=false;$sys_dbreadhost='@sys_dbreadhost@';$sys_dbreaddb='@sys_dbreaddb@';$sys_dbname="@sys_dbname@";$sys_dbuser="@sys_dbuser@";$sys_dbpasswd="@sys_dbpasswd@";// You can also specify a database port if you're using something other than 5432//$sys_dbport="4242";$sys_server="@sys_server@";// // LDAP configurataion//// disable ldap use altogether$sys_use_ldap=@sys_use_ldap@;$sys_ldap_host="@sys_ldap_host@";$sys_ldap_port=389;// this is dn under which all information stored$sys_ldap_base_dn="@sys_ldap_base_dn@";// and this, how we do access it (add permission required) $sys_ldap_bind_dn="@sys_ldap_bind_dn@";$sys_ldap_passwd="@sys_ldap_passwd@";// admin dn - login dn which has permissions to delete entries// NOT used by web code, only by support utilities// note that password NOT stored here$sys_ldap_admin_dn="@sys_ldap_admin_dn@";//// Jabber Configuration//$sys_use_jabber=@sys_use_jabber@; //messages from the system will be sent to this address$sys_jabber_server='@sys_jabber_host@';$sys_jabber_port='5222'; // messages sent to jabber accounts will come from this user // It is similar to the "From: noreply@gforge.org" used in emails$sys_jabber_user='@sys_jabber_user@';$sys_jabber_pass='@sys_jabber_pass@';//// File Upload Configuration//// Create a directory, which is writable by your webserver, but not// within its document root (does not fall under www/ in the tarball)// Your php.ini file may have to be modified to allow writing outside// the webserver's directory//$sys_upload_dir="@sys_upload_dir@/";// Where the GForge files are placed// *** IMPORTANT: sys_urlroot *MUST* be an ABSOLUTE FILEYSTEM PATH NAME// that points to the www directory of the GForge// installation. If you use ANY form of relative path// you will break the html_image function in include/html.php//$sys_urlroot='@sys_urlroot@'; // Name of the system as a whole (needed by various utils and titles)$sys_name="@sys_name@";// session cookie settings//// IMPORTANT - YOU MUST CHANGE the key to a long, random number//$sys_session_key = '@sys_session_key@';$sys_session_expire = 60 * 60 * 24 * 7; // Require that user give unique (not yet existent in db) email upon// registration$sys_require_unique_email=0; // Themeing related vars... Some of this needs to change in the session stuff// The theme base directory, everything else is handled by theme_sysinit()$sys_themeroot=$sys_urlroot."themes/";// If you want an other default theme or language$sys_theme='@sys_theme@';$sys_lang='@sys_lang@';// Akamization of images// example: http://images.company.com$sys_images_url = "";$sys_images_secure_url = "";// Groups// The GForge permission model is based on groups// certain parts of the site, like news, stats, etc// are based on special group_id numbers// group_id #1 is the super-user group of sitewide admins$sys_news_group=@sys_news_group@;$sys_stats_group=@sys_stats_group@;$sys_peer_rating_group=@sys_peer_rating_group@;$default_trove_cat=@default_trove_cat@;// JPGRAPH Package$sys_path_to_jpgraph='@sys_path_to_jpgraph@';// Show Source// Setting this to 1 will add a "Show Source" link to the bottom of each page$sys_show_source=0;// End of customizations -- place nothing after the closing PHP tag!?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -