diff --git a/src/etc/inc/util.inc b/src/etc/inc/util.inc index b547fd539..54f761382 100644 --- a/src/etc/inc/util.inc +++ b/src/etc/inc/util.inc @@ -25,6 +25,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + require_once("IPv6.inc"); function killbyname($procname, $sig = 'TERM') @@ -565,11 +566,6 @@ function group_ports($ports) { 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 */ function is_inrange_v4($test, $start, $end) { if ( (ip2ulong($test) <= ip2ulong($end)) && (ip2ulong($test) >= ip2ulong($start)) ) @@ -1381,16 +1377,3 @@ function prefer_ipv4_or_ipv6() { else 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 "
\n"; - print "\n"; -}