$wgAllowAnonymousMinor = false;
-# Enable experimental smarty skins (put Smart/libs in your include_path!)
+# Enable experimental smarty skins (put Smarty/libs in your include_path!)
$wgUseSmarty = false;
if( !isset( $wgCommandLineMode ) ) {
$wgDateFormatter = new DateFormatter;
}
-if( !$wgCommandLineMode && isset( $_COOKIE[ini_get("session.name")] ) ) {
+if( !$wgCommandLineMode && ( isset( $_COOKIE[ini_get("session.name")] ) || isset( $_COOKIE["{$wgDBname}Password"] ) ) ) {
User::SetupSession();
}
}
if ( isset( $_SESSION['wsUserName'] ) ) {
$sName = $_SESSION['wsUserName'];
- } else if ( isset( $HTTP_COOKIE_VARS["{$wgDBname}UserName"] ) ) {
- $sName = $HTTP_COOKIE_VARS["{$wgDBname}UserName"];
+ } else if ( isset( $_COOKIE["{$wgDBname}UserName"] ) ) {
+ $sName = $_COOKIE["{$wgDBname}UserName"];
$_SESSION['wsUserName'] = $sName;
} else {
return new User();
if ( isset( $_SESSION['wsUserPassword'] ) ) {
$passwordCorrect = $_SESSION['wsUserPassword'] == $user->mPassword;
- } else if ( isset( $HTTP_COOKIE_VARS["{$wgDBname}Password"] ) ) {
- $user->mCookiePassword = $HTTP_COOKIE_VARS["{$wgDBname}Password"];
+ } else if ( isset( $_COOKIE["{$wgDBname}Password"] ) ) {
+ $user->mCookiePassword = $_COOKIE["{$wgDBname}Password"];
$_SESSION['wsUserPassword'] = $user->addSalt( $user->mCookiePassword );
$passwordCorrect = $_SESSION['wsUserPassword'] == $user->mPassword;
} else {