initialize user theme in SINGLE_USER_MODE (closes #72)

This commit is contained in:
Andrew Dolgov 2006-06-16 13:23:26 +01:00
parent a6b4a12a5b
commit 0bbba72d38
1 changed files with 8 additions and 3 deletions

View File

@ -876,6 +876,13 @@
$_SESSION["uid"] = 1;
$_SESSION["name"] = "admin";
$user_theme = get_user_theme_path($link);
$_SESSION["theme"] = $user_theme;
$_SESSION["ip_address"] = $_SERVER["REMOTE_ADDR"];
initialize_user_prefs($link, $_SESSION["uid"]);
return true;
}
}
@ -1005,9 +1012,7 @@
}
}
} else {
$_SESSION["uid"] = 1;
$_SESSION["name"] = "admin";
initialize_user_prefs($link, 1);
return authenticate_user($link, "admin", null);
}
}