]> git.wh0rd.org - tt-rss.git/blobdiff - classes/handler/public.php
Report failed login attemps using user_error
[tt-rss.git] / classes / handler / public.php
index f05beafd21f1783f37b804b28182cedee3269b67..f67c4fb9aca72a1864b0651f518e6e1dfca5b16a 100644 (file)
@@ -110,6 +110,8 @@ class Handler_Public extends Handler {
                                        date(DATE_RFC822, strtotime($line["updated"])), true);
 
                                $tpl->setVariable('ARTICLE_AUTHOR', htmlspecialchars($line['author']), true);
+                               
+                               $tpl->setVariable('ARTICLE_SOURCE_TITLE', htmlspecialchars($line['feed_title']), true);
 
                                $tags = get_article_tags($line["id"], $owner_uid);
 
@@ -543,6 +545,7 @@ class Handler_Public extends Handler {
                                }
                        } else {
                                $_SESSION["login_error_msg"] = __("Incorrect username or password");
+                               user_error("Failed login attempt from {$_SERVER['REMOTE_ADDR']}", E_USER_WARNING);
                        }
 
                        if ($_REQUEST['return']) {