package network::drakconnect; use common; use network::network; sub apply { my ($in, $net, $modules_conf) = @_; network::network::configure_network($net, $in, $modules_conf); } sub get_intf_ip { my ($net, $interface) = @_; my ($ip, $state, $mask); if (-x "/sbin/ifconfig") { local $_ = `LC_ALL=C LANGUAGE=C /sbin/ifconfig $interface`; $ip = /inet addr:(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/mso ? $1 : N("No IP"); $mask = /Mask:(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/mso ? $1 : N("No Mask"); $state = /inet/ ? N("up") : N("down"); } else { $ip = $net->{ifcfg}{$interface}{IPADDR}; $state = "n/a"; } ($ip, $state, $mask); } 1; in'>index : forums
The forums.mageia.org WebsiteMaat [maat]
aboutsummaryrefslogtreecommitdiffstats
path: root/tests/security/extract_current_page_test.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-08-21 14:26:37 +0200
committerAndreas Fischer <bantu@phpbb.com>2011-08-21 14:26:37 +0200
commit0b9fe01cce56cd8421e8eb43cdadc63f1d244987 (patch)
tree67e5ff3838757dc79ecb46be4bbeed2f6da02974 /tests/security/extract_current_page_test.php
parent4253a73e81fd10b8018885e2268726e397a6369e (diff)
parent91b415dd01095a4a108909b79f35f2146bb9abe7 (diff)
downloadforums-0b9fe01cce56cd8421e8eb43cdadc63f1d244987.tar
forums-0b9fe01cce56cd8421e8eb43cdadc63f1d244987.tar.gz
forums-0b9fe01cce56cd8421e8eb43cdadc63f1d244987.tar.bz2
forums-0b9fe01cce56cd8421e8eb43cdadc63f1d244987.tar.xz
forums-0b9fe01cce56cd8421e8eb43cdadc63f1d244987.zip
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/10240] Reverted a commit which added buggy code.
Diffstat (limited to 'tests/security/extract_current_page_test.php')
0 files changed, 0 insertions, 0 deletions