summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2010-01-09 00:58:24 -0500
committerChris Buechler <cmb@pfsense.org>2010-01-09 00:58:24 -0500
commitf07cb7ce38788e165a171bc8143386c909b87b7a (patch)
treedd30d2ccad4ea9b45934ce4ad43e2d557cc87f1a /usr/local
parent856722c390895c14130df1e035dd0973361f9c02 (diff)
downloadpfsense-f07cb7ce38788e165a171bc8143386c909b87b7a.zip
pfsense-f07cb7ce38788e165a171bc8143386c909b87b7a.tar.gz
fix Firewall Logs widget settings save.
Ticket #285
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/widgets/widgets/log.widget.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/local/www/widgets/widgets/log.widget.php b/usr/local/www/widgets/widgets/log.widget.php
index e22ba07..c46a6ab 100644
--- a/usr/local/www/widgets/widgets/log.widget.php
+++ b/usr/local/www/widgets/widgets/log.widget.php
@@ -30,7 +30,6 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
-
require_once("guiconfig.inc");
require_once("pfsense-utils.inc");
require_once("functions.inc");
@@ -41,6 +40,15 @@ require_once("filter_log.inc");
if($_POST['filterlogentries']) {
$config['widgets']['filterlogentries'] = $_POST['filterlogentries'];
write_config("Saved Filter Log Entries via Dashboard");
+ $filename = $_SERVER['HTTP_REFERER'];
+ if(headers_sent($file, $line)){
+ echo '<script type="text/javascript">';
+ echo 'window.location.href="'.$filename.'";';
+ echo '</script>';
+ echo '<noscript>';
+ echo '<meta http-equiv="refresh" content="0;url='.$filename.'" />';
+ echo '</noscript>';
+ }
Header("Location: /");
}
OpenPOWER on IntegriCloud