public function misc_comments_edit()
 {
     global $mybb, $settings, $lang, $theme, $templates, $db;
     if (!isset($mybb->input["cid"], $mybb->input["my_post_key"], $mybb->input["memberuid"]) || !is_numeric($mybb->input["cid"]) || !is_numeric($mybb->input["memberuid"]) || !is_string($mybb->input["my_post_key"])) {
         return;
     }
     $memprofile = get_user($mybb->input["memberuid"]);
     $comment = $this->comment_retrieve_from_db((int) $mybb->input["cid"], $memprofile);
     MyProfileUtils::lang_load_myprofile();
     if (empty($comment) || !$this->can_edit_comment($comment)) {
         MyProfileUtils::output_error($lang->mp_comments_cannot_edit_comment, 400);
     }
     $original_text = new stdClass();
     $original_text->message = $comment["message"];
     $original_text = json_encode($original_text);
     if ($settings["mpcommentsstatusenabled"] == "1") {
         if ($comment["isprivate"] == "0") {
             $comment_public_selected = 'selected="selected"';
         } else {
             $comment_private_selected = 'selected="selected"';
         }
         $status_select_class = "select-comments-edit";
         eval("\$status .= \"" . $templates->get('myprofile_comments_form_status') . "\";");
     }
     $cid = $comment["cid"];
     eval("\$comments_edit .= \"" . $templates->get('myprofile_comments_edit', 1, 0) . "\";");
     echo $comments_edit;
 }