summaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorMark Pemberton <mpemberton5@gmail.com>2011-05-12 23:12:11 -0400
committerMark Pemberton <mpemberton5@gmail.com>2011-05-12 23:12:11 -0400
commitf18b8c04448bbcbf913349f8239d857a12b6410f (patch)
treefc2616fd9fa2802bbd33fbf32c31e873ba1d3d0d /www
parent23cdbb53d0ab881f3b1fc196ac17c477f5463386 (diff)
downloadSemanticScuttle-origin/privatekey.zip
SemanticScuttle-origin/privatekey.tar.gz
SemanticScuttle-origin/privatekey.tar.bz2
Final updates to rss.php with correct authentication and bookmark resultsorigin/privatekey
Diffstat (limited to 'www')
-rw-r--r--www/rss.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/www/rss.php b/www/rss.php
index ae32cbd..ee6fb4b 100644
--- a/www/rss.php
+++ b/www/rss.php
@@ -107,7 +107,19 @@ if ($user && $user != 'all') {
}
$pagetitle .= ": ". $user;
} else {
- $userid = null;
+ if ($privatekey != null) {
+ if ($userservice->loginPrivateKey($privatekey)) {
+ $isTempLogin = true;
+ } else {
+ $tplVars['error'] = sprintf(T_('Failed to Autenticate User with username %s using private key'), $user);
+ header('Content-type: text/html; charset=utf-8');
+ $templateservice->loadTemplate('error.404.tpl', $tplVars);
+ //throw a 404 error
+ exit();
+ }
+ } else {
+ $userid = null;
+ }
}
if ($cat) {