if (isset($_SESSION[PREFIX . 'user_id']) && isset($_SESSION[PREFIX . "inloggad"]) && $_SESSION[PREFIX . "inloggad"] >= 3) { if (isset($_GET['operation']) && isset($_GET['id'])) { if ($_GET['operation'] == "uncheckin") { feedback_set_not_checked_in($_GET['id']); f_op_display_new_feedback($_GET['id'], $_GET['div_id']); } else { if ($_GET['operation'] == "unresolve") { feedback_set_unresolved($_GET['id']); f_op_display_new_feedback($_GET['id'], $_GET['div_id']); } else { if ($_GET['operation'] == "not_implemented") { feedback_set_not_implemented($_GET['id']); f_op_display_new_feedback($_GET['id'], $_GET['div_id']); } else { if ($_GET['operation'] == "feedback_accept") { feedback_set_accepted($_GET['id']); f_op_display_new_feedback($_GET['id'], $_GET['div_id']); } else { if ($_GET['operation'] == "feedback_check_in") { feedback_set_checked_in($_GET['id']); f_op_display_new_feedback($_GET['id'], $_GET['div_id']); } else { if ($_GET['operation'] == "feedback_resolve") { feedback_set_resolved($_GET['id']); f_op_display_new_feedback($_GET['id'], $_GET['div_id']); } else { if ($_GET['operation'] == "feedback_unaccept") { feedback_set_unaccepted($_GET['id']); f_op_display_new_feedback($_GET['id'], $_GET['div_id']); } else { if ($_GET['operation'] == "bugfix") {
function feedback_set_accepted($id) { //Accept the feedback $sql = "UPDATE " . PREFIX . "feedback SET not_implemented=NULL, accepted='" . date("YmdHis") . "', resolved=NULL WHERE id=" . sql_safe($id) . ";"; mysql_query($sql); //Set parent to accepted $sql = "SELECT merged_with FROM " . PREFIX . "feedback WHERE id=" . sql_safe($id) . ";"; if ($ff = mysql_query($sql)) { if ($f = mysql_fetch_array($ff)) { if ($f['merged_with'] != NULL) { feedback_set_accepted($f['merged_with']); } } } }