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
452a6010
Commit
452a6010
authored
Dec 08, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) style cleanup diag_logs_gateways.php
parent
d5e9e0ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
68 deletions
+62
-68
diag_logs_gateways.php
src/www/diag_logs_gateways.php
+62
-68
No files found.
src/www/diag_logs_gateways.php
View file @
452a6010
...
@@ -42,7 +42,7 @@ if (isset($config['syslog']['nentries'])) {
...
@@ -42,7 +42,7 @@ if (isset($config['syslog']['nentries'])) {
$nentries
=
$config
[
'syslog'
][
'nentries'
];
$nentries
=
$config
[
'syslog'
][
'nentries'
];
}
}
if
(
$_POST
[
'clear'
]
)
{
if
(
!
empty
(
$_POST
[
'clear'
])
)
{
clear_clog
(
$system_logfile
);
clear_clog
(
$system_logfile
);
}
}
...
@@ -50,47 +50,41 @@ if (isset($_POST['filtertext'])) {
...
@@ -50,47 +50,41 @@ if (isset($_POST['filtertext'])) {
$filtertext
=
htmlspecialchars
(
$_POST
[
'filtertext'
]);
$filtertext
=
htmlspecialchars
(
$_POST
[
'filtertext'
]);
}
}
$pgtitle
=
array
(
gettext
(
'System'
),
gettext
(
'Log Files'
),
gettext
(
'Gateways'
));
include
(
"head.inc"
);
include
(
"head.inc"
);
?>
?>
<body>
<body>
<?php
include
(
"fbegin.inc"
);
?>
<?php
include
(
"fbegin.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"
>
<?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
);
?>
<section
class=
"col-xs-12"
>
<section
class=
"col-xs-12"
>
<div
class=
"tab-content content-box col-xs-12"
>
<div
class=
"tab-content content-box col-xs-12"
>
<div
class=
"table-responsive"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-sort"
>
<table
class=
"table table-striped"
>
<tr><td
colspan=
"2"
>
<tr>
<td
colspan=
"2"
>
<form
id=
"clearform"
name=
"clearform"
action=
"diag_logs_gateways.php"
method=
"post"
class=
"__mt"
>
<form
id=
"clearform"
name=
"clearform"
action=
"diag_logs_gateways.php"
method=
"post"
class=
"__mt"
>
<input
id=
"filtertext"
name=
"filtertext"
value=
"
<?=
$filtertext
;
?>
"
/>
<input
id=
"filtertext"
name=
"filtertext"
value=
"
<?=
$filtertext
;
?>
"
/>
<input
id=
"filtersubmit"
name=
"filtersubmit"
type=
"submit"
class=
"btn btn-primary"
value=
"
<?=
gettext
(
"Filter"
);
?>
"
/>
<input
id=
"filtersubmit"
name=
"filtersubmit"
type=
"submit"
class=
"btn btn-primary"
value=
"
<?=
gettext
(
"Filter"
);
?>
"
/>
</form>
</form>
</td></tr>
</td>
</tr>
<?php
dump_clog
(
$system_logfile
,
$nentries
,
$filtertext
);
?>
<?php
dump_clog
(
$system_logfile
,
$nentries
,
$filtertext
);
?>
<tr><td
colspan=
"2"
>
<tr>
<td
colspan=
"2"
>
<form
action=
"diag_logs_gateways.php"
method=
"post"
>
<form
action=
"diag_logs_gateways.php"
method=
"post"
>
<input
name=
"clear"
type=
"submit"
class=
"btn"
value=
"
<?=
gettext
(
"Clear log"
);
?>
"
/>
<input
name=
"clear"
type=
"submit"
class=
"btn"
value=
"
<?=
gettext
(
"Clear log"
);
?>
"
/>
</form>
</form>
</td></tr
>
</td
>
</tr>
</table>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</section>
</div>
</div>
</div>
</div>
</section>
</section>
<?php
include
(
"foot.inc"
);
?>
<?php
include
(
"foot.inc"
);
?>
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