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/widgets/widgets/captive_portal_status.widget.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/widgets/widgets/captive_portal_status.widget.php')
-rw-r--r-- | usr/local/www/widgets/widgets/captive_portal_status.widget.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/widgets/widgets/captive_portal_status.widget.php b/usr/local/www/widgets/widgets/captive_portal_status.widget.php index c3b38ab..74ec780 100644 --- a/usr/local/www/widgets/widgets/captive_portal_status.widget.php +++ b/usr/local/www/widgets/widgets/captive_portal_status.widget.php @@ -55,7 +55,7 @@ function clientcmp($a, $b) { } $cpdb = array(); -captiveportal_lock(); +$wdgcplck = lock('captiveportal'); $fp = @fopen("{$g['vardb_path']}/captiveportal.db","r"); if ($fp) { @@ -83,7 +83,7 @@ if ($fp) { usort($cpdb, "clientcmp"); } } -captiveportal_unlock(); +unlock($wdgcplck); ?> <table class="sortable" name="sortabletable" id="sortabletable" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> |