assign(array("CHILDOU" => $childau[0]['ou'], "CHILDCN" => $childau[0]['cn'], "CHILDDN" => $childauDN, "CHILDDOMAIN" => $domprefix, "CHILDDESC" => $childau[0]['description'], "RANGE1" => "", "RANGE2" => "", "AUDN" => $auDN, "SBMNR" => $sbmnr)); # MaxIPBlocks $mipb = $childau[0]['maxipblock']; # IP Delegs $template->define_dynamic("Delegs", "Webseite"); #print_r($mipb); if (count($mipb) > 1){ foreach ($mipb as $block){ $exp = explode('_',$block); $template->assign(array("RANGE1" => $exp[0], "RANGE2" => $exp[1])); $template->parse("DELEGS_LIST", ".Delegs"); } $template->clear_dynamic("Delegs"); }elseif(count($mipb) == 1){ $exp = explode('_',$mipb); $template->assign(array("RANGE1" => $exp[0], "RANGE2" => $exp[1])); $template->parse("DELEGS_LIST", ".Delegs"); $template->clear_dynamic("Delegs"); } $template->assign(array("RANGE1" => "", "RANGE2" => "")); $template->parse("DELEGS_LIST", ".Delegs"); #$template->clear_dynamic("Delegs"); ############################################################################### # Footer include("au_footer.inc.php"); ?>