".__("The comment has been eliminated successfully.")."
isAdmin(); $isEdition = isset($_GET["edit"]); $commentId = ($isEdition) ? $_GET["edit"] : null; if (isset($_POST["btnAdd"])) { unset($_POST["btnAdd"]); $_POST["username"] = strip_tags($_POST["username"]); $_POST["email"] = strip_tags($_POST["email"]); $_POST["web"] = strip_tags($_POST["web"]); $_POST["content"] = $util->removeBadTags($_POST["content"], true); if (isset($_POST["id_comment"])) { if ($isAdmin) { if ($comment->modifyComment($_POST, $_POST["id_comment"])) { header("Location: comments.php?modified=true"); die(); } else { header("Location: comments.php?modified=false"); die(); } } } else { $comment->generateCookie($_POST); $_POST["spam"] = ($comment->isSpam($_POST)) ? "1" : "0"; $_POST["ip_user"] = $_SERVER["REMOTE_ADDR"]; $strEnd=($conf->urlFriendly) ? "/" : ""; if ($comment->addComment($_POST)) { header("Location: ".$conf->urlSorbet.($conf->urlFriendly?"/post/":"/index.php?post=").$_POST["id_post"].$strEnd); die(); } else { header("Location: ".$conf->urlSorbet.($conf->urlFriendly?"/post/":"/index.php?post=").$_POST["id_post"].$strEnd); die(); } } } if ($isAdmin) { if (isset($_GET["delete"])) { if ($comment->deleteComment($_GET['delete'])) { header("Location: comments.php?deleted=true"); die(); } else { header("Location: comments.php?deleted=false"); die(); } } ?>
".__("The comment has been eliminated successfully.")."