static function getMenuContent()
 {
     global $CFG_GLPI;
     $menu = array();
     $menu['title'] = self::getMenuName();
     $menu['page'] = "/plugins/addressing/front/addressing.php";
     $menu['title'] = PluginAddressingAddressing::getTypeName(2);
     $menu['page'] = PluginAddressingAddressing::getSearchURL(false);
     $menu['links']['search'] = PluginAddressingAddressing::getSearchURL(false);
     if (Session::haveRight('plugin_addressing', UPDATE)) {
         $menu['links']['add'] = PluginAddressingAddressing::getFormURL(false);
     }
     return $menu;
 }
}
if (isset($_GET["start"])) {
    $start = $_GET["start"];
} else {
    $start = 0;
}
$addressing = new PluginAddressingAddressing();
if (isset($_POST["add"])) {
    $addressing->check(-1, CREATE, $_POST);
    if (!empty($_POST["name"]) && !empty($_POST["begin_ip"]) && !empty($_POST["end_ip"])) {
        $newID = $addressing->add($_POST);
    } else {
        Session::addMessageAfterRedirect(__('Problem when adding, required fields are not here', 'addressing'), false, ERROR);
    }
    if ($_SESSION['glpibackcreated']) {
        Html::redirect($addressing->getFormURL() . "?id=" . $newID);
    }
    Html::back();
} else {
    if (isset($_POST["delete"])) {
        $addressing->check($_POST['id'], DELETE);
        $addressing->delete($_POST);
        $addressing->redirectToList();
    } else {
        if (isset($_POST["restore"])) {
            $addressing->check($_POST['id'], PURGE);
            $addressing->restore($_POST);
            $addressing->redirectToList();
        } else {
            if (isset($_POST["purge"])) {
                $addressing->check($_POST['id'], PURGE);