X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsearch.php;h=9a70bcac908d179d3512761284bd8dd64b431a17;hb=da710999e032ad01aa91822f1b80de729e15de25;hp=b40fe07157f233f3b3825a0ed3675e3e2c51e9f0;hpb=5e60fa8210b502797209de770780d6d7ba81b86c;p=friendica.git diff --git a/mod/search.php b/mod/search.php index b40fe07157..9a70bcac90 100644 --- a/mod/search.php +++ b/mod/search.php @@ -4,7 +4,6 @@ */ use Friendica\App; -use Friendica\Content\Feature; use Friendica\Content\Nav; use Friendica\Content\Pager; use Friendica\Content\Text\HTML; @@ -18,7 +17,6 @@ use Friendica\Database\DBA; use Friendica\Model\Item; use Friendica\Util\Strings; -require_once 'include/conversation.php'; require_once 'mod/dirfind.php'; function search_saved_searches() { @@ -103,7 +101,7 @@ function search_content(App $a) { System::httpExit(403, ["title" => L10n::t("Public access denied."), "description" => L10n::t("Only logged in users are permitted to perform a search.")]); - killme(); + exit(); //notice(L10n::t('Public access denied.').EOL); //return; } @@ -128,7 +126,7 @@ function search_content(App $a) { System::httpExit(429, ["title" => L10n::t("Too Many Requests"), "description" => L10n::t("Only one search per minute is permitted for not logged in users.")]); - killme(); + exit(); } Cache::set("remote_search:".$remote, json_encode(["time" => time(), "accesses" => $resultdata->accesses + 1]), Cache::HOUR); } else