query($sql);
$loc_db->next_record();
$node_name = $loc_db->f("name");
$node_lat = (double)$loc_db->f("latitude");
$node_long = (double)$loc_db->f("longitude");
$node_suburb = $loc_db->f("suburb");
$node_status = $loc_db->f("status");
$node_notify_nearby = $loc_db->f("notify_nearby");
$node_area = $loc_db->f("area");
$node_url = $loc_db->f("url");
if ($node_area == -1) {
$node_ip_block = "You must be within a Melbourne Wireless Area to use our IP Space";
} else {
$node_ip_block = get_ip_block($node_id) . " request a block";
}
// to make sure the status dropdown list is selected correctly
if ($loc_db->f("status") == "operational")
$status_operational = "selected";
if ($loc_db->f("status") == "testing")
$status_testing = "selected";
if ($loc_db->f("status") == "building")
$status_building = "selected";
if ($loc_db->f("status") == "gathering")
$status_gathering = "selected";
if ($loc_db->f("status") == "interested")
$status_interested = "selected";
// to make sure the notify dropdown list is selected correctly
if ($node_notify_nearby == 1) {
$notify_1 = "selected";
} elseif ($node_notify_nearby == 2) {
$notify_2 = "selected";
} elseif ($node_notify_nearby == 5) {
$notify_5 = "selected";
} elseif ($node_notify_nearby == 10) {
$notify_10 = "selected";
} elseif ($node_notify_nearby == 20) {
$notify_20 = "selected";
} else {
$notify_none = "selected";
}
?>
Edit node =$node_id?>: =$node_name?>
Please fill in as much information as you can. Fields marked with a * must be filled in. Any other fields, you may leave blank if you wish; you can always update the entries at a later date.
// only show all the extra stuff if the node is operational ?>
// or testing ?>
if (($loc_db->f("status") == "operational") || ($loc_db->f("status") == "testing")) { ?>
Services
Type
IP
Port
Descripion
// grab the services this node is running
$sql = "SELECT * FROM services WHERE node = '" . $node_id . "'";
// run query
$loc_db->query($sql);
// loop for each service
while($loc_db->next_record()) {
?>
// build SQL query to each interface for this node
$sql = "SELECT * FROM interfaces WHERE node = '" . $node_id . "'";
// run query
$loc_db->query($sql);
// if there are interfaces for the node
if ($loc_db->num_rows() != 0) {
// counter to show the number of interfaces
$counter = 1;
// loop for each node in the db
while($loc_db->next_record()) {
// make sure the right dropdown is selected
// for antenna type
if ($loc_db->f("antenna_type") == "built in") {
$antenna_builtin = "selected";
} else {
$antenna_builtin = "";
}
if ($loc_db->f("antenna_type") == "cantenna") {
$antenna_cantenna = "selected";
} else {
$antenna_cantenna = "";
}
if ($loc_db->f("antenna_type") == "helical"){
$antenna_helical = "selected";
} else {
$antenna_helical = "";
}
if ($loc_db->f("antenna_type") == "omni") {
$antenna_omni = "selected";
} else {
$antenna_omni = "";
}
if ($loc_db->f("antenna_type") == "panel") {
$antenna_panel = "selected";
} else {
$antenna_panel = "";
}
if ($loc_db->f("antenna_type") == "parabolic") {
$antenna_parabolic = "selected";
} else {
$antenna_parabolic = "";
}
if ($loc_db->f("antenna_type") == "waveguide") {
$antenna_waveguide = "selected";
} else {
$antenna_waveguide = "";
}
if ($loc_db->f("antenna_type") == "yagi") {
$antenna_yagi = "selected";
} else {
$antenna_yagi = "";
}
// make sure the right dropdown is selected
// for mode
if ($loc_db->f("mode") == "bss") {
$mode_bss = "selected";
} else {
$mode_bss = "";
}
if ($loc_db->f("mode") == "ibss") {
$mode_ibss = "selected";
} else {
$mode_ibss = "";
}
// make sure the right dropdown is selected
// for modes of operation
if ($loc_db->f("class") == "regular") {
$class_regular = "selected";
} else {
$class_regular = "";
}
if ($loc_db->f("class") == "p2p") {
$class_p2p = "selected";
} else {
$class_p2p = "";
}
if ($loc_db->f("class") == "p2mp") {
$class_p2mp = "selected";
} else {
$class_p2mp = "";
}
if ($loc_db->f("class") == "client") {
$class_client = "selected";
} else {
$class_client = "";
}
$int_id = $loc_db->f("id");
$card_manufacturer = $loc_db->f("card_manufacturer");
$card_power = $loc_db->f("card_power");
$card_receive = $loc_db->f("card_receive");
$mac = $loc_db->f("mac");
$channel = $loc_db->f("channel");
$antenna_dbi = $loc_db->f("antenna_dbi");
$cable_loss = $loc_db->f("cable_loss");
$class = $loc_db->f("class");
$router_ip = get_ip_router($int_id);
if ($router_ip == "") {
$router_ip = "Request one";
}
if ($card_power == -1)
$card_power = "";
if ($card_receive == -1)
$card_receive = "";
if ($channel == -1)
$channel = "";
if ($antenna_dbi == -1)
$antenna_dbi = "";
if ($cable_loss == -1)
$cable_loss = "";
?>
New Interface
blank fields are valid if you're unsure of a value
Card/AP Specs Manufacturer - Company that made your card/AP Power - the power level of the signal your card/AP outputs. Receive Sensitivty - The amount of signal your card needs to be recieving to work MAC - the Media Access Control address for the card/AP Channel - The 802.11b Channel this Interface is operating on Mode - The 802.11b Mode the Interface is running
Antenna and Cable Specs Antenna Type - Which of the various Antenna Types is yours? Antenna Gain - What is the level of Gain on your Antenna Cable Loss - how much signal is lost between your card and the antenna due to the cable?