Revision f57e4181
Added by Renato Botelho about 12 years ago
usr/local/www/status_captiveportal.php | ||
---|---|---|
59 | 59 |
$cpdb = array(); |
60 | 60 |
if (file_exists("{$g['vardb_path']}/captiveportal.db")) { |
61 | 61 |
$captiveportallck = lock('captiveportaldb'); |
62 |
$cpcontents = file("/var/db/captiveportal.db", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
|
|
62 |
$cpcontents = file("{$g['vardb_path']}/captiveportal.db", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
|
|
63 | 63 |
unlock($captiveportallck); |
64 | 64 |
} else |
65 | 65 |
$cpcontents = array(); |
Also available in: Unified diff
Replace hardcoded path by vardb_path