git://git.onelab.eu
/
nodeconfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
I hate php. Needed trailing "\n" when printing keys.
[nodeconfig.git]
/
ntp.conf.php
diff --git
a/ntp.conf.php
b/ntp.conf.php
index
4b28145
..
6a05587
100755
(executable)
--- a/
ntp.conf.php
+++ b/
ntp.conf.php
@@
-5,7
+5,7
@@
// Marc Fiuczynski <mef@cs.princeton.edu>
// Copyright (C) 2006 The Trustees of Princeton University
//
// Marc Fiuczynski <mef@cs.princeton.edu>
// Copyright (C) 2006 The Trustees of Princeton University
//
-// $Id$
+// $Id
: ntp.conf.php,v 1.1 2006/11/06 22:02:17 mlhuang Exp
$
//
// Get admin API handle
//
// Get admin API handle
@@
-18,7
+18,7
@@
$default_name = "default";
$file_name = $config_directory . $file_prefix . $default_name;
// Look up the node
$file_name = $config_directory . $file_prefix . $default_name;
// Look up the node
-$nodenetworks = $adm->GetNodeNetworks(array($_SERVER['REMOTE_ADDR']));
+$nodenetworks = $adm->GetNodeNetworks(array(
'ip' =>
$_SERVER['REMOTE_ADDR']));
if (!empty($nodenetworks)) {
$nodes = $adm->GetNodes(array($nodenetworks[0]['node_id']));
if (!empty($nodes)) {
if (!empty($nodenetworks)) {
$nodes = $adm->GetNodes(array($nodenetworks[0]['node_id']));
if (!empty($nodes)) {