diff options
Diffstat (limited to 'www/index.php')
| -rw-r--r-- | www/index.php | 15 | 
1 files changed, 14 insertions, 1 deletions
| diff --git a/www/index.php b/www/index.php index f6704ae..931d64d 100644 --- a/www/index.php +++ b/www/index.php @@ -42,9 +42,22 @@ if (GET_ACTION == "logout") {  // Header variables  $tplVars['loadjs'] = true;  $tplVars['rsschannels'] = array( -array(sprintf(T_('%s: Recent bookmarks'), $sitename), createURL('rss').'?sort='.getSortOrder()) +array(sprintf(T_('%s: Recent bookmarks'), htmlspecialchars($sitename)), createURL('rss').'?sort='.getSortOrder())  ); +if ($userservice->isLoggedOn()) { +    $currentUsername = $currentUser->getUsername(); +    if ($userservice->isPrivateKeyValid($currentUser->getPrivateKey())) { +        array_push( +            $tplVars['rsschannels'], +            array( +                filter($sitename . sprintf(T_(': (private) ')) . $currentUsername), +                createURL('rss', filter($currentUsername, 'url') . '?sort='.getSortOrder().'&privatekey='.$currentUser->getPrivateKey()) +            ) +        ); +    } +} +  if ($usecache) {  	// Generate hash for caching on  	$hashtext = $_SERVER['REQUEST_URI']; | 
