aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorroot <root@diekershoff.homeunix.net>2011-01-05 07:37:01 +0100
committerroot <root@diekershoff.homeunix.net>2011-01-05 07:37:01 +0100
commit830a56723c37e206f2114c4bc4ade080f475cba9 (patch)
tree01741f63f64cdd7f430fd70deba74cc510a20846 /index.php
parentcbace1639e7eb9c543a2ba0b51619a7f4164ae64 (diff)
parentbb0c24bd4fd159cc005f60a0808a4b37b91060b0 (diff)
downloadvolse-hubzilla-830a56723c37e206f2114c4bc4ade080f475cba9.tar.gz
volse-hubzilla-830a56723c37e206f2114c4bc4ade080f475cba9.tar.bz2
volse-hubzilla-830a56723c37e206f2114c4bc4ade080f475cba9.zip
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/index.php b/index.php
index cbc85accf..456c0a144 100644
--- a/index.php
+++ b/index.php
@@ -173,8 +173,15 @@ if($a->module_loaded) {
}
+// let javascript take you home
+
if(x($_SESSION,'visitor_home'))
- $a->page['content'] .= '<script>var homebase="' . $_SESSION['visitor_home'] . '" ; </script>';
+ $homebase = $_SESSION['visitor_home'];
+elseif(local_user())
+ $homebase = $a->get_baseurl() . '/profile/' . $a->user['nickname'];
+
+if(isset($homebase))
+ $a->page['content'] .= '<script>var homebase="' . $homebase . '" ; </script>';
if(stristr($_SESSION['sysmsg'], t('Permission denied'))) {
header($_SERVER["SERVER_PROTOCOL"] . ' 403 ' . t('Permission denied.'));