echo $cpzone;
    ?>
';">
									    <?php 
    $cpifaces = explode(",", $cpitem['interface']);
    foreach ($cpifaces as $cpiface) {
        echo convert_friendly_interface_to_friendly_descr($cpiface) . " ";
    }
    ?>
									  </td>
									  <td class="listr" ondblclick="document.location='services_captiveportal.php?zone=<?php 
    echo $cpzone;
    ?>
';">
                                            <?php 
    $cpdb = new OPNsense\CaptivePortal\DB($cpzone);
    echo $cpdb->countClients();
    ?>
									  </td>
									  <td class="listbg" ondblclick="document.location='services_captiveportal.php?zone=<?php 
    echo $cpzone;
    ?>
';">
									    <?php 
    echo htmlspecialchars($cpitem['descr']);
    ?>
&nbsp;
									  </td>
									  <td valign="middle" class="list nowrap">
									    <a href="services_captiveportal.php?zone=<?php 
    echo $cpzone;
Beispiel #2
0
if (count($a_cp) == 1) {
    $cpzone = current(array_keys($a_cp));
}
include "head.inc";
?>


<?php 
flush();
function clientcmp($a, $b)
{
    global $order;
    return strcmp($a[$order], $b[$order]);
}
if (!empty($cpzone)) {
    $cpdb_handle = new OPNsense\CaptivePortal\DB($cpzone);
    $cpclient_handle = new OPNsense\CaptivePortal\CPClient();
    $order = "";
    if ($_GET['order']) {
        if ($_GET['order'] == "ip") {
            $order = "ip";
        } else {
            if ($_GET['order'] == "mac") {
                $order = "mac";
            } else {
                if ($_GET['order'] == "user") {
                    $order = "username";
                }
            }
        }
    }