} else { echo '<span style="font-style:italic;">(hidden)</span>'; } } else { echo '<span style="font-style:italic;">(none)</span>'; } ?> </dd> <dt>Last seen</dt> <dd> not implemented </dd> <dt>Member since</dt> <dd> <?php echo timehtml5($profile['when_registered']); ?> </dd> </dl> <div class="fc"></div> <?php if ($profile['banned']) { echo '<div class="ibox_error" style="width:768px;margin-top:4px;padding:4px 8px;">User is banned (ban is permanent until lifted; ban durations have not been implemented)</div>'; } ?> </section> <section id="profile_issues"> <header> <h3> <span class="label">Issue(s) posted</span>
<article id="comment_<?php echo $comment['id']; ?> " class="comment<?php echo $comment['type'] != '' ? ' moderation' : ''; ?> "> <table> <tr> <td> <div class="user"><?php echo getuinfo($comment['author'], false); ?> </div> <div class="time">Posted on <?php echo timehtml5($comment['when_posted'], true); ?> </div> <div class="actions"> <?php if ($comment['type'] == '') { ?> <!--<img src="<?php echo $location['images']; ?> /btnmini/edit.png" alt="" />--> <img class="comment_quote" src="<?php echo $location['images']; ?> /btnmini/quote.png" alt="" /> <!--<img src="<?php
/** * @version 0.1 * @since 0.1 */ function timeago($timestamp, $pubdate = false, $short = false) { // original function written by Thomaschaaf - http://stackoverflow.com/questions/11/how-do-i-calculate-relative-time if (gettype($timestamp) == 'string') { $timestamp = strtotime($timestamp); } $second = 1; $minute = 60 * $second; $hour = 60 * $minute; $day = 24 * $hour; $month = 30 * $day; if (!$short) { $ssecond = ' second'; $sseconds = ' seconds'; $sminute = ' minute'; $sminutes = ' minutes'; $shour = ' hour'; $shours = ' hours'; $sday = ' day'; $sdays = ' days'; } else { $ssecond = 's'; $sseconds = 's'; $sminute = 'm'; $sminutes = 'm'; $shour = 'h'; $shours = 'h'; $sday = 'd'; $sdays = 'd'; } $delta = time() - $timestamp; $hasago = true; if ($delta < 1 * $minute) { $ret = $delta == 1 ? "1{$ssecond}" : $delta . "{$sseconds}"; } elseif ($delta < 2 * $minute) { $ret = "1{$sminute}"; } elseif ($delta < 45 * $minute) { $ret = floor($delta / $minute) . "{$sminutes}"; } elseif ($delta < 90 * $minute) { $ret = "1{$shour}"; } elseif ($delta < 24 * $hour) { $ret = floor($delta / $hour) . "{$shours}"; } elseif ($delta < 48 * $hour) { $ret = "1{$sday}"; } elseif ($delta < 30 * $day) { $ret = floor($delta / $day) . "{$sdays}"; } else { $hasago = false; $ret = date((!$short ? 'F' : 'M') . ' d' . ($delta < 12 * $month ? '' : " 'y"), $timestamp); if ($short) { $ret = strtolower($ret); } } if ($hasago) { $ret .= ' ago'; } return timehtml5($timestamp, $pubdate, $ret); }