Commit 2ef52e06 authored by Franco Fichtner's avatar Franco Fichtner

inc: remove two unused functions

parent 2b098ba9
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE. POSSIBILITY OF SUCH DAMAGE.
*/ */
require_once("IPv6.inc"); require_once("IPv6.inc");
function killbyname($procname, $sig = 'TERM') function killbyname($procname, $sig = 'TERM')
...@@ -565,11 +566,6 @@ function group_ports($ports) { ...@@ -565,11 +566,6 @@ function group_ports($ports) {
return $result; return $result;
} }
/* returns true if $val is a valid shaper bandwidth value */
function is_valid_shaperbw($val) {
return (preg_match("/^(\d+(?:\.\d+)?)([MKG]?b|%)$/", $val));
}
/* returns true if $test is in the range between $start and $end */ /* returns true if $test is in the range between $start and $end */
function is_inrange_v4($test, $start, $end) { function is_inrange_v4($test, $start, $end) {
if ( (ip2ulong($test) <= ip2ulong($end)) && (ip2ulong($test) >= ip2ulong($start)) ) if ( (ip2ulong($test) <= ip2ulong($end)) && (ip2ulong($test) >= ip2ulong($start)) )
...@@ -1381,16 +1377,3 @@ function prefer_ipv4_or_ipv6() { ...@@ -1381,16 +1377,3 @@ function prefer_ipv4_or_ipv6() {
else else
mwexec("/etc/rc.d/ip6addrctl prefer_ipv6"); mwexec("/etc/rc.d/ip6addrctl prefer_ipv6");
} }
/* Redirect to page passing parameters via POST */
function post_redirect($page, $params) {
if (!is_array($params))
return;
print "<html><body><form action=\"{$page}\" name=\"formredir\" method=\"post\">\n";
foreach ($params as $key => $value) {
print "<input type=\"hidden\" name=\"{$key}\" value=\"{$value}\" />\n";
}
print "</form><script type=\"text/javascript\">document.formredir.submit();</script>\n";
print "</body></html>\n";
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment