diff options
author | Mark Pemberton <mpemberton5@gmail.com> | 2011-05-13 14:26:51 -0400 |
---|---|---|
committer | Mark Pemberton <mpemberton5@gmail.com> | 2011-05-13 14:26:51 -0400 |
commit | ec345f7a1343769abdf3f5920a0732b24726b733 (patch) | |
tree | 1a65f2f0bea89b16f5c8e93264b67e2927570677 /www/index.php | |
parent | 803b83fb7d051593066b5224a59fbf3ec6efc824 (diff) | |
download | semanticscuttle-ec345f7a1343769abdf3f5920a0732b24726b733.tar.gz semanticscuttle-ec345f7a1343769abdf3f5920a0732b24726b733.tar.bz2 |
new privatekey2 branch with privatekey changes
Diffstat (limited to 'www/index.php')
-rw-r--r-- | www/index.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/www/index.php b/www/index.php index f6704ae..0977923 100644 --- a/www/index.php +++ b/www/index.php @@ -45,6 +45,19 @@ $tplVars['rsschannels'] = array( array(sprintf(T_('%s: Recent bookmarks'), $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']; |