diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-05-09 04:16:06 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-05-09 04:16:06 +0000 |
commit | f80a6148bc41a5db7518a7f2d4909545f7ca28c4 (patch) | |
tree | a3f63dd10ee4cdb9a123e005754f72eef00d0b8d /usr/local/www/status_captiveportal.php | |
parent | 761858b179e2017f06e0cf20ebd06a6042642a7e (diff) | |
download | pfsense-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-x | usr/local/www/status_captiveportal.php | 4 |
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> |