//Read the session variables
$arrPostInfo =& $_SESSION["arrPostInfo"];
$arrAttachmentInfo =& $_SESSION["arrAttachmentInfo"];
$arrContent =& $_SESSION["content"];
//get the conference info to get the contact mail
$conferenceInfo = get_conference_info();
//Get the paper information
$paperInfo = get_paper_info($_POST["paperID"]);
if (update_PaperStatus($arrPostInfo["paperID"], $arrPostInfo["status"])) {
    if ($_POST["status"] == "Accepted") {
        // Remove any previous record
        remove_paper_presentation($_POST["paperID"]);
        // Add to scheduling system as an unscheduled paper
        assign_paper_presentation_type($_POST["paperID"], $_POST["type"]);
        // If all is well, then it will get autoscheduled
        autoschedule_waiting_papers();
    } else {
        remove_paper_presentation($_POST["paperID"]);
    }
    //Now using pear SMTP mail instead of libmail
    //Send Email to user
    //~ $mail = new Mail();
    //~ $mail -> Organization($conferenceInfo -> ConferenceCodeName);
    //~ $mail -> ReplyTo($conferenceInfo -> ConferenceContact);
    //~ $mail -> From($conferenceInfo -> ConferenceContact);
    //~ $mail -> To($arrPostInfo["email"]);
    //~ $mail -> Subject($arrContent["subject"]);
    //~ $mail -> Body($arrContent["content"]);
    //~ if ($arrPostInfo["cc"] != "")
    //~ $mail -> Cc($arrPostInfo["cc"]);
    //~ if(!empty($arrAttachmentInfo["file"]["name"])){
Example #2
0
function accept($PaperID)
{
    // 		echo "accepting $PaperID<br>"; return;
    remove_paper_presentation($PaperID);
    // Add to scheduling system as an unscheduled paper
    assign_paper_presentation_type($PaperID, 1);
    // oral
    // If all is well, then it will get autoscheduled
    autoschedule_waiting_papers();
    update_PaperStatus($PaperID, "Accepted");
}