} break; case "registerUser": $register->register($_POST['user']); break; case "resetPassword": $register->resetPassword($_POST['newPass'], $_POST['key']); break; case "forgotPassword": $result = $register->forgotPassword($_POST['email']); if ($result !== TRUE) { echo $result; } break; case "postComment": $ASComment = new ASComment(); echo $ASComment->insertComment(ASSession::get("user_id"), $_POST['comment']); break; case "updatePassword": $user = new ASUser(ASSession::get("user_id")); $user->updatePassword($_POST['oldpass'], $_POST['newpass']); break; case "updateDetails": $user = new ASUser(ASSession::get("user_id")); $user->updateDetails($_POST['details']); break; case "changeRole": onlyAdmin(); $user = new ASUser($_POST['userId']); echo ucfirst($user->changeRole()); break;
<div class="span9"> <div class="comments"> <h3 id="comments-title"> <?php echo ASLang::get('comments_wall'); ?> <small><?php echo ASLang::get('last_7_posts'); ?> </small> </h3> <div class="comments-comments"> <?php $ASComment = new ASComment(); ?> <?php $comments = $ASComment->getComments(); ?> <?php foreach ($comments as $comment) { ?> <blockquote> <p><?php echo htmlentities(stripslashes($comment['comment'])); ?> </p> <small> <?php echo htmlentities($comment['posted_by_name']);