$interbreadcrumb[] = array("url" => 'index.php', 'name' => get_lang('PlatformAdmin')); $tool_name = get_lang('MultipleAccessURLs'); Display::display_header($tool_name); $my_user_url_list = api_get_access_url_from_user(api_get_user_id()); $current_access_url_id = api_get_current_access_url_id(); $url_list = UrlManager::get_url_data(); // Actions if (isset($_GET['action'])) { if ($_GET['action'] == 'show_message') { Display::display_normal_message(Security::remove_XSS(stripslashes($_GET['message']))); } if (1) { $url_id = intval($_GET['url_id']); switch ($_GET['action']) { case 'delete_url': $result = UrlManager::delete($url_id); if ($result) { Display::display_normal_message(get_lang('URLDeleted')); } else { Display::display_error_message(get_lang('CannotDeleteURL')); } break; case 'lock': UrlManager::set_url_status('lock', $url_id); Display::display_normal_message(get_lang('URLInactive')); break; case 'unlock': UrlManager::set_url_status('unlock', $url_id); Display::display_normal_message(get_lang('URLActive')); break; case 'register':