diff --git a/www/nodecontrol_list.php3 b/www/nodecontrol_list.php3 index b2c4e9025a1d46b458490f0c09a0f6c2084a67a5..3af57f23f66402e9a3ca1874a53b726534ed83f7 100644 --- a/www/nodecontrol_list.php3 +++ b/www/nodecontrol_list.php3 @@ -130,6 +130,11 @@ elseif (! strcmp($showtype, "wireless")) { $view = "Wireless"; } +elseif (preg_match("/^[-\w]+$/", $showtype)) { + $role = "(role='testnode')"; + $clause = "and (nt.type='$showtype')"; + $view = "only <a href=shownodetype.php3?node_type=$showtype>$showtype</a>"; +} else { $role = "(role='testnode')"; $clause = "and (nt.class='pc')"; diff --git a/www/shownodetype.php3 b/www/shownodetype.php3 index 78bc4acec3a201487b80472a4a58471bb13fb613..e0a21cd07496f105c08504bda90c7b23667ede2f 100644 --- a/www/shownodetype.php3 +++ b/www/shownodetype.php3 @@ -116,6 +116,8 @@ $query_result = if (mysql_num_rows($query_result)) { echo "<br> <center> + Nodes (<a href=nodecontrol_list.php3?showtype=$node_type>Show details</a>) + <br> <table class=nogrid cellspacing=0 border=0 cellpadding=5>\n"; $maxcolumns = 4;