'; exit; } if (empty($_POST['messageid'])){ echo ''; exit; } if (empty($_SESSION['username'])){ echo ''; exit; } $results = claim_complaint($_SESSION['username'],$_POST['messageid']); if (strpos(strtolower($results),"fail") !== false){ echo ''; exit; } echo '
View Complaints Logout
Complaints can not be claimed by same user complaint is about.
Please select a complaint to view.
Failed to determine moderator name.
Succesfully claimed report ' . trim($_POST['messageid']) . '.'; } ?>