aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-04 14:35:12 -0800
committerFriendika <info@friendika.com>2011-01-04 14:35:12 -0800
commit45d8676dc294b3d275a5d62138ad3c0dcfa8fc13 (patch)
tree2b2096ced37dab66b940279550dda60c5451d604 /index.php
parent64628c800d711c3a3c28e2bf94efd7e8b26a5eba (diff)
downloadvolse-hubzilla-45d8676dc294b3d275a5d62138ad3c0dcfa8fc13.tar.gz
volse-hubzilla-45d8676dc294b3d275a5d62138ad3c0dcfa8fc13.tar.bz2
volse-hubzilla-45d8676dc294b3d275a5d62138ad3c0dcfa8fc13.zip
use shift-home instead to take you home
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.'));