/* pfSense_MODULE: filter */ ##|+PRIV ##|*IDENT=page-hidden-nolongerincluded ##|*NAME=Hidden: No longer included page ##|*DESCR=Allow access to the 'Hidden: No longer included' page. ##|*MATCH=diag_logs_filter_dynamic.php* ##|-PRIV require "guiconfig.inc"; require_once "filter_log.inc"; $filter_logfile = "{$g['varlog_path']}/filter.log"; /* Hardcode this. AJAX doesn't do so well with large numbers */ $nentries = 50; /* AJAX related routines */ handle_ajax($nentries, $nentries + 20); if ($_POST['clear']) { clear_log_file($filter_logfile); } $filterlog = conv_log_filter($filter_logfile, $nentries, $nentries + 100); $pgtitle = array(gettext("Status"), gettext("System logs"), gettext("Firewall (Dynamic View)")); $shortcut_section = "firewall"; include "head.inc"; ?> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include "fbegin.inc"; ?> <script type="text/javascript"> //<![CDATA[ lastsawtime = '<?php
<?php error_reporting(E_ALL); ini_set('display_errors', 1); ob_start(); // Output buffering - allows header rewrites to happen at anytime before flushing the buffer session_start(); require_once("incdir.php.inc"); require_once("config.php"); include_php_dir("includes",$debug); mysql_init(); handle_ajax(); document_header(); echo include_javascript_dir("js"); echo include_stylesheet_dir("stylesheets"); if (isset($_SESSION['validated']) && $_SESSION['validated']) { redirect("index.php"); } //Logged in users should not be at this page if (!isset($_POST['username']) AND !isset($_POST['password'])) { drawlogin(NULL); } //No action yet elseif (!$_POST['username'] OR !$_POST['password']) { drawlogin("missing"); } elseif (validate($_POST['username'],$_POST['password'])) { redirect("index.php");
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ require "guiconfig.inc"; /* In an effort to reduce duplicate code, many shared functions have been moved here. */ require_once "includes/log.inc.php"; $filter_logfile = "{$g['varlog_path']}/filter.log"; /* AJAX related routines */ handle_ajax(100, true); /* Hardcode this. AJAX doesn't do so well with large numbers */ $nentries = 50; if ($_POST['clear']) { exec("killall syslogd"); exec("/usr/sbin/clog -i -s 262144 /var/log/filter.log"); system_syslogd_start(); } $filterlog = conv_clog_filter($filter_logfile, $nentries, $nentries + 100); $pgtitle = "Durum: Sistem Kayıtları: Firewall"; include "head.inc"; ?> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include "fbegin.inc"; ?>