summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-06-16 13:23:26 +0100
committerAndrew Dolgov <[email protected]>2006-06-16 13:23:26 +0100
commit0bbba72d3848fdae6aa9dd5a0cb7150be76007ca (patch)
tree733d1685f50ad069ab89ccaf00aef564e517997f /functions.php
parenta6b4a12a5b83acc2b27159a15fdc3724b2cfdc2b (diff)
initialize user theme in SINGLE_USER_MODE (closes #72)
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/functions.php b/functions.php
index ab548c2f6..4c05e7cb8 100644
--- a/functions.php
+++ b/functions.php
@@ -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);
}
}