示例#1
0
}
if (isset($_REQUEST["network_id"])) {
    $network_id = $_REQUEST["network_id"];
    if ($network_id == "") {
        $network = null;
    } else {
        try {
            $network = Network::getObject($network_id);
        } catch (Exception $e) {
            $network = Network::getDefaultNetwork();
        }
    }
} else {
    $network = Network::getDefaultNetwork();
}
if ($network or NodeList::getAllowsNullNetwork($format)) {
    // Init node list type
    $nodeList = NodeList::getObject($format, $network);
    /**
     * XSLT support for Hotspot status page
     * ====================================
     *
     * If you want to enable XSLT support for the Hotspot status page enable this
     * value.
     *
     * Enabling it will let you you display hostpot status in any format.
     * http://server_ip/hotspot_status.php?format=XML&xslt=http://xslt_server/xslt/wifidog_status.xsl
     */
    // If a XSL transform stylesheet has been specified, try to use it.
    if ($format == "XML" && !empty($_REQUEST['xslt'])) {
        if (Dependency::check("xsl")) {