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
ab919abe
Commit
ab919abe
authored
Jul 07, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: whitespace sweep
parent
1b09e9a7
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
17 deletions
+17
-17
authgui.inc
src/etc/inc/authgui.inc
+2
-2
system_camanager.php
src/www/system_camanager.php
+3
-3
system_certmanager.php
src/www/system_certmanager.php
+4
-4
system_crlmanager.php
src/www/system_crlmanager.php
+1
-1
system_hasync.php
src/www/system_hasync.php
+6
-6
vpn_ipsec_phase1.php
src/www/vpn_ipsec_phase1.php
+1
-1
No files found.
src/etc/inc/authgui.inc
View file @
ab919abe
...
@@ -65,7 +65,7 @@ if (!isAllowedPage($_SERVER['REQUEST_URI'])) {
...
@@ -65,7 +65,7 @@ if (!isAllowedPage($_SERVER['REQUEST_URI'])) {
display_error_form
(
"201"
,
gettext
(
"No page assigned to this user! Click here to logout."
));
display_error_form
(
"201"
,
gettext
(
"No page assigned to this user! Click here to logout."
));
exit
;
exit
;
}
}
}
}
/*
/*
* Close session data to allow other scripts from same host to come in.
* Close session data to allow other scripts from same host to come in.
...
@@ -130,7 +130,7 @@ function display_login_form()
...
@@ -130,7 +130,7 @@ function display_login_form()
unset
(
$input_errors
);
unset
(
$input_errors
);
if
(
isAjax
())
{
if
(
isAjax
())
{
exit
;
exit
;
}
}
...
...
src/www/system_camanager.php
View file @
ab919abe
...
@@ -115,7 +115,7 @@ if ($act == "edit") {
...
@@ -115,7 +115,7 @@ if ($act == "edit") {
}
}
if
(
$act
==
"new"
)
{
if
(
$act
==
"new"
)
{
if
(
isset
(
$_GET
[
'method'
]))
{
if
(
isset
(
$_GET
[
'method'
]))
{
$pconfig
[
'method'
]
=
$_GET
[
'method'
];
$pconfig
[
'method'
]
=
$_GET
[
'method'
];
}
else
{
}
else
{
$pconfig
[
'method'
]
=
null
;
$pconfig
[
'method'
]
=
null
;
...
@@ -674,7 +674,7 @@ else :
...
@@ -674,7 +674,7 @@ else :
$subj
=
htmlspecialchars
(
$subj
);
$subj
=
htmlspecialchars
(
$subj
);
$issuer
=
htmlspecialchars
(
$issuer
);
$issuer
=
htmlspecialchars
(
$issuer
);
$certcount
=
0
;
$certcount
=
0
;
if
(
isset
(
$ca
[
'caref'
]))
{
if
(
isset
(
$ca
[
'caref'
]))
{
$issuer_ca
=
lookup_ca
(
$ca
[
'caref'
]);
$issuer_ca
=
lookup_ca
(
$ca
[
'caref'
]);
if
(
$issuer_ca
)
{
if
(
$issuer_ca
)
{
...
@@ -690,7 +690,7 @@ else :
...
@@ -690,7 +690,7 @@ else :
$certcount
++
;
$certcount
++
;
}
}
}
}
}
}
// TODO : Need gray certificate icon
// TODO : Need gray certificate icon
...
...
src/www/system_certmanager.php
View file @
ab919abe
...
@@ -109,7 +109,7 @@ if ($act == "new") {
...
@@ -109,7 +109,7 @@ if ($act == "new") {
if
(
isset
(
$_GET
[
'method'
]))
{
if
(
isset
(
$_GET
[
'method'
]))
{
$pconfig
[
'method'
]
=
$_GET
[
'method'
];
$pconfig
[
'method'
]
=
$_GET
[
'method'
];
}
else
{
}
else
{
$pconfig
[
'method'
]
=
null
;
$pconfig
[
'method'
]
=
null
;
}
}
$pconfig
[
'keylen'
]
=
"2048"
;
$pconfig
[
'keylen'
]
=
"2048"
;
$pconfig
[
'digest_alg'
]
=
"sha256"
;
$pconfig
[
'digest_alg'
]
=
"sha256"
;
...
@@ -1048,9 +1048,9 @@ endif;?>
...
@@ -1048,9 +1048,9 @@ endif;?>
}
}
if
(
isset
(
$cert
[
'caref'
]))
{
if
(
isset
(
$cert
[
'caref'
]))
{
$ca
=
lookup_ca
(
$cert
[
'caref'
]);
$ca
=
lookup_ca
(
$cert
[
'caref'
]);
if
(
$ca
)
{
if
(
$ca
)
{
$caname
=
" (CA:
{
$ca
[
'descr'
]
}
)"
;
$caname
=
" (CA:
{
$ca
[
'descr'
]
}
)"
;
}
}
}
else
{
}
else
{
$ca
=
null
;
$ca
=
null
;
}
}
...
...
src/www/system_crlmanager.php
View file @
ab919abe
...
@@ -104,7 +104,7 @@ if ($act == "del") {
...
@@ -104,7 +104,7 @@ if ($act == "del") {
if
(
$act
==
"new"
)
{
if
(
$act
==
"new"
)
{
if
(
isset
(
$_GET
[
'method'
]))
{
if
(
isset
(
$_GET
[
'method'
]))
{
$pconfig
[
'method'
]
=
$_GET
[
'method'
];
$pconfig
[
'method'
]
=
$_GET
[
'method'
];
}
else
{
}
else
{
$pconfig
[
'method'
]
=
null
;
$pconfig
[
'method'
]
=
null
;
}
}
if
(
isset
(
$_GET
[
'caref'
]))
{
if
(
isset
(
$_GET
[
'caref'
]))
{
...
...
src/www/system_hasync.php
View file @
ab919abe
...
@@ -58,11 +58,11 @@ $checkbox_names = array('pfsyncenabled',
...
@@ -58,11 +58,11 @@ $checkbox_names = array('pfsyncenabled',
if
(
$_POST
)
{
if
(
$_POST
)
{
$pconfig
=
$_POST
;
$pconfig
=
$_POST
;
foreach
(
$checkbox_names
as
$name
)
{
foreach
(
$checkbox_names
as
$name
)
{
if
(
isset
(
$pconfig
[
$name
]))
{
if
(
isset
(
$pconfig
[
$name
]))
{
$a_hasync
[
$name
]
=
$pconfig
[
$name
];
$a_hasync
[
$name
]
=
$pconfig
[
$name
];
}
else
{
}
else
{
$a_hasync
[
$name
]
=
false
;
$a_hasync
[
$name
]
=
false
;
}
}
}
}
$a_hasync
[
'pfsyncpeerip'
]
=
$pconfig
[
'pfsyncpeerip'
];
$a_hasync
[
'pfsyncpeerip'
]
=
$pconfig
[
'pfsyncpeerip'
];
$a_hasync
[
'pfsyncinterface'
]
=
$pconfig
[
'pfsyncinterface'
];
$a_hasync
[
'pfsyncinterface'
]
=
$pconfig
[
'pfsyncinterface'
];
...
@@ -80,7 +80,7 @@ foreach ($checkbox_names as $name) {
...
@@ -80,7 +80,7 @@ foreach ($checkbox_names as $name) {
$pconfig
[
$name
]
=
$a_hasync
[
$name
];
$pconfig
[
$name
]
=
$a_hasync
[
$name
];
}
else
{
}
else
{
$pconfig
[
$name
]
=
null
;
$pconfig
[
$name
]
=
null
;
}
}
}
}
foreach
(
array
(
'pfsyncpeerip'
,
'pfsyncinterface'
,
'synchronizetoip'
,
'username'
,
'password'
)
as
$tag
)
{
foreach
(
array
(
'pfsyncpeerip'
,
'pfsyncinterface'
,
'synchronizetoip'
,
'username'
,
'password'
)
as
$tag
)
{
if
(
isset
(
$a_hasync
[
$tag
]))
{
if
(
isset
(
$a_hasync
[
$tag
]))
{
...
...
src/www/vpn_ipsec_phase1.php
View file @
ab919abe
...
@@ -825,7 +825,7 @@ endforeach; ?>
...
@@ -825,7 +825,7 @@ endforeach; ?>
<tr
id=
"opt_psk"
>
<tr
id=
"opt_psk"
>
<td
width=
"22%"
valign=
"top"
class=
"vncellreq"
>
<?=
gettext
(
"Pre-Shared Key"
);
?>
</td>
<td
width=
"22%"
valign=
"top"
class=
"vncellreq"
>
<?=
gettext
(
"Pre-Shared Key"
);
?>
</td>
<td
width=
"78%"
class=
"vtable"
>
<td
width=
"78%"
class=
"vtable"
>
<input
name=
"pskey"
type=
"text"
class=
"formfld unknown"
id=
"pskey"
size=
"40"
value=
"
<?=
htmlspecialchars
(
$pconfig
[
'pskey'
]);
?>
"
/>
<input
name=
"pskey"
type=
"text"
class=
"formfld unknown"
id=
"pskey"
size=
"40"
value=
"
<?=
htmlspecialchars
(
$pconfig
[
'pskey'
]);
?>
"
/>
<span
class=
"vexpl"
>
<span
class=
"vexpl"
>
<br
/>
<br
/>
...
...
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