From 59cf91925ca8da43d2427331b23e4673b0e53095 Mon Sep 17 00:00:00 2001 From: Tarik Gasmi Date: Mon, 14 May 2007 08:03:48 +0000 Subject: Other webinterface data. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1077 95ad53e4-c205-0410-b2fa-d234c58c8868 --- ldap-site-mngmt/webinterface/ip/ip_blocks.inc.php | 68 +++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 ldap-site-mngmt/webinterface/ip/ip_blocks.inc.php (limited to 'ldap-site-mngmt/webinterface/ip/ip_blocks.inc.php') diff --git a/ldap-site-mngmt/webinterface/ip/ip_blocks.inc.php b/ldap-site-mngmt/webinterface/ip/ip_blocks.inc.php new file mode 100644 index 00000000..8530e079 --- /dev/null +++ b/ldap-site-mngmt/webinterface/ip/ip_blocks.inc.php @@ -0,0 +1,68 @@ +"; +#print_r(count($fipb_array)); echo "
"; +$ipblocks = ""; + +# print_r($mipb_array); +if ($mipb_array[0] != "" ){ + if (count($mipb_array) > 1 ){ + $ipblocks .= " + "; + foreach ($mipb_array as $mipb){ + $exp = explode('_',$mipb); + $ipblocks .= " + + "; + } + } + elseif (count($mipb_array) == 1){ + $ipblocks .= "
+

Zugewiesene IP Bereiche:

$exp[0]  - $exp[1] 
+ "; + $exp = explode('_',$mipb_array[0]); + $ipblocks .= " + + "; + } + elseif( $fipb_array[0] == "" ){ + $ipblocks .= "
+

Zugewiesener IP Bereich:

$exp[0]  - $exp[1] 
+ "; + } + if (count($fipb_array) > 1 ){ + $ipblocks .= "

Keine IP Adressen mehr verfügbar

+ + "; + foreach ($fipb_array as $fipb){ + $exp = explode('_',$fipb); + $ipblocks .= " + + "; + } + } + elseif (count($fipb_array) == 1){ + $ipblocks .= "
+

Davon noch frei verfügbar:

$exp[0]  - $exp[1] 
+ "; + $exp = explode('_',$fipb_array[0]); + $ipblocks .= " + + "; + } + +} + +if( $mipb_array[0] == "" ){ + $ipblocks .= "
+

Davon noch frei verfügbar:

$exp[0]  - $exp[1] 
+ "; +} +$ipblocks .= "

Ihnen wurden keine IP Adressen zugewiesen

"; + +$template->assign(array("IPBLOCKS" => $ipblocks)); + +?> \ No newline at end of file -- cgit v1.2.3-55-g7522