Ejemplo n.º 1
0
<?php

include_once '../config/symbini.php';
include_once $serverRoot . '/classes/ProfileManager.php';
header("Content-Type: text/html; charset=" . $charset);
$userId = $_REQUEST["userid"];
//Sanitation
if (!is_numeric($userId)) {
    $userId = 0;
}
$pHandler = new ProfileManager();
$pHandler->setUid($userId);
$person = $pHandler->getPerson();
$isSelf = true;
if ($userId != $SYMB_UID) {
    $isSelf = false;
}
?>
<div style="padding:15px;">
	<div>
		<div>
			<b><u>Profile Details</u></b>
		</div>
		<div style="margin:20px;">
			<?php 
echo '<div>' . $person->getFirstName() . ' ' . $person->getLastName() . '</div>';
if ($person->getTitle()) {
    echo '<div>' . $person->getTitle() . '</div>';
}
if ($person->getInstitution()) {
    echo '<div>' . $person->getInstitution() . '</div>';