57 |
$node_1_ospf_mode = $loc_db->f("ospf_mode"); |
$node_1_ospf_mode = $loc_db->f("ospf_mode"); |
58 |
$node_1_ip_block = get_ip_block($node_1_id); |
$node_1_ip_block = get_ip_block($node_1_id); |
59 |
$node_1_age = $loc_db->f("age"); |
$node_1_age = $loc_db->f("age"); |
60 |
$node_1_url = "http://" . $loc_db->f("url"); |
$node_1_url = $loc_db->f("url"); |
61 |
$node_1_wiki_url = get_node_wiki($node_1_id); |
$node_1_wiki_url = get_node_wiki($node_1_id); |
62 |
|
|
63 |
|
if (substr($node_1_url, 0, 4) != "http") |
64 |
|
$node_1_url = "http://" . $node_1_url; |
65 |
|
|
66 |
|
if (strlen($node_1_url) != 0) { |
67 |
|
|
68 |
|
$node_1_url = "<a href='$node_1_url'>$node_1_url</a>"; |
69 |
|
|
70 |
|
} else { |
71 |
|
|
72 |
|
$node_1_url = ""; |
73 |
|
|
74 |
|
} |
75 |
|
|
76 |
// build SQL query to get basic node data |
// build SQL query to get basic node data |
77 |
$sql = "SELECT *, (TO_DAYS(now()) - TO_DAYS(updated)) as age FROM nodes WHERE id='" . $id_2 . "' ORDER BY id"; |
$sql = "SELECT *, (TO_DAYS(now()) - TO_DAYS(updated)) as age FROM nodes WHERE id='" . $id_2 . "' ORDER BY id"; |
78 |
|
|
97 |
$node_2_url = "http://" . $loc_db->f("url"); |
$node_2_url = "http://" . $loc_db->f("url"); |
98 |
$node_2_wiki_url = get_node_wiki($node_2_id); |
$node_2_wiki_url = get_node_wiki($node_2_id); |
99 |
|
|
100 |
|
if (substr($node_2_url, 0, 4) != "http") |
101 |
|
$node_2_url = "http://" . $node_2_url; |
102 |
|
|
103 |
|
if (strlen($node_2_url) != 0) { |
104 |
|
|
105 |
|
$node_2_url = "<a href='$node_2_url'>$node_2_url</a>"; |
106 |
|
|
107 |
|
} else { |
108 |
|
|
109 |
|
$node_2_url = ""; |
110 |
|
|
111 |
|
} |
112 |
|
|
113 |
?> |
?> |
114 |
<table align=center cellpadding=10> |
<table align=center cellpadding=10> |
115 |
<tr valign=top> |
<tr valign=top> |
143 |
</tr> |
</tr> |
144 |
|
|
145 |
<tr> |
<tr> |
146 |
<th class="nodeinfo">Contact's name:</th> |
<th class="nodeinfo">Owner:</th> |
147 |
<td class="nodeinfo"><? echo $node_1_owner ?></td> |
<td class="nodeinfo"><? echo $node_1_owner ?></td> |
148 |
</tr> |
</tr> |
149 |
|
|
150 |
<tr> |
<tr> |
151 |
<th class="nodeinfo">Contact's email address:</th> |
<th class="nodeinfo">Email:</th> |
152 |
<td class="nodeinfo"><? echo $node_1_owner_email ?></td> |
<td class="nodeinfo"><? echo $node_1_owner_email ?></td> |
153 |
</tr> |
</tr> |
154 |
|
|
193 |
<td class="nodeinfo"><a href="area.php?id=<?=$node_1_area_id?>"><? echo $node_1_area ?></a></td> |
<td class="nodeinfo"><a href="area.php?id=<?=$node_1_area_id?>"><? echo $node_1_area ?></a></td> |
194 |
</tr> |
</tr> |
195 |
|
|
|
<? |
|
|
/* |
|
|
* OSPF parts commented out until a final decision on routing |
|
|
* is made |
|
|
* |
|
|
?> |
|
|
<tr> |
|
|
<td class="minor" colspan=2>OSPF Classification</td> |
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
<th class="nodeinfo">OSPF Area:</th> |
|
|
<td class="nodeinfo"><a href="area.php?id=<?=$node_1_ospf_area_id?>"><? echo $node_1_ospf_area ?></a></td> |
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
<th class="nodeinfo">OSPF Mode:</th> |
|
|
<td class="nodeinfo"><? echo $node_1_ospf_mode ?></td> |
|
|
</tr> |
|
|
<? */ ?> |
|
196 |
<? if ($node_1_ospf_area != "none") { ?> |
<? if ($node_1_ospf_area != "none") { ?> |
197 |
<tr> |
<tr> |
198 |
<th class="nodeinfo"> </th> |
<th class="nodeinfo"> </th> |
272 |
</tr> |
</tr> |
273 |
|
|
274 |
<tr> |
<tr> |
275 |
<th class="nodeinfo">Contact's name:</th> |
<th class="nodeinfo">Owner:</th> |
276 |
<td class="nodeinfo"><? echo $node_2_owner ?></td> |
<td class="nodeinfo"><? echo $node_2_owner ?></td> |
277 |
</tr> |
</tr> |
278 |
|
|
279 |
<tr> |
<tr> |
280 |
<th class="nodeinfo">Contact's email address:</th> |
<th class="nodeinfo">Email:</th> |
281 |
<td class="nodeinfo"><? echo $node_2_owner_email ?></td> |
<td class="nodeinfo"><? echo $node_2_owner_email ?></td> |
282 |
</tr> |
</tr> |
283 |
|
|
322 |
<td class="nodeinfo"><a href="area.php?id=<?=$node_2_area_id?>"><? echo $node_2_area ?></a></td> |
<td class="nodeinfo"><a href="area.php?id=<?=$node_2_area_id?>"><? echo $node_2_area ?></a></td> |
323 |
</tr> |
</tr> |
324 |
|
|
|
<? |
|
|
/* |
|
|
* OSPF parts commented out until a final decision on routing |
|
|
* is made |
|
|
* |
|
|
?> |
|
|
<tr> |
|
|
<td class="minor" colspan=2>OSPF Classification</td> |
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
<th class="nodeinfo">OSPF Area:</th> |
|
|
<td class="nodeinfo"><a href="area.php?id=<?=$node_2_ospf_area_id?>"><? echo $node_2_ospf_area ?></a></td> |
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
<th class="nodeinfo">OSPF Mode:</th> |
|
|
<td class="nodeinfo"><? echo $node_2_ospf_mode ?></td> |
|
|
</tr> |
|
|
<? */ ?> |
|
325 |
<? if ($node_2_ospf_area != "none") { ?> |
<? if ($node_2_ospf_area != "none") { ?> |
326 |
<tr> |
<tr> |
327 |
<th class="nodeinfo"> </th> |
<th class="nodeinfo"> </th> |
401 |
if ($bearing_2 > 360) |
if ($bearing_2 > 360) |
402 |
$bearing_2 = $bearing_2 - 360; |
$bearing_2 = $bearing_2 - 360; |
403 |
|
|
404 |
$sql = "SELECT count(int_id) as count FROM interfaces WHERE node='" . $id_1 . "'"; |
$sql = "SELECT count(id) as count FROM interfaces WHERE node='" . $id_1 . "'"; |
405 |
|
|
406 |
$loc_db_2->query( $sql ); |
$loc_db_2->query( $sql ); |
407 |
|
|
409 |
|
|
410 |
$this_num_interface = $loc_db_2->f("count"); |
$this_num_interface = $loc_db_2->f("count"); |
411 |
|
|
412 |
$sql = "SELECT count(int_id) as count FROM interfaces WHERE node='" . $id_2 . "'"; |
$sql = "SELECT count(id) as count FROM interfaces WHERE node='" . $id_2 . "'"; |
413 |
|
|
414 |
$loc_db_2->query( $sql ); |
$loc_db_2->query( $sql ); |
415 |
|
|