INELE 2013
December, 2013 Hong Kong Baptist University, Hong Kong

Please enter the username:   password:  

0) { /* while ($user_record= mysql_fetch_assoc($result)) { extract($user_record); } */ $user_record = mysql_fetch_assoc($result); $username= $user_record[username]; $password= $user_record[password]; $salute = $user_record[salute]; $country = $user_record[country]; $rtype = $user_record[rtype]; $rfee = $user_record[rfee]; $attempt = $user_record[attempt]+1; $syscode2= sprintf("%02s", $attempt); $invoiceNum = $user_record[regnum].$syscode2; ?>

Username:
Reference Number:
Personal Particulars
Title: Surname: Personal Name:
Country: Institution: Dept./Div.:
Email Address: Phone: Fax:
Mailing Address:

Paper Details
Abstract uploaded:  

Registration Details 1
Conference Fee:  *    >Regular(HK$2,000 or US$260, Early bird, HK$1,000 or US$130 on or before October 14, 2013)
>Student (HK$1,000 or US$130 / Early bird, HK$500 or US$65 on or before October 14, 2013)
Online Payment with :   *    > Visa / MasterCard   *    > China UnionPay

Registration Details 1
Conference Fee:  *    
Online Payment with :   *    > Visa / MasterCard   *    > China UnionPay
Payment Received:YesPending for confirmation


Enter this code:

\n"; $newfilesize=$_FILES['upload_abstract']['size']; $error = $_FILES['upload_abstract']['error']; $dir='/var/www/html/inele/register/abstract/'; $path = $dir . $username ; if (!file_exists($path)) mkdir($path, 0755); $file = $path . "/" . $newfilename ; $tmp_name=$_FILES['upload_abstract']['tmp_name']; if ($error==UPLOAD_ERR_OK) { move_uploaded_file($tmp_name, $file); } else if ($error==UPLOAD_ERR_NO_FILE) { $nofile=1; } else { print("Upload failed.\n"); } $attempt=$_REQUEST['attempt']+1; $syscode2=sprintf("%02s",$attempt); $invoiceNum=$_REQUEST[regnum].$syscode2; // echo $invoiceNum; list($rtype,$rfee)=split('-',$_REQUEST[rrfee]); if ($rtype=="" || $rfee==""){ $rtype=$_REQUEST[rtype]; $rfee=$_REQUEST[rfee]; } $total_fee = $rfee ; if (isset($newfilename) && $newfilename != '') { $filename1=$newfilename; } else { $filename1=handleOText($_REQUEST[prefilename]); // $newfiletype=mime_content_type($filename1); $file = $path . "/" . $filename1; } $query="update $dbtable set salute = '" .handleOText($_REQUEST['salute'])."', fname ='".handleOText($_REQUEST['fname'])."', lname ='".handleOText($_REQUEST['lname'])."', email ='".handleOText($_REQUEST['email'])."', country = '".handleOText($_REQUEST['country'])."', phone = '".handleOText($_REQUEST['phone'])."', fax = '".handleOText($_REQUEST['fax'])."', institution = '".handleOText($_REQUEST['institution'])."', department = '".handleOText($_REQUEST['department'])."', address = '".handleOText($_REQUEST['address'])."', rtype = '".handleOText($rtype)."', rfee = '".handleOText($rfee)."', invletter = '".handleOText($_REQUEST['invletter'])."', ptype = '".handleOText($_REQUEST['ptype'])."', topic = '".handleOText($_REQUEST['topic'])."', pretype = '".handleOText($_REQUEST['pretype']). "', pretitle = '".handleOText($_REQUEST['pretitle'])."', filename = '".handleOText($filename1)."', attempt = '".handleOText($attempt)."', ip2 = '". $ip2 . "', moddate = SYSDATE() where username= '" . $username ."'"; $result = mysql_query($query); $receiver = $_REQUEST[salute] . " " . $_REQUEST[fname] . " " . $_REQUEST[lname]; ?>
Username:
Reference Number:
Personal Particulars
Name:
Email Address:
Country:
Phone: Fax:
Institution: Department:
Mail Address:
Abstract Details
Abstract file details:
Registration Type:
Conference Fee:
Payment method:
Payment Status:
1$itemcodeINELE2013 HONG KONG -Registration Fee$_REQUEST[rfee]"; ?>
\r\n"; $headers .= "Reply-To: <".$bcc.">\r\n"; $headers .= "Bcc: $bcc1\r\n"; $headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-".$random_hash."\""; $subject = "Update of Online Registration of INELE 2013 HongKong"; mb_internal_encoding('UTF-8'); $subject=mb_encode_mimeheader($subject, 'UTF-8'); $mail_message = " Dear $receiver,

Your online registration for INELE 2013 has been modified. It is sent to $bcc.
\n Below are details that you have submitted. For any query, please feel free to contact us by:
\n "; $changestatus = $nofile ? "No change":"Update"; // any change in abstract file $mail_table="
Reference number : $_REQUEST[regnum]
Personal Particulars
Name: $receiver
Country: $_REQUEST[country] Email Address: $_REQUEST[email]
Phone: $_REQUEST[phone] Fax: $_REQUEST[fax]
Institution: $_REQUEST[institution] Department/Division: $_REQUEST[department]
Mail Address: $_REQUEST[address]
Abstract Details
Abstract file:$filename1 ( $changestatus )
Enquiry Login
Username: $username
Password: $_REQUEST[password]
For enquiry, please quote the above reference number.
"; //real send // $actual_msg= ''.$mail_message.$mail_table.''; $actual_msg= $mail_message.$mail_table; $actual_msg=str_replace(">",">\n",$actual_msg); //to avoid chopping characters if a line is too long $actual_msg=str_replace(" "," \n",$actual_msg); //define the body of the message. $actmsg = "--PHP-mixed-$random_hash\r\n" ."Content-Type: multipart/alternative; boundary=\"PHP-alt-$random_hash\"\r\n\r\n"; $actmsg .= "--PHP-alt-$random_hash\r\n" ."Content-Type: text/plain; charset=\"iso-8859-1\"\r\n" ."Content-Transfer-Encoding: 7bit\r\n\r\n"; $textmessage='this is a plain text'; $actmsg .= strip_tags($textmessage); $actmsg .= "\r\n\r\n--PHP-alt-$random_hash\r\n" ."Content-Type: text/html; charset=\"iso-8859-1\r\n" ."Content-Transfer-Encoding: 7bit\r\n\r\n"; $actmsg .= $actual_msg; $actmsg .="\r\n\r\n--PHP-alt-$random_hash--\r\n\r\n"; //include attachment $actmsg .= "--PHP-mixed-$random_hash\r\n" ."Content-Type: ".$newfiletype."; name=\"$filename1\"\r\n" ."Content-Transfer-Encoding: base64\r\n" ."Content-Disposition: attachment; filename=\"$filename1\"\r\n\r\n"; $actmsg .= chunk_split(base64_encode(file_get_contents($file))); $actmsg .= "/r/n--PHP-mixed-$random_hash--"; ## Uncomment the following line to pre-assign the receiver_email for testing // $receiver_email = "morris@hkbu.edu.hk"; ## Uncomment the following line for production (actual send out) mail($receiver_email, $subject,$actmsg, $headers); // email_end } /* endif security code correct */ else { echo "Incorrect Security Code!"; } } /* endif update */ } ?>