Example #1
0
		$proposal->add_proponent(trim($_POST['proponent']));
		redirect();
		break;
	case "confirm_proponent":
		Login::access_action("entitled", $_SESSION['ngroup']);
		action_required_parameters('member');
		if (!$proposal->is_proponent(Login::$member)) {
			warning(_("Your are not a proponent of this proposal."));
			redirect();
		}
		$member = new Member($_POST['member']);
		if (!$member->id) {
			warning(_("The member does not exist."));
			redirect();
		}
		$proposal->confirm_proponent($member);
		redirect();
		break;
	case "confirm_remove_proponent":
		Login::access_action("entitled", $_SESSION['ngroup']);
		$proposal->remove_proponent(Login::$member);
		redirect();
		break;

	case "add_support":
		Login::access_action("entitled", $_SESSION['ngroup']);
		$proposal->add_support();
		redirect("#supporters");
		break;
	case "add_support_anonym":
		Login::access_action("entitled", $_SESSION['ngroup']);