// Mark Huang <mlhuang@cs.princeton.edu>
// Copyright (C) 2006 The Trustees of Princeton University
//
-// $Id: plc_session.php 804 2007-08-31 13:58:58Z thierry $ $
+// $Id$ $
//
// Usually in /etc/planetlab/php
function PLCSession($name = NULL, $pass = NULL)
{
- $name= strtolower( $name );
+ $name= strtolower( $name );
// User API access
if ($name && $pass) {
$api = new PLCAPI(array('AuthMethod' => "password",
$this->api = $api;
// Get account details
- list($person) = $api->GetPersons(array($name));
+ list($person) = $api->GetPersons(array('email'=>$name,'peer_id'=>NULL));
$this->person = $person;
// Save session variables