$wgServerName = $_SERVER['SERVER_NAME'];
} elseif( isset( $_SERVER['HOSTNAME'] ) ) {
$wgServerName = $_SERVER['HOSTNAME'];
+} elseif( isset( $_SERVER['HTTP_HOST'] ) ) {
+ $wgServerName = $_SERVER['HTTP_HOST'];
+} elseif( isset( $_SERVER['SERVER_ADDR'] ) ) {
+ $wgServerName = $_SERVER['SERVER_ADDR'];
} else {
- # FIXME: Fall back on... something else?
$wgServerName = 'localhost';
}
/** Enable to allow rewriting dates in page text.
* DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
$wgUseDynamicDates = false;
-/** Enable for English module to print dates as eg 'May 12' instead of '12 May' */
+/** Enable dates like 'May 12' instead of '12 May', this only takes effect if
+ * the interface is set to English
+ */
$wgAmericanDates = false;
/**
* For Hindi and Arabic use local numerals instead of Western style (0-9)
$wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'
-$wgSysopUserBans = false; # Allow sysops to ban logged-in users
-$wgSysopRangeBans = false; # Allow sysops to ban IP ranges
+$wgSysopUserBans = true; # Allow sysops to ban logged-in users
+$wgSysopRangeBans = true; # Allow sysops to ban IP ranges
/** Comma-separated list of options to show on the IP block form.
* Use strtotime() format, or "infinite" for an infinite block
/** Maximum number of titles to purge in any one client operation */
$wgMaxSquidPurgeTitles = 400;
+/** HTCP multicast purging */
+$wgHTCPPort = 4827;
+$wgHTCPMulticastTTL = 1;
+# $wgHTCPMulticastAddress = "224.0.0.85";
# Cookie settings:
#
*/
$wgDisableSearchUpdate = false;
/** Uploads have to be specially set up to be secure */
-$wgDisableUploads = true;
+$wgEnableUploads = false;
/**
* Set to true to enable the upload _link_ while local uploads are disabled.
* Assumes that the special page link will be bounced to another server where
$wgStrictFileExtensions = true;
/** Warn if uploaded files are larger than this */
-$wgUploadSizeWarning = 150000;
+$wgUploadSizeWarning = 150 * 1024;
/** For compatibility with old installations set to false */
$wgPasswordSalt = true;
*/
$wgDisabledActions = array();
+/**
+ * Use http.dnsbl.sorbs.net to check for open proxies
+ */
+$wgEnableSorbs = true;
+
} else {
die();
}