diff --git a/index.php b/index.php
index cbdb9a3..d95c16c 100644
--- a/index.php
+++ b/index.php
@@ -1,36 +1,41 @@
(round($pagesindexed/10,0,PHP_ROUND_HALF_DOWN)+1) or $pp<0){
echo "".$pp."
";
+// $send="Line ".__LINE__." Possible DoS attack. ?pp=".$pp." from ".$_SERVER['HTTP_USER_AGENT'];
+// send_group("TidyWeb","system@lobby.mpaq.org",$send,"mpaq.org");
header("Refresh:0; url=/bot_trap/?pp=".$pp);
exit;
}
}else{$pp=1;}
if (isset($_GET['qq'])){
$quary=$qq=trim($_GET['qq']);
-// $quary=strtolower($qq);
-// $quary=trim(htmlentities($quary,ENT_QUOTES|ENT_HTML5,'UTF-8',true));
+ $quary=trim(htmlentities($quary,ENT_QUOTES|ENT_HTML5,'UTF-8',true));
}
$pages=paging('/',$pp,$pagesindexed,$qq,$offset);
$sql="SELECT * FROM tidysearch.sites WHERE sites.hits>0;";
$ret=pg_query($con,$sql);
-while($row=pg_fetch_array($ret)){if (isset($row['hits'])){$THits=$THits+$row['hits'];}}
+while($row=pg_fetch_array($ret)){
+ if (isset($row['hits'])){
+ $THits=$THits+$row['hits'];
+ }
+}
$Websites=pg_num_rows(pg_query($con,$sql));
$SITE="TidySearch";
$keywords="Fediverse, Decentralized, Federated, Search, Engine, MPAQ, ".$SITE."";
@@ -43,7 +48,7 @@ echo "
|
+ Make a recommendation to our list. The more you can tell us, the easier it will be to include: + + |