function getEmail() {
return $this->data_array['email'];
}
+
+ /**
+ * getSha1Email - a SHA1 encoded hash of the email URI (including mailto: prefix)
+ *
+ * @return string The SHA1 encoded value for the email
+ */
+ function getSha1Email() {
+ return sha1('mailto:'.$this->getEmail());
+ }
/**
* getNewEmail - while changing an email address, it is stored here until confirmation.
* @return string This user's real name.
*/
function getRealName() {
- return $this->getFirstName(). ' ' .$this->getLastName();
+ $last_name = $this->getLastName();
+ return $this->getFirstName(). ($last_name ? ' ' .$last_name:'');
}
/**
// insert an empty <span /> which seems to be better if not compacted
print '<span property="doap:name" content="'. $project->getUnixName() .'"></span>'."\n";
+// print '<span property="coclico:hosted_by">' ...
+//print '<div property="sioc:has_container" xmlns:sioc="http://rdfs.org/sioc/ns#" content="fusionforge:ForgeProjects" xmlns:fusionforge="http://fusionforge.org/fusionforge#">';
$project_description = $project->getDescription();
if ($project_description) {
$num),
util_make_url ('/people/?group_id='.$group_id),
db_result($jobs_res,0,"name"));
+//print '<div rel="fusionforge:has_job" typeof="fusionforge:Job" xmlns:fusionforge="http://fusionforge.org/fusionforge#">';
+//print '<span rel="dc:title" content="'. db_result($jobs_res,0,"name").'" xmlns:dc="http://purl.org/dc/elements/1.1/">';
+//print '</span>';
+//echo '</div>';
+//end of job description part
}
}
}
$developer_url = util_make_url_u ($row_admin['user_name'],$row_admin['user_id']);
echo '<div typeof="foaf:Person" xmlns:foaf="http://xmlns.com/foaf/0.1/" about="'.
$developer_url.'#me' .'" >'."\n";
- echo '<div rel="foaf:holdsAccount">'."\n";
+ echo '<div rel="foaf:account">'."\n";
echo '<div typeof="sioc:UserAccount" about="'.
$developer_url.
'" xmlns:sioc="http://rdfs.org/sioc/ns#">'."\n";
}
$members = $project->getUsers();
-echo '<p>';
+echo '<p><span rel="sioc:has_usergroup" xmlns:sioc="http://rdfs.org/sioc/ns#">';
+echo '<div about="members/" typeof="sioc:UserGroup">';
+echo '<span rel="http://www.w3.org/2002/07/owl#sameAs">';
echo util_make_link ('/project/memberlist.php?group_id='.$group_id,sprintf(_('View the %1$d Member(s)'),count($members)));
-echo '</p>';
+echo '</span>';
+echo '</div>';
+echo '</span></p>';
+// end of project usergroup description
if (!$iam_member) {
echo '<p>'.util_make_link ('/project/request.php?group_id='.$group_id,_('Request to join')).'</p>';
<strong>' . $package_name . '</strong>
</td>';
// Releases to display
+//print '<div about="" xmlns:sioc="http://rdfs.org/sioc/ns#" rel="container_of" resource="'.util_make_link ('/frs/?group_id=' . $group_id . '&release_id=' . db_result($res_files,$f,'release_id').'">';
echo '
<td>'
.$package_release.'
. $rel_date["month"] . ' ' . $rel_date["mday"] . ', ' . $rel_date["year"] .
'</td>
<td class="align-center">';
+//echo '</div>';
// -> notes
// accessibility: image is a link, so alt must be unique in page => construct a unique alt
if ($project->usesForum()) {
echo '<div class="public-area-box">';
+// print '<hr size="1" /><a rel="sioc:container_of" xmlns:sioc="http://rdfs.org/sioc/ns#" href="'.util_make_url ('/forum/?group_id='.$group_id).'">';
$link_content = $HTML->getForumPic('') . ' ' . _('Public Forums');
echo util_make_link ( '/forum/?group_id=' . $group_id, $link_content);
print ' (';
if ($project->usesDocman()) {
echo '<div class="public-area-box">';
$link_content = $HTML->getDocmanPic('') . ' ' . _('DocManager: Project Documentation');
+// <a rel="sioc:container_of" xmlns:sioc="http://rdfs.org/sioc/ns#" href="'.util_make_url ('/docman/?group_id='.$group_id).'">';
print util_make_link( '/docman/?group_id='.$group_id, $link_content);
echo '</div>';
}
echo '<div class="public-area-box">';
$link_content = $HTML->getScmPic('') . ' ' . _('SCM Repository');
+// print '<hr size="1" /><a rel="doap:repository" href="'.util_make_url ('/scm/?group_id='.$group_id).'">';
print util_make_link( '/scm/?group_id='.$group_id, $link_content);
$hook_params = array () ;
echo '<div class="public-area-box">';
$link_content = $HTML->getFtpPic('') . ' ' . _('Anonymous FTP Space');
+// print '<a rel="doap:anonymous root" href="ftp://' . $project->getUnixName() . '.' . $GLOBALS['sys_default_domain'] . '/pub/'. $project->getUnixName() .'/">';
print util_make_link('ftp://' . $project->getUnixName() . '.' . $GLOBALS['sys_default_domain'] . '/pub/'. $project->getUnixName(), $link_content, false, true);
echo '</div>';
}
echo $HTML->boxTop(_('Personal Information'), _('Personal Information')); ?>
+<div about="" typeof="sioc:UserAccount" xmlns:sioc="http://rdfs.org/sioc/ns#">
+
<table class="my-layout-table" id="user-profile-personal-info">
<tr>
<td>
<td>
<strong>
<?php
+//print '<div property ="foaf:member" content="fusionforge:ForgeCommunity" xmlns:fusionforge="http://fusionforge.org/fusionforge#">';
+//echo '</div>';
+// description as a FusionForge Community member
+//print '<div property ="dc:Identifier" content="'.$user_id.'" xmlns:dc="http://purl.org/dc/elements/1.1/">';
+
if (session_loggedin() && user_ismember(1)) {
echo util_make_link ('/admin/useredit.php?user_id='.$user_id,$user_id);
} else {
echo $user_id;
+//echo '</div>';
}
?>
</strong><?php if($GLOBALS['sys_use_people']) { ?>( <?php echo util_make_link ('/people/viewprofile.php?user_id='.$user_id,'<strong>'._('Skills Profile').'</strong>'); ?> )<?php } ?>
<tr>
<td><?php echo _('Login name') ?></td>
- <td><strong><?php print $user->getUnixName(); ?></strong></td>
+ <td><strong><span property="sioc:name"><?php
+ print $user->getUnixName();
+ ?></span></strong></td>
</tr>
<tr>
<td><?php echo _('Real name') ?> </td>
- <td><strong><?php print $user->getTitle() .' '. $user->getRealName(); ?></strong></td>
+ <td>
+ <div rev="foaf:account" xmlns:foaf="http://xmlns.com/foaf/0.1/">
+ <div about="#me" typeof="foaf:Person">
+ <strong><span property="foaf:name"><?php
+ $user_title = $user->getTitle();
+ print ($user_title ? $user_title .' ' :''). $user->getRealName();
+ ?></span></strong>
+ </div>
+ </div>
+ </td>
</tr>
<?php if(!isset($GLOBALS['sys_show_contact_info']) || $GLOBALS['sys_show_contact_info']) { ?>
<tr>
<td><?php echo _('Your Email Address') ?>: </td>
<td>
- <strong><?php echo util_make_link ('/sendmessage.php?touser='.$user_id, str_replace('@',' @nospam@ ',$user->getEmail())); ?></strong>
+ <strong><?php
+ //$user_mail=$user->getEmail();
+ $user_mailsha1=$user->getSha1Email();
+ // Removed for privacy reasons
+ //print '<span property="sioc:email" content="'. $user_mail .'">';
+ print '<span property="sioc:email_sha1" content="'. $user_mailsha1 .'">';
+ echo util_make_link ('/sendmessage.php?touser='.$user_id, str_replace('@',' @nospam@ ',$user_mail));
+ echo '</span>';
+ ?></strong>
</td>
</tr>
<?php if ($user->getJabberAddress()) { ?>
<?php if ($user->getPhone()) { ?>
<tr>
<td><?php echo _('Phone:'); ?></td>
- <td><?php echo $user->getPhone(); ?></td>
+ <td><?php
+//print '<div property="foaf:phone" content="'.$user->getPhone().'">';
+echo $user->getPhone();
+//echo '</div>';
+?></td>
</tr>
<?php } ?>
$res = db_query_params ('SELECT count(*) from user_diary WHERE user_id=$1 AND is_public=1',
array ($user_id));
echo _('Diary/Note entries:').' '.db_result($res,0,0).'
- <p>'.util_make_link ('/developer/diary.php?diary_user='.$user_id,_('View Diary & Notes')).'</p>
+ <p>';
+ //.'<span rel="foaf:weblog">'
+ echo util_make_link ('/developer/diary.php?diary_user='.$user_id,_('View Diary & Notes'));
+ //.'</span>'.
+ echo '</p>
<p>';
echo util_make_link ('/developer/monitor.php?diary_user='.$user_id,
html_image("ic/check.png",'15','13',array(),0) ._('Monitor this Diary')
} else { // endif no groups
print "<p>"._('This developer is a member of the following projects:')."<br /> ";
while ($row_cat = db_fetch_array($res_cat)) {
- print ('<br />' . util_make_link_g ($row_cat['unix_group_name'],$row_cat['group_id'],$row_cat['group_name']).' ('.$row_cat['role_name'].')');
+ $project_link = util_make_link_g ($row_cat['unix_group_name'],$row_cat['group_id'],$row_cat['group_name']);
+ // sioc:UserGroups for all members of a project are named after /projects/A_PROJECT/members/
+ $project_uri = util_make_url_g ($row_cat['unix_group_name'],$row_cat['group_id']);
+ print '<span rel="sioc:member_of" resource="'. $project_uri .'members/">';
+//print '<div property="sioc:has_function" content= "'.$row_cat['role_name'].'" xmlns:sioc="http://rdfs.org/sioc/ns#">';
+ print ('<br />' . $project_link .' ('.$row_cat['role_name'].')');
print "\n";
+ echo '</span>';
}
print '</p>';
} // end if groups
+//</div>
+// end of community member description block
$me = session_get_user();
echo '<h1>' . _('Project Member List') . '</h1>';
echo '<p>' . _('If you would like to contribute to this project by becoming a developer, contact one of the project admins, designated in bold text below.') . '</p>';
+// beginning of the user descripion block
+$project =& group_get_object($group_id);
+$project_stdzd_uri = util_make_url_g ($project->getUnixName(), $group_id);
+$usergroup_stdzd_uri = $project_stdzd_uri.'members/';
+print '<div about="'. $usergroup_stdzd_uri .'" typeof="sioc:UserGroup" xmlns:sioc="http://rdfs.org/sioc/ns#">';
+print '<span rel="http://www.w3.org/2002/07/owl#sameAs" resource=""></span>';
+print '<span rev="sioc:has_usergroup" resource="'. $project_stdzd_uri . '"></span>';
+print '</div>';
$title_arr=array();
$title_arr[]=_('Member');
AND user_group.group_id=$1
AND users.status='A'
ORDER BY users.user_name ", array($group_id));
+
$i=0;
while ( $row_memb=db_fetch_array($res_memb) ) {
- echo '<tr '.$HTML->boxGetAltRowStyle($i++).'>';
+ echo '<tr '.$HTML->boxGetAltRowStyle($i++).'>'."\n";
+ // RDFa
+ $member_uri = util_make_url_u ($row_memb['user_name'],$row_memb['user_id']);
+ print '<div about="'. $member_uri .'" typeof="sioc:UserAccount">';
+ print '<span rev="sioc:has_member" resource="'. $usergroup_stdzd_uri .'"></span>';
+ print '<span property="sioc:name" content="'. $row_memb['user_name'] .'"></span>';
if ( trim($row_memb['admin_flags'])=='A' ) {
+// echo '<div rev="doap:developer" typeof="doap:Project" xmlns:doap="http://usefulinc.com/ns/doap#">';
echo ' <td><strong>'.$row_memb['realname'].'</strong></td>';
+// echo '</div>';
} else {
+// echo '<div rev="doap:maintainer" typeof="doap:Project" xmlns:doap="http://usefulinc.com/ns/doap#">';
echo ' <td>'.$row_memb['realname'].'</td>';
+// echo '</div>';
}
-
+
+ /*
+ print '<span property ="dc:Identifier" content="'.$row_memb['user_id'].'" xmlns:dc="http://purl.org/dc/elements/1.1/">';
+ echo '</span>';
+ print '<span property="foaf:accountName" content="'.$row_memb['user_name'].'">';
+ echo '</span>';
+ print '<span property="fusionforge:has_job" content="'.$row_memb['role'].'" xmlns:fusionforge="http://fusionforge.org/fusionforge#">';
+ echo '</span>';*/
echo '<td align="center">'.util_make_link_u ($row_memb['user_name'],$row_memb['user_id'],$row_memb['user_name']).'</td>
<td align="center">'.$row_memb['role'].'</td>';
if($GLOBALS['sys_use_people']) {
echo '<td align="center">'.util_make_link ('/people/viewprofile.php?user_id='.$row_memb['user_id'],_('View')).'</td>';
}
- echo '</tr>';
+ print '</div>';
+ echo '</tr>';
}
-
+// end of community member description block
echo $GLOBALS['HTML']->listTableBottom();
site_project_footer(array());