forked from nizaranand/FaceLink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
load_comments.php
26 lines (26 loc) · 749 Bytes
/
load_comments.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
<?php
if (is_array($commentsarray))
{
foreach($commentsarray as $cdata)
{
$com_id=$cdata['com_id'];
$comment=tolink(htmlentities($cdata['comment'] ));
$time=$cdata['created'];
$username=$cdata['username'];
$uid=$cdata['uid_fk'];
$cface=$Wall->Gravatar($uid);
?>
<div class="stcommentbody" id="stcommentbody<?php echo $com_id; ?>">
<div class="stcommentimg">
<img src="profile/<?php echo $session->username; ?>.jpg" class='small_face'/>
</div>
<div class="stcommenttext">
<a class="stcommentdelete" href="#" id='<?php echo $com_id; ?>' title='Delete Comment'>X</a>
<b><?php echo $username; ?></b> <?php echo $comment; ?>
<div class="stcommenttime"><?php time_stamp($time); ?></div>
</div>
</div>
<?php
}
}
?>