Lines Matching refs:hash_in
1253 private function showSub($hash_in, $show_it) { argument
1254 $web_out = "\n<div class='phpipam phpipam_subnet-" . $hash_in['id'] ;
1255 $web_out .= " phpipam_section-" . $hash_in['sectionId'] . "'>" ;
1264 …'index.php?page=' . ($hash_in['isFolder'] ? 'folders' : 'subnets') . '§ion=' . $hash_in['secti…
1267 $web_out .= $this->setALink("$_host$_path", $hash_in['description']) ;
1269 $web_out .= $hash_in['description'] ;
1278 …'index.php?page=' . ($hash_in['isFolder'] ? 'folders' : 'subnets') . '§ion=' . $hash_in['secti…
1279 if ($hash_in['calculation']) { // v3 subnet
1280 $infos = (array)$hash_in['calculation'] ;
1282 $_more['subnet'][1] .= "'>" . $hash_in['subnet'] . '</span>/' ;
1284 $_more['subnet'][1] .= "'>" . $hash_in['mask'] . '</span>' ;
1286 } elseif ($hash_in['isFolder']) { // any folder
1289 $_more['subnet'][1] .= $hash_in['subnet']. '/' . $hash_in['mask'] ;
1296 if ($hash_in['vlanId'] && !preg_match('/\bvlanId\b/', $_conf) ) {
1298 $_path .= '&subnetId=' . $hash_in['domainId'] ;
1299 $_path .= '&sPage=' . $hash_in['vlanId'] ;
1301 array($hash_in['vlanId']), array(), $token_file) ;
1313 if ($hash_in['vrfId'] && !preg_match('/\bvrfId\b/', $_conf) ) {
1314 $_path = 'index.php?page=tools§ion=vrf&subnetId=1&sPage=' . $hash_in['vlanId'] ;
1316 array($hash_in['vrfId']), array(), $token_file) ;
1327 if ($hash_in['gateway'] && !preg_match('/\bgateway\b/', $_conf) ) { // v3
1328 $_infos = (array)$hash_in['gateway'] ;
1333 if ($hash_in['nameserverId'] && !preg_match('/\bnameserverId\b/', $_conf) ) {
1334 … $_path = 'index.php?page=tools§ion=nameservers&subnetId=1&sPage=' . $hash_in['vlanId'] ;
1336 array('nameservers', $hash_in['nameserverId']), array(), $token_file) ;
1352 if ($hash_in[$_key]) {
1353 $_more[$_key][1] = hsc($hash_in[$_key]) ;
1366 array($hash_in['id'], 'addresses'), array(), $token_file) ;
1385 private function showDev($hash_in, $show_it) { argument
1386 $web_out = "\n<div class='phpipam phpipam_device-" . $hash_in['id'] ;
1387 foreach (explode(',', $hash_in['sections']) as $_section) {
1390 $web_out .= " phpipam_device_type-" . $hash_in['type'] . "'>" ;
1398 if ($this->getConf('opo_dat') && $hash_in['hostname']) {
1399 $_path = 'index.php?page=tools§ion=devices&subnetId=' . $hash_in['id'] ;
1402 $web_out .= $this->setALink("$_host$_path", $hash_in['hostname']) ;
1404 $web_out .= $hash_in['hostname'] ;
1413 if ($hash_in['ip_addr'] && !preg_match('/\bip_addr\b/', $_conf) ) {
1414 $_more['ip_addr'][1] = $hash_in['ip_addr'] ;
1417 if ($hash_in['type'] && !preg_match('/\btype\b/', $_conf) ) {
1419 array('device_types', $hash_in['type']), array(), $token_file) ;
1423 array('devicetypes', $hash_in['type']), array(), $token_file) ;
1433 $_more['type'][1] = $hash_in['type'] ;
1437 if ($hash_in['vendor'] && !preg_match('/\bvendor\b/', $_conf) ) {
1438 $_more['vendor'][1] = hsc($hash_in['vendor']) ;
1441 if ($hash_in['model'] && !preg_match('/\bmodel\b/', $_conf) ) {
1442 $_more['model'][1] = hsc($hash_in['model']) ;
1445 if ($hash_in['rack_size'] && !preg_match('/\brack_size\b/', $_conf) ) {
1446 $_more['rack_size'][1] = $hash_in['rack_size'] ;
1449 if ($hash_in['description'] && !preg_match('/\bdescription\b/', $_conf) ) {
1450 $_more['description'][1] = hsc($hash_in['description']) ;
1456 if ($hash_in[$_key]) {
1457 $_more[$_key][1] = hsc($hash_in[$_key]) ;
1470 array('devices', $hash_in['id'], 'addresses'), array(), $token_file) ;
1539 private function showLoc($hash_in, $show_it, $alternate=false) { argument
1540 $web_out = "\n<div class='phpipam phpipam_location-" . $hash_in['id'] . "'>" ;
1548 if ($this->getConf('opo_dat') && $hash_in['name']) {
1549 $_path = 'index.php?page=tools§ion=locations&subnetId=' . $hash_in['id'] ;
1552 $web_out .= $this->setALink("$_host$_path", $hash_in['name']) ;
1554 $web_out .= $hash_in['name'] ;
1567 if ($hash_in['address'] && !preg_match('/\baddress\b/', $_conf) ) {
1572 hsc($hash_in['address'])) . '</span>' ;
1575 if ($hash_in['lat'] && $hash_in['long']) {
1658 $web_out = "\n<div class='phpipam phpipam_tag-" . $hash_in['id'] . "'>" ;
1688 $_more["$color"][1] = "<div style='background-color:" . $hash_in["$color"] ;
1850 private function showNet($hash_in, $show_it) { argument
1851 $web_out = "\n<div class='phpipam phpipam_vlan-" . $hash_in['id'] . "'>" ;
1859 if ($this->getConf('opo_dat') && $hash_in['name']) {
1861 $_path .= '&subnetId=' . $hash_in['domainId'] ;
1862 $_path .= '&sPage=' . $hash_in['id'] ;
1866 $web_out .= $this->getLang('vlan') . ' ' . $hash_in['number'] ;
1876 if ($hash_in['name'] && !preg_match('/\bname\b/', $_conf) ) {
1877 $_more['name'][1] = hsc($hash_in['name']) ;
1880 if ($hash_in['description'] && !preg_match('/\bdescription\b/', $_conf) ) {
1881 $_more['description'][1] = hsc($hash_in['description']) ;
1901 if ($hash_in[$_key]) {
1902 $_more[$_key][1] = hsc($hash_in[$_key]) ;
1915 array($hash_in['id'], 'subnets'), array(), $token_file) ;
1926 $_path .= ($hash_in['isFolder'] ? 'folders' : 'subnets') ;
1927 $_path .= '§ion=' . $hash_in['sectionId'] ;
1928 $_path .= '&subnetId=' . $hash_in['id'] ;
1955 private function showDom($hash_in, $show_it) { argument
1956 $web_out = "\n<div class='phpipam phpipam_l2domain-" . $hash_in['id'] . "'>" ;
1964 if ($this->getConf('opo_dat') && $hash_in['name']) {
1966 $_path .= '&subnetId=' . $hash_in['id'] ;
1969 $web_out .= $this->setALink("$_host$_path", $hash_in['name']) ;
1971 $web_out .= $hash_in['name'] ;
1980 if ($hash_in['description'] && !preg_match('/\bdescription\b/', $_conf) ) {
1981 $_more['description'][1] = hsc($hash_in['description']) ;
1987 if ($hash_in[$_key]) {
1988 $_more[$_key][1] = hsc($hash_in[$_key]) ;
2001 array($hash_in['id'], 'vlans'), array(), $token_file) ;
2014 $_path .= '&subnetId=' . $hash_in['id'] ;
2042 private function showFwd($hash_in, $show_it, $alternate=false) { argument
2043 $web_out = "\n<div class='phpipam phpipam_vrf-" . $hash_in['id'] ;
2044 foreach (explode(',', $hash_in['sections']) as $_section) {
2055 if ($this->getConf('opo_dat') && $hash_in['name']) {
2056 $_path = 'index.php?page=tools§ion=vrf&subnetId=' . $hash_in['id'] ;
2059 $web_out .= $this->setALink("$_host$_path", $hash_in['name']) ;
2061 $web_out .= $hash_in['name'] ;
2070 if ($hash_in['rd'] && !preg_match('/\brd\b/', $_conf) ) {
2071 $_more['rd'][1] = hsc($hash_in['rd']) ;
2074 if ($hash_in['description'] && !preg_match('/\bdescription\b/', $_conf) ) {
2075 $_more['description'][1] = hsc($hash_in['description']) ;
2081 if ($hash_in[$_key]) {
2082 $_more[$_key][1] = hsc($hash_in[$_key]) ;
2095 array($hash_in['id'], 'subnets'), array(), $token_file) ;
2105 array($hash_in['id'], 'subnets'), array(), $token_file) ;
2116 $_path .= ($hash_in['isFolder'] ? 'folders' : 'subnets') ;
2117 $_path .= '§ion=' . $hash_in['sectionId'] ;
2118 $_path .= '&subnetId=' . $hash_in['id'] ;
2195 private function showCab($hash_in, $show_it) { argument
2203 array('racks', $hash_in['id'], 'devices'), array(), $token_file) ;
2262 $web_out .= $hash_in['id'] . "'>" ;
2265 $web_out .= $this->listRacks($items, $hash_in, 1) ;
2267 if ($show_it >= 0 && $hash_in['hasBack'] ) { // back
2268 $web_out .= $this->listRacks($items, $hash_in, $hash_in['size']+1) ;