* @package zoneideas * @subpackage idea * @author Serg Podtynnyi <*****@*****.**> */ /** * * */ ob_start(); include_once "../core.php"; $action = false; if (!RESTRICT_ALL || User::Logged()) { $id = (int) $_SERVER["QUERY_STRING"]; // If remove idea if (isset($_GET["removeidea"])) { if (Idea::Remove(Idea::GetById($id), User::$current)) { header("Location:" . PREFIX . "/dashboard/"); exit; } else { $error_message = I18n::L("This idea can not be removed by you."); Viewer::AddData("error_message", $error_message); } } // if remove comment if (isset($_GET["removecomment"])) { $idea = Idea::GetById($id); $comment = Comment::GetById($_GET["removecomment"]); if (Comment::Remove($comment, User::$current)) { header("Location:" . PREFIX . "/idea?{$idea->idea_id}"); exit; } else {
* @subpackage idea * @author Serg Podtynnyi <*****@*****.**> */ /** * * */ ob_start(); include_once "../core.php"; $action = false; if (!RESTRICT_ALL || User::Logged()) { $id = (int) $_SERVER["QUERY_STRING"]; // If remove idea if (isset($_GET["removeidea"])) { $idea = Idea::GetById($id); if (Idea::Remove($idea, User::$current)) { header("Location:" . PREFIX . "/dashboard/"); exit; } else { $error_message = I18n::L("This idea can not be removed by you."); Viewer::AddData("error_message", $error_message); } } // if remove comment if (isset($_GET["removecomment"])) { $idea = Idea::GetById($id); $comment = Comment::GetById($_GET["removecomment"]); if (Comment::Remove($comment, User::$current)) { header("Location:" . PREFIX . "/idea?{$idea->idea_id}"); exit; } else {