Commit 22c9ec78 authored by Franco Fichtner's avatar Franco Fichtner

states: just how many pages are there anyway?

parent b44934e5
...@@ -152,14 +152,18 @@ ...@@ -152,14 +152,18 @@
<LimiterInfo VisibleName="Limiter Info" url="/diag_limiter_info.php"/> <LimiterInfo VisibleName="Limiter Info" url="/diag_limiter_info.php"/>
<pfInfo url="/diag_pf_info.php" VisibleName="pfInfo"/> <pfInfo url="/diag_pf_info.php" VisibleName="pfInfo"/>
<pfTop url="/diag_system_pftop.php" VisibleName="pfTop"/> <pfTop url="/diag_system_pftop.php" VisibleName="pfTop"/>
<Tables url="/diag_tables.php"> <pfTables url="/diag_tables.php">
<TablesDetails url="/diag_tables.php*"/> <Details url="/diag_tables.php*"/>
</Tables> </pfTables>
<Sockets url="/diag_sockets.php"> <Sockets url="/diag_sockets.php">
<SocketsDetails url="/diag_sockets.php?*"/> <SocketsDetails url="/diag_sockets.php?*"/>
</Sockets> </Sockets>
<StatesSummary VisibleName="States Summary" url="/diag_states_summary.php"/>
<StatesDump VisibleName="States Dump" url="/diag_dump_states.php"/> <StatesDump VisibleName="States Dump" url="/diag_dump_states.php"/>
<StatesReset VisibleName="States Reset" url="/diag_resetstate.php"/>
<StatesSummary VisibleName="States Summary" url="/diag_states_summary.php"/>
<StatesTrackSource VisibleName="Source Tracking" url="/diag_dump_states_sources.php">
<Filter url="/diag_dump_states_sources.php*"/>
</StatesTrackSource>
</Diagnostics> </Diagnostics>
</Firewall> </Firewall>
<Services order="4" cssClass="glyphicon glyphicon-cog"> <Services order="4" cssClass="glyphicon glyphicon-cog">
......
<?php <?php
/* /*
Copyright (C) 2014 Deciso B.V. Copyright (C) 2014 Deciso B.V.
Copyright (C) 2005-2009 Scott Ullrich Copyright (C) 2005-2009 Scott Ullrich
...@@ -109,19 +110,8 @@ include("head.inc"); ...@@ -109,19 +110,8 @@ include("head.inc");
<section class="page-content-main"> <section class="page-content-main">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<section class="col-xs-12"> <section class="col-xs-12">
<div class="tab-content content-box col-xs-12">
<?php
$tab_array = array();
$tab_array[0] = array(gettext("States"), true, "diag_dump_states.php");
$tab_array[1] = array(gettext("Reset states"), false, "diag_resetstate.php");
display_top_tabs($tab_array);
?>
<div class="tab-content content-box col-xs-12">
<form action="<?=$_SERVER['SCRIPT_NAME'];?>" method="post" name="iform"> <form action="<?=$_SERVER['SCRIPT_NAME'];?>" method="post" name="iform">
<?php <?php
$current_statecount=`pfctl -si | grep "current entries" | awk '{ print $3 }'`; $current_statecount=`pfctl -si | grep "current entries" | awk '{ print $3 }'`;
......
<?php <?php
/* /*
Copyright (C) 2014 Deciso B.V. Copyright (C) 2014 Deciso B.V.
Copyright (C) 2005-2009 Scott Ullrich Copyright (C) 2005-2009 Scott Ullrich
...@@ -92,17 +93,6 @@ include("head.inc"); ...@@ -92,17 +93,6 @@ include("head.inc");
</script> </script>
<table class="table table-striped" width="100%" border="0" cellpadding="0" cellspacing="0"> <table class="table table-striped" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<?php
$tab_array = array();
$tab_array[] = array(gettext("States"), false, "diag_dump_states.php");
$tab_array[] = array(gettext("Source Tracking"), true, "diag_dump_states_sources.php");
$tab_array[] = array(gettext("Reset States"), false, "diag_resetstate.php");
display_top_tabs($tab_array);
?>
</td>
</tr>
<tr> <tr>
<td> <td>
<div id="mainarea"> <div id="mainarea">
......
<?php <?php
/* /*
Copyright (C) 2014 Deciso B.V. Copyright (C) 2014 Deciso B.V.
Copyright (C) 2004-2009 Scott Ullrich Copyright (C) 2004-2009 Scott Ullrich
...@@ -52,7 +53,7 @@ if ($_POST) { ...@@ -52,7 +53,7 @@ if ($_POST) {
} }
} }
$pgtitle = array(gettext("Diagnostics"), gettext("Reset state")); $pgtitle = array(gettext('Diagnostics'), gettext('State Reset'));
include("head.inc"); include("head.inc");
?> ?>
...@@ -64,31 +65,13 @@ include("head.inc"); ...@@ -64,31 +65,13 @@ include("head.inc");
<section class="page-content-main"> <section class="page-content-main">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<section class="col-xs-12"> <section class="col-xs-12">
<?php
$tab_array = array();
$tab_array[0] = array(gettext("States"), false, "diag_dump_states.php");
$tab_array[1] = array(gettext("Reset states"), true, "diag_resetstate.php");
display_top_tabs($tab_array);
?>
<div class="tab-content content-box col-xs-12"> <div class="tab-content content-box col-xs-12">
<div class="container-fluid tab-content"> <div class="container-fluid tab-content">
<div class="tab-pane active" id="system"> <div class="tab-pane active" id="system">
<?php if (isset($input_errors) && count($input_errors) > 0) print_input_errors($input_errors); ?> <?php if (isset($input_errors) && count($input_errors) > 0) print_input_errors($input_errors); ?>
<?php if (isset($savemsg)) print_info_box($savemsg); ?> <?php if (isset($savemsg)) print_info_box($savemsg); ?>
<form action="<?=$_SERVER['REQUEST_URI'];?>" method="post"> <form action="<?=$_SERVER['REQUEST_URI'];?>" method="post">
<input name="statetable" type="checkbox" id="statetable" value="yes" checked="checked" /> <input name="statetable" type="checkbox" id="statetable" value="yes" checked="checked" />
<strong><?= gettext("Firewall state table"); ?></strong><br /> <strong><?= gettext("Firewall state table"); ?></strong><br />
<span class="vexpl"><br /> <span class="vexpl"><br />
...@@ -119,10 +102,7 @@ include("head.inc"); ...@@ -119,10 +102,7 @@ include("head.inc");
</p> </p>
<?php endif; ?> <?php endif; ?>
<input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Reset"); ?>" /> <input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Reset"); ?>" />
</form> </form>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -73,7 +73,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -73,7 +73,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} }
} }
$pgtitle = array(gettext("Diagnostics"), gettext("Tables")); $pgtitle = array(gettext("Diagnostics"), gettext("pfTables"));
$shortcut_section = "aliases"; $shortcut_section = "aliases";
// fetch list of tables and content of selected table // fetch list of tables and content of selected table
$tables = json_decode(configd_run("filter list tables json")); $tables = json_decode(configd_run("filter list tables json"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment