本文整理汇总了PHP中captiveportal_read_db函数的典型用法代码示例。如果您正苦于以下问题:PHP captiveportal_read_db函数的具体用法?PHP captiveportal_read_db怎么用?PHP captiveportal_read_db使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了captiveportal_read_db函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: captiveportal_disconnect_client
}
if (isset($cpzone) && !empty($cpzone) && isset($a_cp[$cpzone]['zoneid'])) {
$cpzoneid = $a_cp[$cpzone]['zoneid'];
}
if ($_GET['act'] == "del" && !empty($cpzone) && isset($cpzoneid) && isset($_GET['id'])) {
captiveportal_disconnect_client($_GET['id']);
header("Location: status_captiveportal.php?zone={$cpzone}");
exit;
}
function clientcmp($a, $b)
{
global $order;
return strcmp($a[$order], $b[$order]);
}
if (!empty($cpzone)) {
$cpdb = captiveportal_read_db();
if ($_GET['order']) {
if ($_GET['order'] == "ip") {
$order = 2;
} else {
if ($_GET['order'] == "mac") {
$order = 3;
} else {
if ($_GET['order'] == "user") {
$order = 4;
} else {
if ($_GET['order'] == "lastact") {
$order = 5;
} else {
$order = 0;
}
示例2: htmlspecialchars
?>
<tr>
<td><?php
echo htmlspecialchars($cpitem['zone']);
?>
</td>
<td>
<?php
$cpifaces = explode(",", $cpitem['interface']);
foreach ($cpifaces as $cpiface) {
echo convert_friendly_interface_to_friendly_descr($cpiface) . " ";
}
?>
</td>
<td><?php
echo count(captiveportal_read_db());
?>
</td>
<td><?php
echo htmlspecialchars($cpitem['descr']);
?>
</td>
<td>
<a class="fa fa-pencil" title="<?php
echo gettext("Edit zone");
?>
" href="services_captiveportal.php?zone=<?php
echo $cpzone;
?>
"></a>
<a class="fa fa-trash" title="<?php