pkg_comments.php 793 Bytes
Newer Older
1
2
<div class="pgbox">
<?php
3
$uid = uid_from_sid($SID);
4
5
while (list($indx, $carr) = each($comments)) { ?>
	<div class="comment-header"><?php
6
	if (canDeleteCommentArray($carr, $atype, $uid)) {
7
8
9
10
11
		$durl = '<a href="pkgedit.php?del_Comment=1';
		$durl.= '&comment_id=' . $carr['ID'] . '&ID=' . $row['ID'];
		$durl.= '"><img src="images/x.png" border="0"';
		$durl.= ' alt="' . __("Delete comment") . '"></a> ';

12
		echo $durl;
13
	}
14

15
	if ($SID) {
16
		$carr['UserName'] = "<a href=\"account.php?Action=AccountInfo&amp;ID={$carr['UsersID']}\">{$carr['UserName']}</a>";
17
	}
18
19
20
21
22
23
24
25

	echo __('Comment by: %s on %s', $carr['UserName'], gmdate('r', $carr['CommentTS']));
?></div>
	<blockquote class="comment-body">
	<div>
<?php echo nl2br(htmlspecialchars($carr['Comments'])) ?>
	</div>
	</blockquote>
26
<?php
27
} ?>
28
</div>