mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
inc: remove two unused functions
This commit is contained in:
parent
2b098ba9da
commit
2ef52e06af
@ -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 "<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";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user