X-Git-Url: http://git.onelab.eu/?p=nodeconfig.git;a=blobdiff_plain;f=PlanetLabConf%2Fblacklist.php;h=bcc8d87c3b575a2cd9c4a68cf3caa7c41166379b;hp=33a04f979af1b13fce74cd6dffbef44ab3275832;hb=cf5e46ed05b7ce65ed13a2ece9813cfbc0b403e0;hpb=37133a84f19820613111f6fcede4b764aa8a3c06 diff --git a/PlanetLabConf/blacklist.php b/PlanetLabConf/blacklist.php index 33a04f9..bcc8d87 100755 --- a/PlanetLabConf/blacklist.php +++ b/PlanetLabConf/blacklist.php @@ -9,8 +9,6 @@ # Mark Huang # Copyright (C) 2004 The Trustees of Princeton University # -# $Id$ -# *filter -F BLACKLIST @@ -21,18 +19,7 @@ require_once 'plc_api.php'; global $adm; -// backwards compatibility with the old 4.2 API -global $__PLC_API_VERSION; -if ( ! method_exists ($adm,"GetInterfaces")) - $__PLC_API_VERSION = 4.2; -else - $__PLC_API_VERSION = 4.3; - -// Look up the node -if ($__PLC_API_VERSION==4.2) - $interfaces = $adm->GetNodeNetworks(array('ip' => $_SERVER['REMOTE_ADDR'])); -else - $interfaces = $adm->GetInterfaces(array('ip' => $_SERVER['REMOTE_ADDR'])); +$interfaces = $adm->GetInterfaces(array('ip' => $_SERVER['REMOTE_ADDR'])); if (!empty($interfaces)) { $nodes = $adm->GetNodes(array($interfaces[0]['node_id'])); if (!empty($nodes)) {