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 .= "
+
+ Zugewiesene IP Bereiche: |
";
+ foreach ($mipb_array as $mipb){
+ $exp = explode('_',$mipb);
+ $ipblocks .= "| $exp[0] |
+ - |
+ $exp[1] |
";
+ }
+ }
+ elseif (count($mipb_array) == 1){
+ $ipblocks .= "
+
+ Zugewiesener IP Bereich: |
";
+ $exp = explode('_',$mipb_array[0]);
+ $ipblocks .= "| $exp[0] |
+ - |
+ $exp[1] |
";
+ }
+ elseif( $fipb_array[0] == "" ){
+ $ipblocks .= "
+ Keine IP Adressen mehr verfügbar |
";
+ }
+ if (count($fipb_array) > 1 ){
+ $ipblocks .= "
+
+
+ Davon noch frei verfügbar: |
";
+ foreach ($fipb_array as $fipb){
+ $exp = explode('_',$fipb);
+ $ipblocks .= "| $exp[0] |
+ - |
+ $exp[1] |
";
+ }
+ }
+ elseif (count($fipb_array) == 1){
+ $ipblocks .= "
+
+ Davon noch frei verfügbar: |
";
+ $exp = explode('_',$fipb_array[0]);
+ $ipblocks .= "| $exp[0] |
+ - |
+ $exp[1] |
";
+ }
+
+}
+
+if( $mipb_array[0] == "" ){
+ $ipblocks .= "
+ Ihnen wurden keine IP Adressen zugewiesen |
";
+}
+$ipblocks .= "
";
+
+$template->assign(array("IPBLOCKS" => $ipblocks));
+
+?>
\ No newline at end of file
--
cgit v1.2.3-55-g7522