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
Merge branch 'master' of git.onelab.eu:/git/nodeconfig
[nodeconfig.git]
/
PlanetLabConf
/
proxies.php
diff --git
a/PlanetLabConf/proxies.php
b/PlanetLabConf/proxies.php
index
d2b893c
..
f15d833
100755
(executable)
--- a/
PlanetLabConf/proxies.php
+++ b/
PlanetLabConf/proxies.php
@@
-9,16
+9,14
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2004 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2004 The Trustees of Princeton University
#
-# $Id$
-#
<?php
// Get admin API handle
require_once 'plc_api.php';
global $adm;
<?php
// Get admin API handle
require_once 'plc_api.php';
global $adm;
-// Look up the node
$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)) {
if (!empty($interfaces)) {
$nodes = $adm->GetNodes(array($interfaces[0]['node_id']));
if (!empty($nodes)) {