<h2>Logged as <?php echo Session::Get('current_user')->Get('username'); ?> </h2> <a href="../user/settings.php">My Account</a> <a href="../auth/logout.php">Logout</a> <?php } else { ?> <a href="../auth/login.php">Log in</a> <a href="../auth/signup.php">Sign up</a> <?php } ?> <img src="<?php echo $user->GetAvatar(); ?> " style="width:300px;"><br> <?php echo $user->Get('username'); ?> <br> Joined : <?php echo $user->Get('join_date'); ?> <?php } ?> </body> </html>
$ownerid = Comment::GetAttrib($id, 'owner'); $owner = User::GetAttrib($ownerid, 'name'); $body = Comment::GetAttrib($id, 'body'); $rating = Comment::GetAttrib($id, 'rating'); $comment_stack[] = array($cid, $jsid, $flags, $comments, $text); $cid = $id; $jsid = uniqid(); $flags = 1; $comments = Comment::ListAll($cid, 1); $text = "See more comments "; ?> <div class="comment"> <div class="avatar"> <div class="user_image"> <img src="<?php echo User::GetAvatar($ownerid); ?> " /> </div> </div> <h5><?php echo $subject; ?> - Posted at <?php echo $timestamp; ?> by <?php echo $owner; ?> <a class="bodylink" id="report_<?php echo $cid;