1) { foreach($_POST["abs_author_lastname"] as $key=>$author) { $author = ucfirst($_POST["abs_author_firstname"][$key])." ".ucfirst($_POST["abs_author_lastname"][$key]); if($_POST["abs_presenter"][$key]==1) { $abs_authors[] = "".$author." (".($key+1).")"; } else { $abs_authors[] = $author." (".($key+1).")"; } } $abs_authors = implode(', ',$abs_authors); } else { $author = ucfirst($_POST["abs_author_firstname"][0])." ".ucfirst($_POST["abs_author_lastname"][0]); if($_POST["abs_presenter"][0]==1) { $abs_authors = "".$author.""; } else { $abs_authors = $author; } } if(count($_POST["abs_author_lastname"])>1) { foreach($_POST["abs_author_lastname"] as $key=>$author) { $abs_affiliations[] = "(".($key+1).") ".ucfirst($_POST["abs_affiliation"][$key]); } $abs_affiliations = implode(', ',$abs_affiliations); } else { $abs_affiliations = ucfirst($_POST["abs_affiliation"][0]); } $html = '
'.stripslashes(get_option('abstracts_html_header')).'
'.$abs_title.'
'.$abs_authors.'
'.$abs_affiliations.'
'.nl2br($_POST["abs_text"]).'
'; $wpdb->show_errors(); $wpdb->query($wpdb->prepare("INSERT INTO ".$wpdb->prefix."submitted_abstracts (title,authors,author_affiliation,text,html,name,email,presentation_mode,data) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,NOW())",$abs_title,$abs_authors,$abs_affiliations,$_POST["abs_text"],$html,$_POST["your_firstname"].' '.$_POST["your_lastname"],$_POST["your_email"],$_POST["your_preference"])); $abstract_id = $wpdb->insert_id; require_once(ABSPATH."wp-includes/class-phpmailer.php"); require_once(ABSPATH."wp-includes/class-smtp.php"); $keys = array('[AUTHOR]','[ABSTRACT_TITLE]','[BLOGTITLE]'); $values = array($_POST["your_firstname"].' '.$_POST["your_lastname"], $abs_title, get_option('blogname')); $mail = new PHPMailer(); $mail->IsHTML(true); $mail->AddAddress($_POST["your_email"]); $mail->Body = str_replace($keys, $values, get_option('abstracts_mail_template')); $mail->From = get_option('admin_email'); $mail->FromName = get_option('blogname'); $mail->Subject = 'Abstract Submission - '.get_option('blogname'); $mail->Send(); $mail = new PHPMailer(); $mail->IsHTML(true); $mail->AddAddress(get_option('admin_email')); $mail->Body = 'You have a new abstract for \''.get_option('blogname').'\'

Author(s): '.$abs_authors.'
Title: '.$abs_title.'

Click here to view the abstract.'; $mail->From = $_POST["your_email"]; $mail->FromName = $_POST["your_firstname"].' '.$_POST["your_lastname"]; $mail->Subject = 'New Abstract Submitted'; $mail->Send(); if($_FILES) { foreach($_FILES['attachments']['error'] as $key=>$error) { if($error==0) { $fileName = $_FILES['attachments']['name'][$key]; $tmpName = $_FILES['attachments']['tmp_name'][$key]; $fileSize = $_FILES['attachments']['size'][$key]; $fileType = $_FILES['attachments']['type'][$key]; $fileExtension = explode('.',$fileName); $fileExtension = strtolower($fileExtension[count($fileExtension)-1]); if(in_array($fileExtension,explode(' ',get_option('abstracts_permitted_attachments'))) and $fileSize<=get_option('abstracts_maximum_attach_size')) { $fp = fopen($tmpName, 'r'); $fileContent = rawurlencode(fread($fp, $fileSize)); fclose($fp); $wpdb->query($wpdb->prepare("INSERT INTO ".$wpdb->prefix."abstracts_attachments (abstracts_id,filecontent,filename,filemeta,filetype,filesize) VALUES (%d,%s,%s,%s,%s,%s)",$abstract_id,$fileContent,$fileName,$fileType,'',$fileSize)); $uploads[] = array('id'=>$wpdb->insert_id,'filename'=>$fileName,'filesize'=>$fileSize); } elseif($fileSize0,'filename'=>$fileName,'filesize'=>$fileSize,'error'=>'File not supported'); } else { $uploads[] = array('id'=>0,'filename'=>$fileName,'filesize'=>$fileSize,'error'=>'File too big'); } } } } } ?>

Review Your Abstract

Attachments

Here you can download a pdf version of your submitted abstract and verify your attachments.
abstract.pdf [~kb]
[kb]
[]

Complete your submission »

Click the above link to complete the abstract submission process.

Abstract

* Title

Insert the title of your abstract here.

* Authors

Insert authors and theirs affiliation here. Add more co-authors using the appropriate link.
Firstname
Lastname
Affiliation
Is this author the presenter?

* Text

Insert here the text of your abstract. characters left.

Attachments

Use this form to upload your images, photos or tables.
Supported formats:
Maximum attachment size: kb

Presenting Author Informations

Insert here your personal informations and preferences.
Firstname
* Lastname
* Email
Insert here your preferred mode of presentation.
Preference

Submit your abstract »

Click the above link to continue in the abstract submission. Please note that if you are uploading big files the process may take a while. Please be patient and press submit link only once.

* Required field