forked from owncloud-archive/owncloud.org
-
Notifications
You must be signed in to change notification settings - Fork 1
/
page-user.php
46 lines (35 loc) · 1006 Bytes
/
page-user.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<div class="page-header">
<h1>Contributors</h1>
</div>
<div class="span9">
<div class="page-content">
<?php
if(CONTRIBOOK) {
require(dirname(__FILE__).'/../../../contribook/main/contribook/lib_contribook.php');
if(isset($_GET['user'])) $user=$_GET['user']; else $user='';
if(CONTRIBOOK_USER::exist($user)) {
CONTRIBOOK_PROFILE::show($user);
$data=CONTRIBOOK_USER::getuser($user);
// show the blog posts of the user
if($data['rssurl']<>'') {
echo('<br />The latest blogs<br />');
CONTRIBOOK_BLOG::showuser($user, 0, 10);
}
// show the github messages of the user
if($data['github']<>'') {
echo('<br />The latest GitHub messages<br />');
CONTRIBOOK_GITHUB::show($user, 0, 10);
}
// show the twitter posts of the user
if($data['twitter']<>'') {
echo('<br />The latest Twitter posts<br />');
CONTRIBOOK_MICROBLOG::showuser($user, 0, 10);
}
}else{
echo('user not found');
}
}
?>
</div>
</div>
</div>