Skip to content

Don't link to Allstar stats if connected node is private or EchoLink #24

@wd5m

Description

@wd5m

Some of us may include EchoLink and private nodes in astdb to display info. The getAstInfo function in astapi/nodeInfo.php currently includes the URL to stats.allstarlink.org for all nodes found in astdb. Since there are no stats for private or EchoLink nodes, this should not add the URL for those nodes.

I modified astapi/nodeInfo.php as follows:

            // Link to ASL stats page
            if($nodeNum >= 2000 && $nodeNum < 3000000) {
                    $info = "<a href=\"http://stats.allstarlink.org/stats/$nodeNum\" target=\"stats\">$info</a>";
            }

David McAnally, WD5M

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions