exit; } if ($_POST['submit_no']) { $msg->addFeedback('CANCELLED'); if ($isPhoto) { header('Location: photo.php?pid=' . $pid . SEP . 'aid=' . $aid); } else { header('Location: albums.php?id=' . $aid); } exit; } if ($_POST['submit_yes']) { //delete if ($pid == 0) { //not a photo $pa->deleteComment($comment_id, false); $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY'); Header('Location: albums.php?id=' . $aid); exit; } else { $pa->deleteComment($comment_id, true); $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY'); Header('Location: photo.php?pid=' . $pid . SEP . 'aid=' . $aid); exit; } } require AT_INCLUDE_PATH . 'header.inc.php'; $hidden_vars['comment_id'] = $comment_id; $hidden_vars['aid'] = $aid; $hidden_vars['pid'] = $pid; $msg->addConfirm(array('PA_DELETE_COMMENT'), $hidden_vars);