]> git.mxchange.org Git - friendica.git/blobdiff - mod/probe.php
Fix profile wrong DISTINCT + ORDER BY
[friendica.git] / mod / probe.php
index fcf83e76030cb4e2dcdaac90161ea73370433b90..8c951a7fcfd62f63f9c3fbe5bda5a02af735ad65 100644 (file)
@@ -2,8 +2,14 @@
 
 require_once('include/Scrape.php');
 
-if(! function_exists('probe_content')) {
-function probe_content(&$a) {
+function probe_content(App $a) {
+
+       if (!local_user()) {
+               http_status_exit(403,
+                               array("title" => t("Public access denied."),
+                                       "description" => t("Only logged in users are permitted to perform a probing.")));
+               killme();
+       }
 
        $o .= '<h3>Probe Diagnostic</h3>';
 
@@ -23,4 +29,3 @@ function probe_content(&$a) {
        }
        return $o;
 }
-}