Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
22c9ec78
Commit
22c9ec78
authored
Oct 13, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
states: just how many pages are there anyway?
parent
b44934e5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
50 deletions
+14
-50
Menu.xml
src/opnsense/mvc/app/models/OPNsense/Base/Menu/Menu.xml
+8
-4
diag_dump_states.php
src/www/diag_dump_states.php
+2
-12
diag_dump_states_sources.php
src/www/diag_dump_states_sources.php
+1
-11
diag_resetstate.php
src/www/diag_resetstate.php
+2
-22
diag_tables.php
src/www/diag_tables.php
+1
-1
No files found.
src/opnsense/mvc/app/models/OPNsense/Base/Menu/Menu.xml
View file @
22c9ec78
...
...
@@ -152,14 +152,18 @@
<LimiterInfo
VisibleName=
"Limiter Info"
url=
"/diag_limiter_info.php"
/>
<pfInfo
url=
"/diag_pf_info.php"
VisibleName=
"pfInfo"
/>
<pfTop
url=
"/diag_system_pftop.php"
VisibleName=
"pfTop"
/>
<Tables
url=
"/diag_tables.php"
>
<
Tables
Details
url=
"/diag_tables.php*"
/>
</Tables>
<
pf
Tables
url=
"/diag_tables.php"
>
<Details
url=
"/diag_tables.php*"
/>
</
pf
Tables>
<Sockets
url=
"/diag_sockets.php"
>
<SocketsDetails
url=
"/diag_sockets.php?*"
/>
</Sockets>
<StatesSummary
VisibleName=
"States Summary"
url=
"/diag_states_summary.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>
</Firewall>
<Services
order=
"4"
cssClass=
"glyphicon glyphicon-cog"
>
...
...
src/www/diag_dump_states.php
View file @
22c9ec78
<?php
/*
Copyright (C) 2014 Deciso B.V.
Copyright (C) 2005-2009 Scott Ullrich
...
...
@@ -109,19 +110,8 @@ include("head.inc");
<section
class=
"page-content-main"
>
<div
class=
"container-fluid"
>
<div
class=
"row"
>
<section
class=
"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"
>
<div
class=
"tab-content content-box col-xs-12"
>
<form
action=
"
<?=
$_SERVER
[
'SCRIPT_NAME'
];
?>
"
method=
"post"
name=
"iform"
>
<?php
$current_statecount
=
`pfctl -si | grep "current entries" | awk '{ print $3 }'`
;
...
...
src/www/diag_dump_states_sources.php
View file @
22c9ec78
<?php
/*
Copyright (C) 2014 Deciso B.V.
Copyright (C) 2005-2009 Scott Ullrich
...
...
@@ -92,17 +93,6 @@ include("head.inc");
</script>
<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>
<td>
<div
id=
"mainarea"
>
...
...
src/www/diag_resetstate.php
View file @
22c9ec78
<?php
/*
Copyright (C) 2014 Deciso B.V.
Copyright (C) 2004-2009 Scott Ullrich
...
...
@@ -52,7 +53,7 @@ if ($_POST) {
}
}
$pgtitle
=
array
(
gettext
(
"Diagnostics"
),
gettext
(
"Reset state"
));
$pgtitle
=
array
(
gettext
(
'Diagnostics'
),
gettext
(
'State Reset'
));
include
(
"head.inc"
);
?>
...
...
@@ -64,31 +65,13 @@ include("head.inc");
<section
class=
"page-content-main"
>
<div
class=
"container-fluid"
>
<div
class=
"row"
>
<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=
"container-fluid tab-content"
>
<div
class=
"tab-pane active"
id=
"system"
>
<?php
if
(
isset
(
$input_errors
)
&&
count
(
$input_errors
)
>
0
)
print_input_errors
(
$input_errors
);
?>
<?php
if
(
isset
(
$savemsg
))
print_info_box
(
$savemsg
);
?>
<form
action=
"
<?=
$_SERVER
[
'REQUEST_URI'
];
?>
"
method=
"post"
>
<input
name=
"statetable"
type=
"checkbox"
id=
"statetable"
value=
"yes"
checked=
"checked"
/>
<strong>
<?=
gettext
(
"Firewall state table"
);
?>
</strong><br
/>
<span
class=
"vexpl"
><br
/>
...
...
@@ -119,10 +102,7 @@ include("head.inc");
</p>
<?php
endif
;
?>
<input
name=
"Submit"
type=
"submit"
class=
"btn btn-primary"
value=
"
<?=
gettext
(
"Reset"
);
?>
"
/>
</form>
</div>
</div>
</div>
...
...
src/www/diag_tables.php
View file @
22c9ec78
...
...
@@ -73,7 +73,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
}
$pgtitle
=
array
(
gettext
(
"Diagnostics"
),
gettext
(
"Tables"
));
$pgtitle
=
array
(
gettext
(
"Diagnostics"
),
gettext
(
"
pf
Tables"
));
$shortcut_section
=
"aliases"
;
// fetch list of tables and content of selected table
$tables
=
json_decode
(
configd_run
(
"filter list tables json"
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment