/** */
$wgProxyMemcExpiry = 86400;
/** This should always be customised in LocalSettings.php */
-$wgSecretKey = 'W1svekXc5u6lZllTZOwnzEk1nbs';
+$wgSecretKey = false;
/** big list of banned IP addresses, in the keys not the values */
$wgProxyList = array();
# Set the random token (used for persistent authentication)
function setToken( $token = false ) {
- global $wgSecretKey, $wgDBname;
+ global $wgSecretKey, $wgProxyKey, $wgDBname;
if ( !$token ) {
+ if ( $wgSecretKey ) {
+ $key = $wgSecretKey;
+ } elseif ( $wgProxyKey ) {
+ $key = $wgProxyKey;
+ } else {
+ $key = microtime();
+ }
$this->mToken = md5( $wgSecretKey . mt_rand( 0, 0x7fffffff ) . $wgDBname . $this->mId );
} else {
$this->mToken = $token;