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
6652e239
Commit
6652e239
authored
Oct 20, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: multiple crash reports and whitespace sweep
parent
f6301ca7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
fetch_template.py
...opnsense/scripts/OPNsense/CaptivePortal/fetch_template.py
+1
-1
diag_backup.php
src/www/diag_backup.php
+2
-2
firewall_rules_edit.php
src/www/firewall_rules_edit.php
+1
-1
vpn_ipsec_phase2.php
src/www/vpn_ipsec_phase2.php
+1
-1
system_information.widget.php
src/www/widgets/widgets/system_information.widget.php
+1
-1
No files found.
src/opnsense/scripts/OPNsense/CaptivePortal/fetch_template.py
View file @
6652e239
...
...
@@ -46,7 +46,7 @@ with zipfile.ZipFile(output_data, mode='w', compression=zipfile.ZIP_DEFLATED) as
user_filenames
=
list
()
if
len
(
sys
.
argv
)
>
1
:
# Search for user template, using fileid
# In this case, we must use the config.xml to retrieve the latest content.
# In this case, we must use the config.xml to retrieve the latest content.
# When using the generated config, the user experience will be a bit odd (old content after upload)
cnf
=
OPNSenseConfig
()
template_content
=
cnf
.
get_template
(
sys
.
argv
[
1
])
...
...
src/www/diag_backup.php
View file @
6652e239
...
...
@@ -71,8 +71,8 @@ function rrd_data_xml() {
$basename
=
basename
(
$rrd_file
);
$xml_file
=
preg_replace
(
'/\.rrd$/'
,
".xml"
,
$rrd_file
);
exec
(
"
$rrdtool
dump '
{
$rrd_file
}
' '
{
$xml_file
}
'"
);
$xml_data
=
file_get_contents
(
$xml_file
);
unlink
(
$xml_file
);
$xml_data
=
@
file_get_contents
(
$xml_file
);
@
unlink
(
$xml_file
);
if
(
$xml_data
!==
false
)
{
$result
.=
"
\t\t
<rrddatafile>
\n
"
;
$result
.=
"
\t\t\t
<filename>
{
$basename
}
</filename>
\n
"
;
...
...
src/www/firewall_rules_edit.php
View file @
6652e239
...
...
@@ -744,7 +744,7 @@ include("head.inc");
<?php
endif
;
foreach
(
formInterfaces
()
as
$iface
=>
$ifacename
)
:
?>
<option
value=
"
<?=
$iface
;
?>
"
<?=
!
empty
(
$pconfig
[
'interface'
])
&&
(
$iface
==
$pconfig
[
'interface'
]
||
in_array
(
$iface
,
explode
(
","
,
$pconfig
[
'interface'
])))
?
"selected=
\"
selected
\"
"
:
""
;
?>
>
<option
value=
"
<?=
$iface
;
?>
"
<?=
!
empty
(
$pconfig
[
'interface'
])
&&
(
$iface
==
$pconfig
[
'interface'
]
||
(
strpos
(
$pconfig
[
'interface'
],
','
)
!==
false
&&
in_array
(
$iface
,
explode
(
','
,
$pconfig
[
'interface'
]))))
?
'selected="selected"'
:
''
;
?>
>
<?=
htmlspecialchars
(
$ifacename
);
?>
</option>
<?php
...
...
src/www/vpn_ipsec_phase2.php
View file @
6652e239
...
...
@@ -868,7 +868,7 @@ endif; ?>
<?php
foreach
(
$p2_halgos
as
$algo
=>
$algoname
)
:
?>
<input
type=
"checkbox"
name=
"hash-algorithm-option[]"
value=
"
<?=
$algo
;
?>
"
<?=
in_array
(
$algo
,
$pconfig
[
'hash-algorithm-option'
])
?
"checked=
\"
checked
\"
"
:
""
;
?>
/>
?>
"
<?=
isset
(
$pconfig
[
'hash-algorithm-option'
])
&&
in_array
(
$algo
,
$pconfig
[
'hash-algorithm-option'
])
?
'checked="checked"'
:
''
;
?>
/>
<?=
$algoname
;
?>
</br>
<?php
...
...
src/www/widgets/widgets/system_information.widget.php
View file @
6652e239
...
...
@@ -156,7 +156,7 @@ endif; ?>
?>
</td>
</tr>
<?php
if
(
$config
[
'revision'
]
)
:
<?php
if
(
isset
(
$config
[
'revision'
][
'time'
])
)
:
?>
<tr>
<td
width=
"25%"
class=
"vncellt"
>
<?=
gettext
(
"Last config change"
);
?>
</td>
...
...
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