X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PlanetLabConf%2Fntp.conf.php;h=586e27ba0031f0bb64b5739189ec19fcdb97ed92;hb=6552abf59a332977e10520772dab68fe31f0c95c;hp=afd0d76950a8139c0943d4cfa14e7574f1e9d527;hpb=b815095fec39d567d31901c610de18c611dd5db5;p=nodeconfig.git diff --git a/PlanetLabConf/ntp.conf.php b/PlanetLabConf/ntp.conf.php index afd0d76..586e27b 100755 --- a/PlanetLabConf/ntp.conf.php +++ b/PlanetLabConf/ntp.conf.php @@ -5,8 +5,6 @@ // Marc Fiuczynski // Copyright (C) 2006 The Trustees of Princeton University // -// $Id$ -// // Get admin API handle require_once 'plc_api.php'; @@ -19,11 +17,7 @@ $file_name = $config_directory . $file_prefix . $default_name; // Look up the node -// backwards compatibility with the old 4.2 API -if ( ! method_exists ($adm,"GetInterfaces")) - $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']));