Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $cAction = substr($_REQUEST['c'], 0, 3);
- $getComment = $comments->getCommentById('comments', $cID);
- if ($getComment)
- {
- switch($cAction)
- {
- case 'rpl':
- $commentPoster = $users->getById($getComment['user']);
- $page->smarty->assign('showReview', 'true');
- $page->smarty->assign('msgUser', ( $commentPoster ? $commentPoster['username'] : Users::MEMBER_UNKNOWN) );
- $page->smarty->assign('msgReview', $bb_code->process($getComment['text']));
- break;
- case 'del':
- $allow = $users->checkCurrentUserRights($getComment['user'], $page->userdata);
- if ($allow)
- {
- $this->deleteCommentById($cID, $viewData['id']);
- header("Location: /details/".$viewData['id'].DIRECTORY_SEPARATOR.$viewData['name']."?cset=".$cset."#comments");
- }
- break;
- }
- }
- else
- $page->show404();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement