} else { if (isset($_POST['set_action'])) { if (isset($_POST['id']) && isset($_POST['action'])) { if (actions::action_review($_POST['action'], array_keys($_POST['id']))) { echo '<div class="a-success">' . $LANG['msg_saved'] . '</div>'; } else { echo '<div class="a-error">' . $LANG['msg_error'] . '</div>'; } } } } } else { if (isset($_GET['action']) && isset($_GET['token']) && check_csrf($_GET['token'], 'reviews_csrf')) { if ($_GET['action'] == 'delete') { if (isset($_GET['id'])) { if (actions::delete_review($_GET['id'])) { echo '<div class="a-success">' . $LANG['msg_deleted'] . '</div>'; } else { echo '<div class="a-error">' . $LANG['msg_error'] . '</div>'; } } } else { if ($_GET['type'] == 'publish' || $_GET['type'] == 'unpublish') { if (isset($_GET['id'])) { if (actions::action_review($_GET['type'], $_GET['id'])) { echo '<div class="a-success">' . $LANG['msg_saved'] . '</div>'; } else { echo '<div class="a-error">' . $LANG['msg_error'] . '</div>'; } } }