<?php
/****************************************************************************************/
/* ACollab */
/****************************************************************************************/
/* Copyright (c) 2002-2004 Adaptive Technology Resource Centre / University of Toronto */
/* */
/* http://atutor.ca/acollab */
/* */
/* This program is free software. You may redistribute it and/or */
/* modify it under the terms of the GNU General Public License */
/* as published by the Free Software Foundation; either version 2 of the License, */
/* or (at your option) any later version. */
/* */
/* This program is distributed in the hope that it will be useful, but */
/* WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */
/* See the GNU General Public License for more details. */
/* */
/* You may access the GNU General Public License at: */
/* http://www.opensource.org/licenses/gpl-license.php */
/* */
/* You may contact the Adaptive Technology Resource Centre at */
/* Robarts Library, University of Toronto */
/* 130 St. George Street, Toronto, Ontario, Canada M5S 1A5 */
/* Further contact information is available at http://www.utoronto.ca/atrc/ */
/****************************************************************************************/
/* Programmer: */
/* Joel Kronenberg - ATRC */
/****************************************************************************************/
// $Id: profile.php 227 2004-06-07 18:33:50Z boonhau $
define('AC_INCLUDE_PATH', 'include/');
require(AC_INCLUDE_PATH.'vitals.inc.php');
authenticate(USER_CLIENT, USER_GROUP_ADMIN);
$id = intval($_GET['id']);
$_SECTION[0][0] = _AC('home');
$_SECTION[0][1] = 'home.php';
$result = mysql_query("SELECT * FROM ".MEMBERS_TABLE_PREFIX."members WHERE member_id=$id", $db);
$row = mysql_fetch_array($result);
if (!$row) {
require(AC_INCLUDE_PATH.'header.inc.php');
$error[] = E_USER_NOT_FOUND;
print_errors($error);
require(AC_INCLUDE_PATH.'footer.inc.php');
exit;
}
$_SECTION[1][0] = _AC('profile_title', $row['login']);
require(AC_INCLUDE_PATH.'header.inc.php');
?>
<table border="0" cellspacing="0" cellpadding="2" align="center" class="box2" width="75%">
<tr>
<th class="box" colspan="2" align="left"><?php echo _AC('profile_title', $row['login']); ?></th>
</tr>
<tr>
<td class="row1" align="right" width="150"><b><small><?php echo _AC('username'); ?>:</small></b></td>
<td class="row1"><?php echo $row['login']; ?> </td>
</tr>
<tr>
<td class="row1" align="right" width="150"><b><small><?php echo _AC('email'); ?>:</small></b></td>
<td class="row1"><?php
echo '<a href="mailto:'.$row['email'].'" onfocus="this.className=\'highlight\'" onblur="this.className=\'\'">'.$row['email'].'</a>';
?> </td>
</tr>
<tr>
<td class="row1" align="right" width="150"><b><small><?php echo _AC('first_name'); ?>:</small></b></td>
<td class="row1"><?php echo $row['first_name']; ?> </td>
</tr>
<tr>
<td class="row1" align="right" width="150"><b><small><?php echo _AC('last_name'); ?>:</small></b></td>
<td class="row1"><?php echo $row['last_name']; ?> </td>
</tr>
</table>
<?php
require(AC_INCLUDE_PATH.'footer.inc.php');
?>