summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_captiveportal.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-05-09 04:16:06 +0000
committerErmal Luçi <eri@pfsense.org>2009-05-09 04:16:06 +0000
commitf80a6148bc41a5db7518a7f2d4909545f7ca28c4 (patch)
treea3f63dd10ee4cdb9a123e005754f72eef00d0b8d /usr/local/www/status_captiveportal.php
parent761858b179e2017f06e0cf20ebd06a6042642a7e (diff)
downloadpfsense-f80a6148bc41a5db7518a7f2d4909545f7ca28c4.zip
pfsense-f80a6148bc41a5db7518a7f2d4909545f7ca28c4.tar.gz
The other half of CP locks conversion to new locking functions.
Diffstat (limited to 'usr/local/www/status_captiveportal.php')
-rwxr-xr-xusr/local/www/status_captiveportal.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/status_captiveportal.php b/usr/local/www/status_captiveportal.php
index adfcc0f..e83e920 100755
--- a/usr/local/www/status_captiveportal.php
+++ b/usr/local/www/status_captiveportal.php
@@ -64,7 +64,7 @@ function clientcmp($a, $b) {
}
$cpdb = array();
-captiveportal_lock();
+$cpdblck = lock('captiveportal');
$fp = @fopen("{$g['vardb_path']}/captiveportal.db","r");
if ($fp) {
@@ -94,7 +94,7 @@ if ($fp) {
usort($cpdb, "clientcmp");
}
}
-captiveportal_unlock();
+unlock($cpdblck);
?>
<table class="sortable" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
OpenPOWER on IntegriCloud