<?php /** * Please see /include/common.php for documentation on common.php, the $COLLATE global array used by this program, and the AccessControl function used widely. */ require_once './include/common.php'; $op = empty($_GET['op']) ? 'default' : $_GET['op']; switch ($op) { case "add": AccessControl("3", null); add_subnet(); break; case "submit": AccessControl("3", null); submit_subnet(); break; case "modify": AccessControl("3", null); modify_subnet(); break; case "submitmove": submit_move_subnet(); break; case "resize": AccessControl("3", null); resize_subnet(); break; default: AccessControl("1", null); list_subnets(); break;
unset($protectedPost['MODIF']); } show_tabs($data_on, $form_name, "onglet", 10); $left_menu_displayed = true; } $class = $left_menu_displayed ? "right-content" : ""; echo '<div class="' . $class . ' mlt_bordure" >'; if ($protectedPost['onglet'] == 'ADMIN_RSX') { $method = verif_base_methode('OCS'); if (!$method) { if (isset($protectedPost['SUP_PROF']) and $protectedPost['SUP_PROF'] != '') { delete_subnet($protectedPost['SUP_PROF']); $tab_options['CACHE'] = 'RESET'; } if (isset($protectedPost['Valid_modif'])) { $result = add_subnet($protectedPost['ADD_IP'], $protectedPost['RSX_NAME'], $protectedPost['ID_NAME'], $protectedPost['ADD_SX_RSX']); if ($result) { msg_error($result); } else { if (isset($protectedPost['MODIF'])) { msg_success($l->g(1121)); } else { msg_success($l->g(1141)); } //erase ipdiscover cache unset($_SESSION['OCS']['DATA_CACHE'][$table_name], $_SESSION['OCS']["ipdiscover"], $protectedPost['ADD_SUB'], $protectedPost['MODIF']); require_once BACKEND . 'ipdiscover/ipdiscover.php'; if (isset($protectedGet['value']) and $protectedGet['value'] != '') { reloadform_closeme("ipdiscover", true); } }