svn keywords, and url in specfile
[nodeconfig.git] / PlanetLabConf / ntp.conf.php
index afd0d76..586e27b 100755 (executable)
@@ -5,8 +5,6 @@
 // Marc Fiuczynski <mef@cs.princeton.edu>
 // 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']));