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
6f39a69e
Commit
6f39a69e
authored
Apr 22, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
system: remove self-aware proxy usage for 17.1
parent
470861be
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
69 deletions
+2
-69
system_advanced_misc.php
src/www/system_advanced_misc.php
+2
-69
No files found.
src/www/system_advanced_misc.php
View file @
6f39a69e
...
@@ -78,10 +78,6 @@ function thermal_modules()
...
@@ -78,10 +78,6 @@ function thermal_modules()
if
(
$_SERVER
[
'REQUEST_METHOD'
]
===
'GET'
)
{
if
(
$_SERVER
[
'REQUEST_METHOD'
]
===
'GET'
)
{
$pconfig
=
array
();
$pconfig
=
array
();
$pconfig
[
'proxyurl'
]
=
!
empty
(
$config
[
'system'
][
'proxyurl'
])
?
$config
[
'system'
][
'proxyurl'
]
:
null
;
$pconfig
[
'proxyport'
]
=
!
empty
(
$config
[
'system'
][
'proxyport'
])
?
$config
[
'system'
][
'proxyport'
]
:
null
;
$pconfig
[
'proxyuser'
]
=
!
empty
(
$config
[
'system'
][
'proxyuser'
])
?
$config
[
'system'
][
'proxyuser'
]
:
null
;
$pconfig
[
'proxypass'
]
=
!
empty
(
$config
[
'system'
][
'proxypass'
])
?
$config
[
'system'
][
'proxypass'
]
:
null
;
$pconfig
[
'lb_use_sticky'
]
=
isset
(
$config
[
'system'
][
'lb_use_sticky'
]);
$pconfig
[
'lb_use_sticky'
]
=
isset
(
$config
[
'system'
][
'lb_use_sticky'
]);
$pconfig
[
'srctrack'
]
=
!
empty
(
$config
[
'system'
][
'srctrack'
])
?
$config
[
'system'
][
'srctrack'
]
:
null
;
$pconfig
[
'srctrack'
]
=
!
empty
(
$config
[
'system'
][
'srctrack'
])
?
$config
[
'system'
][
'srctrack'
]
:
null
;
$pconfig
[
'gw_switch_default'
]
=
isset
(
$config
[
'system'
][
'gw_switch_default'
]);
$pconfig
[
'gw_switch_default'
]
=
isset
(
$config
[
'system'
][
'gw_switch_default'
]);
...
@@ -117,30 +113,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
...
@@ -117,30 +113,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
}
if
(
count
(
$input_errors
)
==
0
)
{
if
(
count
(
$input_errors
)
==
0
)
{
if
(
!
empty
(
$pconfig
[
'proxyurl'
]))
{
$config
[
'system'
][
'proxyurl'
]
=
$_POST
[
'proxyurl'
];
}
elseif
(
isset
(
$config
[
'system'
][
'proxyurl'
]))
{
unset
(
$config
[
'system'
][
'proxyurl'
]);
}
if
(
!
empty
(
$pconfig
[
'proxyport'
]))
{
$config
[
'system'
][
'proxyport'
]
=
$pconfig
[
'proxyport'
];
}
elseif
(
isset
(
$config
[
'system'
][
'proxyport'
]))
{
unset
(
$config
[
'system'
][
'proxyport'
]);
}
if
(
!
empty
(
$pconfig
[
'proxyuser'
]))
{
$config
[
'system'
][
'proxyuser'
]
=
$pconfig
[
'proxyuser'
];
}
elseif
(
isset
(
$config
[
'system'
][
'proxyuser'
]))
{
unset
(
$config
[
'system'
][
'proxyuser'
]);
}
if
(
!
empty
(
$pconfig
[
'proxypass'
]))
{
$config
[
'system'
][
'proxypass'
]
=
$pconfig
[
'proxypass'
];
}
elseif
(
isset
(
$config
[
'system'
][
'proxypass'
]))
{
unset
(
$config
[
'system'
][
'proxypass'
]);
}
$need_relayd_restart
=
false
;
$need_relayd_restart
=
false
;
if
(
!
empty
(
$pconfig
[
'lb_use_sticky'
]))
{
if
(
!
empty
(
$pconfig
[
'lb_use_sticky'
]))
{
if
(
!
isset
(
$config
[
'system'
][
'lb_use_sticky'
]))
{
if
(
!
isset
(
$config
[
'system'
][
'lb_use_sticky'
]))
{
...
@@ -282,51 +254,12 @@ include("head.inc");
...
@@ -282,51 +254,12 @@ include("head.inc");
<form
action=
"system_advanced_misc.php"
method=
"post"
name=
"iform"
id=
"iform"
>
<form
action=
"system_advanced_misc.php"
method=
"post"
name=
"iform"
id=
"iform"
>
<table
class=
"table table-striped"
>
<table
class=
"table table-striped"
>
<tr>
<tr>
<td
width=
"22%"
><strong>
<?=
gettext
(
"Proxy support"
);
?>
</strong></td>
<td
width=
"22%"
><strong>
<?=
gettext
(
'Load Balancing'
)
?>
</strong></td>
<td
width=
"78%"
align=
"right"
>
<td
width=
"78%"
align=
"right"
>
<small>
<?=
gettext
(
"full help"
);
?>
</small>
<small>
<?=
gettext
(
"full help"
);
?>
</small>
<i
class=
"fa fa-toggle-off text-danger"
style=
"cursor: pointer;"
id=
"show_all_help_page"
type=
"button"
></i>
<i
class=
"fa fa-toggle-off text-danger"
style=
"cursor: pointer;"
id=
"show_all_help_page"
type=
"button"
></i>
</td>
</td>
</tr>
</tr>
<tr>
<td><a
id=
"help_for_proxyurl"
href=
"#"
class=
"showhelp"
><i
class=
"fa fa-info-circle"
></i></a>
<?=
gettext
(
"Proxy URL"
);
?>
</td>
<td>
<input
name=
"proxyurl"
id=
"proxyurl"
type=
"text"
value=
"
<?=
!
empty
(
$pconfig
[
'proxyurl'
])
?
$pconfig
[
'proxyurl'
]
:
""
;
?>
"
/>
<div
class=
"hidden"
for=
"help_for_proxyurl"
>
<?php
printf
(
gettext
(
"Proxy url for allowing %s to use this proxy to connect outside."
),
$g
[
'product'
]);
?>
</div>
</td>
</tr>
<tr>
<td><a
id=
"help_for_proxyport"
href=
"#"
class=
"showhelp"
><i
class=
"fa fa-info-circle"
></i></a>
<?=
gettext
(
"Proxy Port"
);
?>
</td>
<td>
<input
name=
"proxyport"
id=
"proxyport"
type=
"text"
value=
"
<?=
!
empty
(
$pconfig
[
'proxyport'
])
?
$pconfig
[
'proxyport'
]
:
""
;
?>
"
/>
<div
class=
"hidden"
for=
"help_for_proxyport"
>
<?php
printf
(
gettext
(
"Proxy port to use when %s connects to the proxy URL configured above. Default is 8080 for http protocol or 443 for ssl."
),
$g
[
'product'
]);
?>
</div>
</td>
</tr>
<tr>
<td><a
id=
"help_for_proxyuser"
href=
"#"
class=
"showhelp"
><i
class=
"fa fa-info-circle"
></i></a>
<?=
gettext
(
"Proxy Username"
);
?>
</td>
<td>
<input
name=
"proxyuser"
id=
"proxyuser"
type=
"text"
value=
"
<?=
!
empty
(
$pconfig
[
'proxyuser'
])
?
$pconfig
[
'proxyuser'
]
:
""
;
?>
"
/>
<div
class=
"hidden"
for=
"help_for_proxyuser"
>
<?php
printf
(
gettext
(
"Proxy username for allowing %s to use this proxy to connect outside"
),
$g
[
'product'
]);
?>
</div>
</td>
</tr>
<tr>
<td><a
id=
"help_for_proxypassword"
href=
"#"
class=
"showhelp"
><i
class=
"fa fa-info-circle"
></i></a>
<?=
gettext
(
"Proxy Pass"
);
?>
</td>
<td>
<input
type=
"password"
name=
"proxypass"
id=
"proxypass"
value=
"
<?=
!
empty
(
$pconfig
[
'proxypass'
])
?
$pconfig
[
'proxypass'
]
:
""
;
?>
"
/>
<div
class=
"hidden"
for=
"help_for_proxypassword"
>
<?php
printf
(
gettext
(
"Proxy password for allowing %s to use this proxy to connect outside"
),
$g
[
'product'
]);
?>
</div>
</td>
</tr>
<tr>
<th
colspan=
"2"
valign=
"top"
class=
"listtopic"
>
<?=
gettext
(
"Load Balancing"
);
?>
</th>
</tr>
<tr>
<tr>
<td><a
id=
"help_for_gw_switch_default"
href=
"#"
class=
"showhelp"
><i
class=
"fa fa-info-circle"
></i></a>
<?=
gettext
(
"Gateway switching"
);
?>
</td>
<td><a
id=
"help_for_gw_switch_default"
href=
"#"
class=
"showhelp"
><i
class=
"fa fa-info-circle"
></i></a>
<?=
gettext
(
"Gateway switching"
);
?>
</td>
<td>
<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