diff options
author | Ermal <eri@pfsense.org> | 2010-12-22 20:27:36 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-12-22 20:33:12 +0000 |
commit | 95b71980a0148a2d701e5c7e0f08d18f9053154e (patch) | |
tree | 8b0e4dce5534b77f75268eaea9de4819b8b42d19 /usr/local | |
parent | 60e70198ae99618b9c21f0f09679a3dbcb4d0b05 (diff) | |
download | pfsense-95b71980a0148a2d701e5c7e0f08d18f9053154e.zip pfsense-95b71980a0148a2d701e5c7e0f08d18f9053154e.tar.gz |
Use correct lock.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/status_captiveportal.php | 2 | ||||
-rw-r--r-- | usr/local/www/widgets/widgets/captive_portal_status.widget.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/status_captiveportal.php b/usr/local/www/status_captiveportal.php index 3625e40..9560041 100755 --- a/usr/local/www/status_captiveportal.php +++ b/usr/local/www/status_captiveportal.php @@ -71,7 +71,7 @@ function clientcmp($a, $b) { $cpdb = array(); if (file_exists("{$g['vardb_path']}/captiveportal.db")) { - $captiveportallck = lock('captiveportal'); + $captiveportallck = lock('captiveportaldb'); $cpcontents = file("/var/db/captiveportal.db", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); unlock($captiveportallck); } else 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 1ca7007..21dcdfa 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(); if (file_exists("{$g['vardb_path']}/captiveportal.db")) { - $captiveportallck = lock('captiveportal'); + $captiveportallck = lock('captiveportaldb'); $cpcontents = file("{$g['vardb_path']}/captiveportal.db", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); unlock($captiveportallck); } else |