=========================== */ ?> deleteComment($_GET['delete']); header("Location: comments.php?delete=true"); die(); } 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"]); if (isset($_POST["id_comment"])) { $comment->modifyComment($_POST, $_POST["id_comment"]); } else { $comment->generateCookie($_POST); $_POST["spam"] = ($comment->isSpam($_POST)) ? "1" : "0"; $_POST["ip_user"] = $_SERVER["REMOTE_ADDR"]; if ($comment->addComment($_POST)) { header("Location: comments.php?added=true"); die(); } else { header("Location: comments.php?added=false"); die(); } } } else { if ($isEdition) { $row = $comment->getCommentByID($userId); } ?> gelato :: <?php echo __("add user")?>