]>
git.wh0rd.org - tt-rss.git/blob - classes/handler/public.php
2 class Handler_Public
extends Handler
{
4 private function generate_syndicated_feed($owner_uid, $feed, $is_cat,
5 $limit, $offset, $search, $search_mode,
6 $view_mode = false, $format = 'atom') {
8 require_once "lib/MiniTemplator.class.php";
10 $note_style = "background-color : #fff7d5;
11 border-width : 1px; ".
12 "padding : 5px; border-style : dashed; border-color : #e7d796;".
13 "margin-bottom : 1em; color : #9a8c59;";
15 if (!$limit) $limit = 100;
17 if (get_pref($this->link
, "SORT_HEADLINES_BY_FEED_DATE", $owner_uid)) {
18 $date_sort_field = "updated";
20 $date_sort_field = "date_entered";
24 $date_sort_field = "last_published";
26 $date_sort_field = "last_marked";
28 $qfh_ret = queryFeedHeadlines($this->link
, $feed,
29 $limit, $view_mode, $is_cat, $search, $search_mode,
30 "$date_sort_field DESC", $offset, $owner_uid,
31 false, 0, false, true);
33 $result = $qfh_ret[0];
34 $feed_title = htmlspecialchars($qfh_ret[1]);
35 $feed_site_url = $qfh_ret[2];
36 $last_error = $qfh_ret[3];
38 $feed_self_url = get_self_url_prefix() .
39 "/public.php?op=rss&id=-2&key=" .
40 get_feed_access_key($this->link
, -2, false, $owner_uid);
42 if (!$feed_site_url) $feed_site_url = get_self_url_prefix();
44 if ($format == 'atom') {
45 $tpl = new MiniTemplator
;
47 $tpl->readTemplateFromFile("templates/generated_feed.txt");
49 $tpl->setVariable('FEED_TITLE', $feed_title, true);
50 $tpl->setVariable('VERSION', VERSION
, true);
51 $tpl->setVariable('FEED_URL', htmlspecialchars($feed_self_url), true);
53 if (PUBSUBHUBBUB_HUB
&& $feed == -2) {
54 $tpl->setVariable('HUB_URL', htmlspecialchars(PUBSUBHUBBUB_HUB
), true);
55 $tpl->addBlock('feed_hub');
58 $tpl->setVariable('SELF_URL', htmlspecialchars(get_self_url_prefix()), true);
60 while ($line = db_fetch_assoc($result)) {
61 $tpl->setVariable('ARTICLE_ID', htmlspecialchars($line['link']), true);
62 $tpl->setVariable('ARTICLE_LINK', htmlspecialchars($line['link']), true);
63 $tpl->setVariable('ARTICLE_TITLE', htmlspecialchars($line['title']), true);
64 $tpl->setVariable('ARTICLE_EXCERPT',
65 truncate_string(strip_tags($line["content_preview"]), 100, '...'), true);
67 $content = sanitize($this->link
, $line["content_preview"], false, $owner_uid);
70 $content = "<div style=\"$note_style\">Article note: " . $line['note'] . "</div>" .
74 $tpl->setVariable('ARTICLE_CONTENT', $content, true);
76 $tpl->setVariable('ARTICLE_UPDATED_ATOM',
77 date('c', strtotime($line["updated"])), true);
78 $tpl->setVariable('ARTICLE_UPDATED_RFC822',
79 date(DATE_RFC822
, strtotime($line["updated"])), true);
81 $tpl->setVariable('ARTICLE_AUTHOR', htmlspecialchars($line['author']), true);
83 $tags = get_article_tags($this->link
, $line["id"], $owner_uid);
85 foreach ($tags as $tag) {
86 $tpl->setVariable('ARTICLE_CATEGORY', htmlspecialchars($tag), true);
87 $tpl->addBlock('category');
90 $enclosures = get_article_enclosures($this->link
, $line["id"]);
92 foreach ($enclosures as $e) {
93 $type = htmlspecialchars($e['content_type']);
94 $url = htmlspecialchars($e['content_url']);
95 $length = $e['duration'];
97 $tpl->setVariable('ARTICLE_ENCLOSURE_URL', $url, true);
98 $tpl->setVariable('ARTICLE_ENCLOSURE_TYPE', $type, true);
99 $tpl->setVariable('ARTICLE_ENCLOSURE_LENGTH', $length, true);
101 $tpl->addBlock('enclosure');
104 $tpl->addBlock('entry');
109 $tpl->addBlock('feed');
110 $tpl->generateOutputToString($tmp);
112 if (@!$_REQUEST["noxml"]) {
113 header("Content-Type: text/xml; charset=utf-8");
115 header("Content-Type: text/plain; charset=utf-8");
119 } else if ($format == 'json') {
123 $feed['title'] = $feed_title;
124 $feed['version'] = VERSION
;
125 $feed['feed_url'] = $feed_self_url;
127 if (PUBSUBHUBBUB_HUB
&& $feed == -2) {
128 $feed['hub_url'] = PUBSUBHUBBUB_HUB
;
131 $feed['self_url'] = get_self_url_prefix();
133 $feed['articles'] = array();
135 while ($line = db_fetch_assoc($result)) {
138 $article['id'] = $line['link'];
139 $article['link'] = $line['link'];
140 $article['title'] = $line['title'];
141 $article['excerpt'] = truncate_string(strip_tags($line["content_preview"]), 100, '...');
142 $article['content'] = sanitize($this->link
, $line["content_preview"], false, $owner_uid);
143 $article['updated'] = date('c', strtotime($line["updated"]));
145 if ($line['note']) $article['note'] = $line['note'];
146 if ($article['author']) $article['author'] = $line['author'];
148 $tags = get_article_tags($this->link
, $line["id"], $owner_uid);
150 if (count($tags) > 0) {
151 $article['tags'] = array();
153 foreach ($tags as $tag) {
154 array_push($article['tags'], $tag);
158 $enclosures = get_article_enclosures($this->link
, $line["id"]);
160 if (count($enclosures) > 0) {
161 $article['enclosures'] = array();
163 foreach ($enclosures as $e) {
164 $type = $e['content_type'];
165 $url = $e['content_url'];
166 $length = $e['duration'];
168 array_push($article['enclosures'], array("url" => $url, "type" => $type, "length" => $length));
172 array_push($feed['articles'], $article);
175 header("Content-Type: text/json; charset=utf-8");
176 print json_encode($feed);
179 header("Content-Type: text/plain; charset=utf-8");
180 print json_encode(array("error" => array("message" => "Unknown format")));
184 function getUnread() {
185 $login = db_escape_string($this->link
, $_REQUEST["login"]);
186 $fresh = $_REQUEST["fresh"] == "1";
188 $result = db_query($this->link
, "SELECT id FROM ttrss_users WHERE login = '$login'");
190 if (db_num_rows($result) == 1) {
191 $uid = db_fetch_result($result, 0, "id");
193 print getGlobalUnread($this->link
, $uid);
197 print getFeedArticles($this->link
, -3, false, true, $uid);
201 print "-1;User not found";
206 function getProfiles() {
207 $login = db_escape_string($this->link
, $_REQUEST["login"]);
209 $result = db_query($this->link
, "SELECT * FROM ttrss_settings_profiles,ttrss_users
210 WHERE ttrss_users.id = ttrss_settings_profiles.owner_uid AND login = '$login' ORDER BY title");
212 print "<select dojoType='dijit.form.Select' style='width : 220px; margin : 0px' name='profile'>";
214 print "<option value='0'>" . __("Default profile") . "</option>";
216 while ($line = db_fetch_assoc($result)) {
218 $title = $line["title"];
220 print "<option value='$id'>$title</option>";
227 $mode = db_escape_string($this->link
, $_REQUEST['hub_mode']);
228 $feed_id = (int) db_escape_string($this->link
, $_REQUEST['id']);
229 $feed_url = db_escape_string($this->link
, $_REQUEST['hub_topic']);
231 if (!PUBSUBHUBBUB_ENABLED
) {
232 header('HTTP/1.0 404 Not Found');
233 echo "404 Not found";
237 // TODO: implement hub_verifytoken checking
239 $result = db_query($this->link
, "SELECT feed_url FROM ttrss_feeds
240 WHERE id = '$feed_id'");
242 if (db_num_rows($result) != 0) {
244 $check_feed_url = db_fetch_result($result, 0, "feed_url");
246 if ($check_feed_url && ($check_feed_url == $feed_url ||
!$feed_url)) {
247 if ($mode == "subscribe") {
249 db_query($this->link
, "UPDATE ttrss_feeds SET pubsub_state = 2
250 WHERE id = '$feed_id'");
252 print $_REQUEST['hub_challenge'];
255 } else if ($mode == "unsubscribe") {
257 db_query($this->link
, "UPDATE ttrss_feeds SET pubsub_state = 0
258 WHERE id = '$feed_id'");
260 print $_REQUEST['hub_challenge'];
265 // Received update ping, schedule feed update.
266 //update_rss_feed($this->link, $feed_id, true, true);
268 db_query($this->link
, "UPDATE ttrss_feeds SET
269 last_update_started = '1970-01-01',
270 last_updated = '1970-01-01' WHERE id = '$feed_id'");
274 header('HTTP/1.0 404 Not Found');
275 echo "404 Not found";
278 header('HTTP/1.0 404 Not Found');
279 echo "404 Not found";
286 header("Location: index.php");
290 $uuid = db_escape_string($this->link
, $_REQUEST["key"]);
292 $result = db_query($this->link
, "SELECT ref_id, owner_uid FROM ttrss_user_entries WHERE
295 if (db_num_rows($result) != 0) {
296 header("Content-Type: text/html");
298 $id = db_fetch_result($result, 0, "ref_id");
299 $owner_uid = db_fetch_result($result, 0, "owner_uid");
301 $article = format_article($this->link
, $id, false, true, $owner_uid);
303 print_r($article['content']);
306 print "Article not found.";
312 $feed = db_escape_string($this->link
, $_REQUEST["id"]);
313 $key = db_escape_string($this->link
, $_REQUEST["key"]);
314 $is_cat = $_REQUEST["is_cat"] != false;
315 $limit = (int)db_escape_string($this->link
, $_REQUEST["limit"]);
316 $offset = (int)db_escape_string($this->link
, $_REQUEST["offset"]);
318 $search = db_escape_string($this->link
, $_REQUEST["q"]);
319 $search_mode = db_escape_string($this->link
, $_REQUEST["smode"]);
320 $view_mode = db_escape_string($this->link
, $_REQUEST["view-mode"]);
322 $format = db_escape_string($this->link
, $_REQUEST['format']);
324 if (!$format) $format = 'atom';
326 if (SINGLE_USER_MODE
) {
327 authenticate_user($this->link
, "admin", null);
333 $result = db_query($this->link
, "SELECT owner_uid FROM
334 ttrss_access_keys WHERE access_key = '$key' AND feed_id = '$feed'");
336 if (db_num_rows($result) == 1)
337 $owner_id = db_fetch_result($result, 0, "owner_uid");
341 $this->generate_syndicated_feed($owner_id, $feed, $is_cat, $limit,
342 $offset, $search, $search_mode, $view_mode, $format);
344 header('HTTP/1.1 403 Forbidden');
348 function globalUpdateFeeds() {
349 include "rssfuncs.php";
350 // Update all feeds needing a update.
351 update_daemon_common($this->link
, 0, true, false);
354 function sharepopup() {
355 if (SINGLE_USER_MODE
) {
356 login_sequence($this->link
);
359 header('Content-Type: text/html; charset=utf-8');
362 <title>Tiny Tiny RSS</title>
363 <link rel=\"stylesheet\" type=\"text/css\" href=\"utility.css\">
364 <script type=\"text/javascript\" src=\"lib/prototype.js\"></script>
365 <script type=\"text/javascript\" src=\"lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls\"></script>
366 <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>
368 <body id='sharepopup'>";
370 $action = $_REQUEST["action"];
372 if ($_SESSION["uid"]) {
374 if ($action == 'share') {
376 $title = db_escape_string($this->link
, strip_tags($_REQUEST["title"]));
377 $url = db_escape_string($this->link
, strip_tags($_REQUEST["url"]));
378 $content = db_escape_string($this->link
, strip_tags($_REQUEST["content"]));
379 $labels = db_escape_string($this->link
, strip_tags($_REQUEST["labels"]));
381 Article
::create_published_article($this->link
, $title, $url, $content, $labels,
384 print "<script type='text/javascript'>";
385 print "window.close();";
389 $title = htmlspecialchars($_REQUEST["title"]);
390 $url = htmlspecialchars($_REQUEST["url"]);
394 <table height
='100%' width
='100%'><tr
><td colspan
='2'>
395 <h1
><?php
echo __("Share with Tiny Tiny RSS") ?
></h1
>
398 <form id
='share_form' name
='share_form'>
400 <input type
="hidden" name
="op" value
="sharepopup">
401 <input type
="hidden" name
="action" value
="share">
403 <tr
><td align
='right'><?php
echo __("Title:") ?
></td
>
404 <td width
='80%'><input name
='title' value
="<?php echo $title ?>"></td
></tr
>
405 <tr
><td align
='right'><?php
echo __("URL:") ?
></td
>
406 <td
><input name
='url' value
="<?php echo $url ?>"></td
></tr
>
407 <tr
><td align
='right'><?php
echo __("Content:") ?
></td
>
408 <td
><input name
='content' value
=""></td
></tr
>
409 <tr
><td align
='right'><?php
echo __("Labels:") ?
></td
>
410 <td
><input name
='labels' id
="labels_value"
411 placeholder
='Alpha, Beta, Gamma' value
="">
415 <div
class="autocomplete" id
="labels_choices"
416 style
="display : block"></div
></td
></tr
>
418 <script type
='text/javascript'>document
.forms
[0].title
.focus();</script
>
420 <script type
='text/javascript'>
421 new Ajax
.Autocompleter('labels_value', 'labels_choices',
422 "backend.php?op=rpc&method=completeLabels",
423 { tokens
: ',', paramName
: "search" });
427 <div style
='float : right' class='insensitive-small'>
428 <?php
echo __("Shared article will appear in the Published feed.") ?
>
430 <button type
="submit"><?php
echo __('Share') ?
></button
>
431 <button onclick
="return window.close()"><?php
echo __('Cancel') ?
></button
>
443 $return = urlencode($_SERVER["REQUEST_URI"])
446 <form action
="public.php?return=<?php echo $return ?>"
447 method
="POST" id
="loginForm" name
="loginForm">
449 <input type
="hidden" name
="op" value
="login">
451 <table height
='100%' width
='100%'><tr
><td colspan
='2'>
452 <h1
><?php
echo __("Not logged in") ?
></h1
></td
></tr
>
454 <tr
><td align
="right"><?php
echo __("Login:") ?
></td
>
455 <td align
="right"><input name
="login"
456 value
="<?php echo $_SESSION["fake_login
"] ?>"></td
></tr
>
457 <tr
><td align
="right"><?php
echo __("Password:") ?
></td
>
458 <td align
="right"><input type
="password" name
="password"
459 value
="<?php echo $_SESSION["fake_password
"] ?>"></td
></tr
>
460 <tr
><td align
="right"><?php
echo __("Language:") ?
></td
>
463 print_select_hash("language", $_COOKIE["ttrss_lang"], get_translations(),
464 "style='width : 100%''");
469 <button type
="submit">
470 <?php
echo __('Log in') ?
></button
>
472 <button onclick
="return window.close()">
473 <?php
echo __('Cancel') ?
></button
>
484 $_SESSION["prefs_cache"] = array();
486 if (!SINGLE_USER_MODE
) {
488 $login = db_escape_string($this->link
, $_POST["login"]);
489 $password = $_POST["password"];
490 $remember_me = $_POST["remember_me"];
492 if (authenticate_user($this->link
, $login, $password)) {
493 $_POST["password"] = "";
495 $_SESSION["language"] = $_POST["language"];
496 $_SESSION["ref_schema_version"] = get_schema_version($this->link
, true);
497 $_SESSION["bw_limit"] = !!$_POST["bw_limit"];
499 if ($_POST["profile"]) {
501 $profile = db_escape_string($this->link
, $_POST["profile"]);
503 $result = db_query($this->link
, "SELECT id FROM ttrss_settings_profiles
504 WHERE id = '$profile' AND owner_uid = " . $_SESSION["uid"]);
506 if (db_num_rows($result) != 0) {
507 $_SESSION["profile"] = $profile;
508 $_SESSION["prefs_cache"] = array();
512 $_SESSION["login_error_msg"] = __("Incorrect username or password");
515 if ($_REQUEST['return']) {
516 header("Location: " . $_REQUEST['return']);
518 header("Location: " . SELF_URL_PATH
);
523 function subscribe() {
524 if (SINGLE_USER_MODE
) {
525 login_sequence($this->link
);
528 if ($_SESSION["uid"]) {
530 $feed_url = db_escape_string($this->link
, trim($_REQUEST["feed_url"]));
532 header('Content-Type: text/html; charset=utf-8');
535 <title>Tiny Tiny RSS</title>
536 <link rel=\"stylesheet\" type=\"text/css\" href=\"utility.css\">
537 <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>
540 <img class=\"floatingLogo\" src=\"images/logo_small.png\"
541 alt=\"Tiny Tiny RSS\"/>
542 <h1>".__("Subscribe to feed...")."</h1><div class='content'>";
544 $rc = subscribe_to_feed($this->link
, $feed_url);
546 switch ($rc['code']) {
548 print_warning(T_sprintf("Already subscribed to <b>%s</b>.", $feed_url));
551 print_notice(T_sprintf("Subscribed to <b>%s</b>.", $feed_url));
554 print_error(T_sprintf("Could not subscribe to <b>%s</b>.", $feed_url));
557 print_error(T_sprintf("No feeds found in <b>%s</b>.", $feed_url));
560 print_notice(__("Multiple feed URLs found."));
561 $feed_urls = $rc["feeds"];
564 print_error(T_sprintf("Could not subscribe to <b>%s</b>.<br>Can't download the Feed URL.", $feed_url));
570 print "<form action=\"public.php\">";
571 print "<input type=\"hidden\" name=\"op\" value=\"subscribe\">";
573 print "<select name=\"feed_url\">";
575 foreach ($feed_urls as $url => $name) {
576 $url = htmlspecialchars($url);
577 $name = htmlspecialchars($name);
579 print "<option value=\"$url\">$name</option>";
582 print "<input type=\"submit\" value=\"".__("Subscribe to selected feed").
588 $tp_uri = get_self_url_prefix() . "/prefs.php";
589 $tt_uri = get_self_url_prefix();
591 if ($rc['code'] <= 2){
592 $result = db_query($this->link
, "SELECT id FROM ttrss_feeds WHERE
593 feed_url = '$feed_url' AND owner_uid = " . $_SESSION["uid"]);
595 $feed_id = db_fetch_result($result, 0, "id");
602 print "<form method=\"GET\" style='display: inline'
604 <input type=\"hidden\" name=\"tab\" value=\"feedConfig\">
605 <input type=\"hidden\" name=\"method\" value=\"editFeed\">
606 <input type=\"hidden\" name=\"methodparam\" value=\"$feed_id\">
607 <input type=\"submit\" value=\"".__("Edit subscription options")."\">
611 print "<form style='display: inline' method=\"GET\" action=\"$tt_uri\">
612 <input type=\"submit\" value=\"".__("Return to Tiny Tiny RSS")."\">
615 print "</div></body></html>";
618 render_login_form($this->link
);
622 function subscribe2() {
623 $feed_url = db_escape_string($this->link
, trim($_REQUEST["feed_url"]));
624 $cat_id = db_escape_string($this->link
, $_REQUEST["cat_id"]);
625 $from = db_escape_string($this->link
, $_REQUEST["from"]);
627 /* only read authentication information from POST */
629 $auth_login = db_escape_string($this->link
, trim($_POST["auth_login"]));
630 $auth_pass = db_escape_string($this->link
, trim($_POST["auth_pass"]));
632 $rc = subscribe_to_feed($this->link
, $feed_url, $cat_id, $auth_login, $auth_pass);
636 print_notice(T_sprintf("Subscribed to <b>%s</b>.", $feed_url));
639 print_error(T_sprintf("Could not subscribe to <b>%s</b>.", $feed_url));
642 print_error(T_sprintf("No feeds found in <b>%s</b>.", $feed_url));
645 print_warning(T_sprintf("Already subscribed to <b>%s</b>.", $feed_url));
648 print_notice(__("Multiple feed URLs found."));
650 $feed_urls = get_feeds_from_html($feed_url);
653 print_error(T_sprintf("Could not subscribe to <b>%s</b>.<br>Can't download the Feed URL.", $feed_url));
658 print "<form action=\"backend.php\">";
659 print "<input type=\"hidden\" name=\"op\" value=\"pref-feeds\">";
660 print "<input type=\"hidden\" name=\"quiet\" value=\"1\">";
661 print "<input type=\"hidden\" name=\"method\" value=\"add\">";
663 print "<select name=\"feed_url\">";
665 foreach ($feed_urls as $url => $name) {
666 $url = htmlspecialchars($url);
667 $name = htmlspecialchars($name);
668 print "<option value=\"$url\">$name</option>";
671 print "<input type=\"submit\" value=\"".__("Subscribe to selected feed")."\">";
675 $tp_uri = get_self_url_prefix() . "/prefs.php";
676 $tt_uri = get_self_url_prefix();
679 $result = db_query($this->link
, "SELECT id FROM ttrss_feeds WHERE
680 feed_url = '$feed_url' AND owner_uid = " . $_SESSION["uid"]);
682 $feed_id = db_fetch_result($result, 0, "id");
690 print "<form method=\"GET\" style='display: inline'
692 <input type=\"hidden\" name=\"tab\" value=\"feedConfig\">
693 <input type=\"hidden\" name=\"method\" value=\"editFeed\">
694 <input type=\"hidden\" name=\"methodparam\" value=\"$feed_id\">
695 <input type=\"submit\" value=\"".__("Edit subscription options")."\">
699 print "<form style='display: inline' method=\"GET\" action=\"$tt_uri\">
700 <input type=\"submit\" value=\"".__("Return to Tiny Tiny RSS")."\">
703 print "</body></html>";
707 header("Content-Type: text/plain");
708 print json_encode(array("error" => array("code" => 7)));
711 function forgotpass() {
712 header('Content-Type: text/html; charset=utf-8');
715 <title>Tiny Tiny RSS</title>
716 <link rel=\"stylesheet\" type=\"text/css\" href=\"utility.css\">
717 <script type=\"text/javascript\" src=\"lib/prototype.js\"></script>
718 <script type=\"text/javascript\" src=\"lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls\"></script>
719 <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>
721 <body id='forgotpass'>";
723 print '<div class="floatingLogo"><img src="images/logo_small.png"></div>';
724 print "<h1>".__("Reset password")."</h1>";
725 print "<div class='content'>";
727 @$method = $_POST['method'];
730 $secretkey = uniqid();
731 $_SESSION["secretkey"] = $secretkey;
733 print "<form method='POST' action='public.php'>";
734 print "<input type='hidden' name='secretkey' value='$secretkey'>";
735 print "<input type='hidden' name='method' value='do'>";
736 print "<input type='hidden' name='op' value='forgotpass'>";
739 print "<label>".__("Login:")."</label>";
740 print "<input type='text' name='login' value='' required>";
744 print "<label>".__("Email:")."</label>";
745 print "<input type='email' name='email' value='' required>";
749 print "<label>".__("How much is two plus two:")."</label>";
750 print "<input type='text' name='test' value='' required>";
754 print "<button type='submit'>".__("Reset password")."</button>";
757 } else if ($method == 'do') {
759 $secretkey = $_POST["secretkey"];
760 $login = db_escape_string($this->link
, $_POST["login"]);
761 $email = db_escape_string($this->link
, $_POST["email"]);
762 $test = db_escape_string($this->link
, $_POST["test"]);
764 if (($test != 4 && $test != 'four') ||
!$email ||
!$login) {
765 print_error(__('Some of the required form parameters are missing or incorrect.'));
767 print "<p><a href=\"public.php?op=forgotpass\">".__("Go back")."</a></p>";
769 } else if ($_SESSION["secretkey"] == $secretkey) {
771 $result = db_query($this->link
, "SELECT id FROM ttrss_users
772 WHERE login = '$login' AND email = '$email'");
774 if (db_num_rows($result) != 0) {
775 $id = db_fetch_result($result, 0, "id");
777 Pref_Users
::resetUserPassword($this->link
, $id, false);
779 print "<p>".__("Completed.")."</p>";
782 print_error(__("Sorry, login and email combination not found."));
783 print "<p><a href=\"public.php?op=forgotpass\">".__("Go back")."</a></p>";
787 print_error(__("Form secret key incorrect. Please enable cookies and try again."));
788 print "<p><a href=\"public.php?op=forgotpass\">".__("Go back")."</a></p>";