Beispiel #1
0
                if ($ip_manager->get_family() == 6) {
                    if ($ip_2->get_subnet_size() != 128) {
                        echo "<input type='text' name='ip_hostip' style='width:200px;'/> / \n\t\t\t\t\t<input type='text' name='ip_hostsubnet' value='128' style='width:50px;'/>\n\t\t\t\t\t<input type='submit' name='ip_host' value='ADD HOST' />";
                    } else {
                        echo "<span style='color:red; font-size:14px'>CANNOT CREATE ANYMORE HOST</span>";
                    }
                }
            }
        }
    }
    //$string.= "<input type='image' src='images/ip_switch_split.png' value='change_to_stub' alt='Submit' style='background-color:transparent; border:none;' />";
}
if (isset($_GET['all_tags'])) {
    $data_str = "";
    $all_tags = array();
    $all_tags = IP_Database::get_all_tags();
    foreach ($all_tags as $id => $tag) {
        $data_str .= $tag . " ";
    }
    echo rtrim($data_str, " ");
}
//id='+n_id+'&title='+title+'&description='+description+'&location='+location+'&owner='+owner+'&assigned='+assigned+'&status='+status+'&tags='+tags
if (isset($_POST['id'])) {
    $id = $_POST['id'];
    $title = $_POST['title'];
    $desc = $_POST['description'];
    $location = $_POST['location'];
    $owner = $_POST['owner'];
    $assigned = $_POST['assigned'];
    $status = $_POST['status'];
    $tags = $_POST['tags'];