r4484 Removed thrice duplicated code when rendering IP allocations
authorAlexey Andriyanov <alan@al-an.info>
Fri, 22 Apr 2011 18:17:23 +0000 (18:17 +0000)
committerAlexey Andriyanov <alan@al-an.info>
Fri, 22 Apr 2011 18:17:23 +0000 (18:17 +0000)
commitf3505b3548caab6bc6b5d8b94fe59bd6cd9d5989
tree1c4c6a228f51bc3edba5c10cb9c1088ac5f4bb23
parentf95bc64f6612015dc08504bd1404619fb8a93a51
r4484 Removed thrice duplicated code when rendering IP allocations

getRenderedAlloc: new func which returns reparately rendered TDs (ip, routed_by, network, etc)
renderRackObject: the IP address row rendering code was moved into getRenderedAlloc
renderIPv4ForObject: replaced by a dummy which calls common renderIPTabForObject
renderIPv6ForObject: idem
renderIPTabForObject: the common code left by merging renderIPv[46]ForObject, using getRenderedAlloc too
getOutputOf: utility function to intercept the output of any function doing direct echoes
wwwroot/inc/functions.php
wwwroot/inc/interface.php