From 335944add88f487bfcc9f2252d24ec2a8200f06f Mon Sep 17 00:00:00 2001 From: pezcurrel Date: Thu, 22 Dec 2022 07:51:51 +0100 Subject: [PATCH] =?UTF-8?q?Removed=20=E2=80=9Cminimum=20number=20of=20know?= =?UTF-8?q?n=20instances=E2=80=9D=20from=20criteria,=20because=20domain=5F?= =?UTF-8?q?count=20is=20gone=20from=20/api/v2/instance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/site/instances.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/web/site/instances.php b/web/site/instances.php index 496c9e1..6b2185b 100644 --- a/web/site/instances.php +++ b/web/site/instances.php @@ -43,8 +43,6 @@ $maxudef=30000; $maxumax=10000000000; $minaudef=10; $minaumax=10000000; -$minkidef=500; -$minkimax=100000; echo('
@@ -119,7 +117,6 @@ function ckadvcri() { if (document.getElementById("minu").value!='.$minudef.' || document.getElementById("maxu").value!='.$maxudef.' || document.getElementById("minau").value!='.$minaudef.' || - document.getElementById("minki").value!='.$minkidef.' || document.getElementById("cbnoxious").checked==false || document.getElementById("cbcreg").checked==false || document.getElementById("cbappr").checked==true || @@ -138,7 +135,6 @@ function endisadvcri() { document.getElementById("minu").value=""; document.getElementById("maxu").value=""; document.getElementById("minau").value=""; - document.getElementById("minki").value=""; document.getElementById("cbnoxious").checked=false; document.getElementById("noxious").value=0; document.getElementById("cbcreg").checked=false; @@ -151,7 +147,6 @@ function endisadvcri() { document.getElementById("minu").value='.$minudef.'; document.getElementById("maxu").value='.$maxudef.'; document.getElementById("minau").value='.$minaudef.'; - document.getElementById("minki").value='.$minkidef.'; document.getElementById("cbnoxious").checked=true; document.getElementById("noxious").value=1; document.getElementById("cbcreg").checked=true; @@ -304,7 +299,6 @@ ckgnum('minu',$minudef,$minumax); ckgnum('maxu',$maxudef,$maxumax); if (is_int($_GET['maxu']) && is_int($_GET['minu']) && $_GET['maxu']<$_GET['minu']) $_GET['maxu']=$_GET['minu']; ckgnum('minau',$minaudef,$minaumax); -ckgnum('minki',$minkidef,$minkimax); $order=array( 'rand'=>array('t'=>_('Random, recommended first'),'q'=>'Instances.Priority DESC, Instances.RPos ASC'), @@ -314,7 +308,6 @@ $order=array( 'tusersa'=>array('t'=>_('By number of users, ascending'),'q'=>'Instances.UserCount ASC'), 'tusersd'=>array('t'=>_('By number of users, descending'),'q'=>'Instances.UserCount DESC'), 'ausersd'=>array('t'=>_('By number of active users, descending'),'q'=>'Instances.ActiveUsersMonth DESC'), - 'kinstsd'=>array('t'=>_('By number of known instances, descending'),'q'=>'Instances.DomainCount DESC'), 'charsd'=>array('t'=>_('By maximum number of characters per toot, descending'),'q'=>'Instances.MaxTootChars DESC'), // 'open'=>array('t'=>_('Prima quelle con iscriz. aperte'),'q'=>'Instances.RegOpen DESC, Instances.RegReqApproval ASC'), // 'alph'=>array('t'=>_('Alfabetico'),'q'=>'Instances.URI ASC'), @@ -343,7 +336,6 @@ echo('
-
'.N); @@ -386,10 +378,6 @@ echo('
-
-
-
-
@@ -475,7 +463,6 @@ if ($_GET['desc']!='') $wheres[]='(Instances.URI LIKE "%'.$buf.'%" OR Instances. if ($_GET['minu']!='') $wheres[]='Instances.UserCount>='.$_GET['minu']; if ($_GET['maxu']!='') $wheres[]='Instances.UserCount<='.$_GET['maxu']; if ($_GET['minau']!='') $wheres[]='Instances.ActiveUsersMonth>='.$_GET['minau']; -if ($_GET['minki']!='') $wheres[]='Instances.DomainCount>='.$_GET['minki']; $joins=implode(' ',$joins); $wheres='WHERE '.implode(' AND ',$wheres); if (!$single)