<?php
/**
 * Phoebe pedagogic planner
 *
 * PHP version 5
 *
 * LICENSE: The GNU General Public License (GPL), version 2. See LICENSE.txt
 *
 * Copyright (c) 2006-2008 JISC/HEFCE/University of Oxford
 *
 * @author      Matt Street <matt.street@conted.ox.ac.uk>
 * @license     http://opensource.org/licenses/gpl-license.php GPL2
 * @link        http://phoebe-project.conted.ox.ac.uk/
 */

// Get user details
$sql = 'SELECT * FROM users WHERE user_id = '.$_SESSION['userid'];
$user = $mdb2->queryRow($sql);
if (PEAR::isError($user)) {
    die($user->getMessage());
}

$userName = $user['nickname'];
?>
