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]
/
bwlimit.php
diff --git
a/bwlimit.php
b/bwlimit.php
index
4c6e07b
..
0b554da
100755
(executable)
--- a/
bwlimit.php
+++ b/
bwlimit.php
@@
-5,7
+5,7
@@
// Mark Huang <mlhuang@cs.princeton.edu>
// Copyright (C) 2006 The Trustees of Princeton University
//
// Mark Huang <mlhuang@cs.princeton.edu>
// Copyright (C) 2006 The Trustees of Princeton University
//
-// $Id$
+// $Id
: bwlimit.php,v 1.1 2006/11/06 22:02:17 mlhuang Exp
$
//
// Get admin API handle
//
// Get admin API handle
@@
-13,7
+13,7
@@
require_once 'plc_api.php';
global $adm;
// Look up the node
global $adm;
// Look up the node
-$nodenetworks = $adm->GetNodeNetworks(array($_SERVER['REMOTE_ADDR']));
+$nodenetworks = $adm->GetNodeNetworks(array(
'ip' =>
$_SERVER['REMOTE_ADDR']));
if (!empty($nodenetworks)) {
if ($nodenetworks[0]['bwlimit'] !== NULL) {
$rate = $nodenetworks[0]['bwlimit'];
if (!empty($nodenetworks)) {
if ($nodenetworks[0]['bwlimit'] !== NULL) {
$rate = $nodenetworks[0]['bwlimit'];