sign out first before trying to create a new account.'), 'signout.php'), $hdr, $hdrfn); printFooter(); exit; } oc_sendNoCacheHeaders(); require_once OCC_FORM_INC_FILE; require_once OCC_COMMITTEE_INC_FILE; if (oc_hookSet('committee-signup-pre')) { foreach ($GLOBALS['OC_hooksAR']['committee-signup-pre'] as $hook) { require_once $hook; } } // Verify keycode $programKeycodeAR = explode(',', $OC_configAR['OC_keycode_program']); $reviewerKeycodeAR = explode(',', $OC_configAR['OC_keycode_reviewer']); if ($OC_configAR['OC_paperAdvocates'] && isset($_POST['keycode']) && in_array($_POST['keycode'], $programKeycodeAR)) { printHeader(oc_('Program Committee Signup'), 3); if (! $OC_statusAR['OC_pc_signup_open']) { warn(oc_('Committee sign-up is closed')); } $committee = "program"; $committeeTrans = oc_('Program Committee'); $oncommittee = "T"; $signUpNotice = $OC_configAR['OC_programSignUpNotice']; } elseif (isset($_POST['keycode']) && in_array($_POST['keycode'], $reviewerKeycodeAR)) { printHeader(oc_('Reviewer Committee Signup'), 3); if (! $OC_statusAR['OC_rev_signup_open']) { warn(oc_('Committee sign-up is closed')); } $committee = "reviewer"; $committeeTrans = oc_('Review Committee'); $oncommittee = "F"; $signUpNotice = $OC_configAR['OC_reviewerSignUpNotice']; } else { warn(oc_('The keycode entered is incorrect. Please click on the Back button to try again. If you are still unable to access the committee sign up page, please contact the Chair.'), $hdr, $hdrfn); } if (isset($_POST['ocaction']) && ($_POST['ocaction'] == "Sign Up")) { $err = ''; $qfields = array(); $tfields = array(); require_once 'committee-validate.inc'; if (!empty($err)) { print '
' . oc_('Thank you for signing up. We have emailed you a confirmation with your information.') . '
' . //T: Use care when translating the href - "mailto" and "subject" are not translated. %2%s = event short name (e.g., CONF2012) sprintf(oc_('If you have any questions, please contact the Chair'), $OC_configAR['OC_pcemail'], $OC_configAR['OC_confName']) . '
'; // ocIgnore included so poEdit picks up (DB) template translation $ocIgnoreSubject = oc_('Committee Signup'); //T: [:OC_confName:] is the event name; [:committee:] will be either "Program Committee" or "Review Committee"; [:OC_pcemail:] is an email address $ocIgnoreBody = oc_('Thank you for signing up for the [:OC_confName:] [:committee:]. Below is the information you provided. If you have any questions, please contact [:OC_pcemail:] or reply to this email. [:fields:]'); list($mailsubject, $mailbody) = oc_getTemplate('committee-signup'); $fields = oc_genFieldMessage($OC_reviewerFieldSetAR, $OC_reviewerFieldAR, $_POST); $templateExtraAR = array( 'committee' => $committeeTrans, 'fields' => oc_('Reviewer ID') . ': ' . $rid . "\n\n" . $fields ); $mailsubject = oc_replaceVariables($mailsubject, $templateExtraAR); $mailbody = oc_replaceVariables($mailbody, $templateExtraAR); if (oc_hookSet('committee-signup-add')) { foreach ($GLOBALS['OC_hooksAR']['committee-signup-add'] as $hook) { require_once $hook; } } print $confirmmsg; sendEmail($_POST['email'], $mailsubject, $mailbody, $OC_configAR['OC_notifyReviewerSignup']); printFooter(); exit; } } // Display notice & form if (!empty($signUpNotice)) { print '