.
*/
if( !isset($_SESSION['sess_uid']) AND !isset($_SESSION['body_BodyCode']) ) {
include("../include/header.php");
echo " You cannot call this file directly.";
include("../include/footer.php");
exit;
}
if( !isset($setup['SetupEventType']) ) {
exit();
}
if( !is_before("EventDatePartTypeFix") ) {
// Deadline passed, no access
echoln("It is after the deadline, you cannot change the number of members for your body any more.");
echoln("
As the selection of participants already started, which is based upon the number of members your local has, you cannot change this number any more. Also, keep in mind ");
echoln("that this is the number of members you'll have to pay for at the Agora, and which is used to assign the amount of votes.");
echoln("
"); echoln("
A local must have at least 10 members. Data not saved."); }else { if( isset($_POST['Agree']) ) { $query="UPDATE `ab_bodies` SET `MemberClaimed`=".addslashes(get_int("MemberClaimed")).", `MemberClaimedBy`='".addslashes(strlen($_SESSION['sess_name'])>0?$_SESSION['sess_name']:"Board")."', `MemberLastUpdate`='" . date("Y-m-d H:i:s") . "' WHERE `BodyCode`='".addslashes($_SESSION['body_BodyCode'])."'"; if( doquery($query) ) { echoln("
Number of members saved."); $_SESSION['body_MemberClaimed'] = get_int("MemberClaimed"); $_SESSION['body_MemberClaimedBy'] = $_SESSION['sess_name']; $_SESSION['body_MemberLastUpdate'] = date("Y-m-d H:i:s"); $numclaimed = get_int("MemberClaimed"); }else { echoln("
Failed saving number of members."); } }else { echoln("
You must agree to the agreement."); $numclaimed = get_int("MemberClaimed"); } } } echoln("
"); } ?>