diff options
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index ebec2ec..5400e22 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -91,12 +91,15 @@ $d_ovpnclidirty_path = "/tmp/ovpn-cli.dirty"; /* used by progress bar */ $lastseen = "-1"; -if (file_exists($d_firmwarelock_path)) { - if (!$d_isfwfile) { - header("Location: system_firmware.php"); - exit; - } else { - return; +/* Some ajax scripts still need access to GUI */ +if(!$ignorefirmwarelock) { + if (file_exists($d_firmwarelock_path)) { + if (!$d_isfwfile) { + header("Location: system_firmware.php"); + exit; + } else { + return; + } } } |