XIV Международная конференция по квантовой оптике и квантовой информатике 27–30 октября, 2015, Минск, БЕЛАРУСЬ |
|||
             RU EN |
| ||
• Главная • Плакат конференции • Программа конференции • Место проведения конференции • Оргкомитет • Оргвзнос • Регистрация • Важные даты • История ICQOQI |
$d_host="localhost"; $d_login="root"; $d_db="icqoqi2015"; $d_password="miscellaneous"; if (!isset($_GET['status'])) $status=-1; else $status=$_GET['status']; switch ($status) { //--------------------------------------------------------------------------------------------------------- case 0: //обработка данных $flag=0; $test='/[\.\-_A-Za-z0-9]+?@[\.\-A-Za-z0-9]+?[\.A-Za-z0-9]{1,}/'; if (!strlen($_POST['name'])) {echo " Unknown First name ";$flag=1;} if (!strlen($_POST['sname'])) {echo "Unknown Last name ";$flag=1;} if (!strlen($_POST['org'])) {echo "Unknown institution ";$flag=1;} if (!strlen($_POST['email'])) {echo "Unkonwn E-mail ";$flag=1;} if ((!preg_match($test,$_POST['email']))&&(strlen($_POST['email']))) {echo "Incorrect E-mail ";$flag=1;} if ($flag) {$action_label="Register";include("formen.php"); exit;} mysql_connect($d_host, $d_login, $d_password) or die("Error connecting to the database."); mysql_select_db($d_db) or die("Error tables in the database."); $result = @mysql_query("SET NAMES cp1251;"); $msg=""; if (!($_POST['num']>0)) { /* $fname=""; if ($_FILES["filename"]["error"]==0) { if(copy($_FILES["filename"]["tmp_name"],"../dvd/presentations/".$_POST['sname']."_".$_FILES["filename"]["name"])) { $msg=$msg."File successfully loaded! "; $fname=$_POST['sname']."_".$_FILES["filename"]["name"]; } else { include("formen.php"); echo (""); exit; } }*/ $idnum=1000*mt_rand(1,9)+100*mt_rand(0,9)+10*mt_rand(0,9)+mt_rand(0,9); if ($_POST['banket']=='1') $banket=1; else $banket=0; $_POST['abstract']=str_replace('\'', '’', $_POST['abstract']); $_POST['title']=str_replace('\'', '’', $_POST['title']); $_POST['addr']=str_replace('\'', '’', $_POST['addr']); $_POST['sname']=str_replace('\'', '’', $_POST['sname']); $_POST['name']=str_replace('\'', '’', $_POST['name']); $_POST['orgs']=str_replace('\'', '’', $_POST['orgs']); $_POST['authors']=str_replace('\'', '’', $_POST['authors']); $_POST['org']=str_replace('\'', '’', $_POST['org']); $result = @mysql_query("INSERT INTO conference (email, name, sname, inst, vznos, abst, title, authors, orgs, file, addr, dtype, idnum, banket) VALUES ('".$_POST['email']."', '".$_POST['name']."', '".$_POST['sname']."', '".$_POST['org']."', '".$_POST['vznos']."', '".$_POST['abstract']."', '".$_POST['title']."', '".$_POST['authors']."', '".$_POST['orgs']."', '".$fname."', '".$_POST['addr']."', '".$_POST['dtype']."', '".$idnum."', '".$banket."');") or die("Can not execute an append query."); //$result=@mysql_query("SELECT MAX(num) FROM conference WHERE 1"); $num=mysql_insert_id(); $letter=" You have successfully registered report '".$_POST['title']."' to participate in the XIV International Conference on Quantum Optics and Quantum Information to be held in Minsk, Belarus from 27th to 30th October 2015. You will receive the notification of acceptance soon. Your registration number is ".$num.$idnum.". If necessary, you can change your registration information by clicking on this link. Best wishes, Organizing Committee XIV International Conference on Quantum Optics and Quantum Information. This is an automated message - please do not reply directly to this email."; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; mail($_POST['email'],"XIV International Conference on Quantum Optics and Quantum Information",$letter, $headers); mail("v.p.stefanov@mail.ru","Новая регистрация на сайте",$_POST['name']." ". $_POST['oname']." ".$_POST['sname']." зарегистрировал доклад '".$_POST['title']."' для участия в ICQOQI2015. Регистрационный номер ".$num.$idnum."."); mail("icqoqi@ifanbel.bas-net.by","Новая регистрация на сайте",$_POST['name']." ". $_POST['oname']." ".$_POST['sname']." зарегистрировал доклад '".$_POST['title']."' для участия в ICQOQI2015. Регистрационный номер ".$num.$idnum."."); $msg=$msg."Registration is complete! Your registration number ".$num.$idnum." will be sent to your E-emall ".$_POST['email']."."; include("regresulten.php"); exit; } else { $flagg=0; /*if ($_FILES["filename"]["error"]==0) { if(copy($_FILES["filename"]["tmp_name"],"../dvd/presentations/".$_POST['sname']."_".$_FILES["filename"]["name"])) { $flagg=1; $msg=$msg."File successfully loaded! "; $fname=$_POST['sname']."_".$_FILES["filename"]["name"]; } else { include("formen.php"); echo (""); exit; } }*/ if ($_POST['banket']=='1') $banket=1; else $banket=0; if($flagg==1) { $result = @mysql_query("UPDATE conference SET file='".$fname."' WHERE (id='".$_POST['num']."');") or die("Can not change the record"); } $msg.=" "; $_POST['abstract']=str_replace('\'', '’', $_POST['abstract']); $_POST['title']=str_replace('\'', '’', $_POST['title']); $_POST['addr']=str_replace('\'', '’', $_POST['addr']); $_POST['sname']=str_replace('\'', '’', $_POST['sname']); $_POST['name']=str_replace('\'', '’', $_POST['name']); $_POST['orgs']=str_replace('\'', '’', $_POST['orgs']); $_POST['authors']=str_replace('\'', '’', $_POST['authors']); $_POST['org']=str_replace('\'', '’', $_POST['org']); $result = @mysql_query("UPDATE conference SET abst='".$_POST['abstract']."', title='".$_POST['title']."', authors='".$_POST['authors']."', email='".$_POST['email']."', name='".$_POST['name']."', sname='".$_POST['sname']."', inst='".$_POST['org']."', vznos='".$_POST['vznos']."', orgs='".$_POST['orgs']."', addr='".$_POST['addr']."', dtype='".$_POST['dtype']."', banket='".$banket."' WHERE (id='".$_POST['num']."');") or die("Can not change the record"); $msg=$msg."Changing of registration data is succesfull"; mail("v.p.stefanov@mail.ru","Изменение рег. данных", "Изменение рег. данных (номер ".$_POST['num'].") ".$fname." ".$_POST['sname']." ".$_POST['name']." ".$_POST['email']." ".$_POST['org']." ".$_POST['dtype']." ".$_POST['title']." ".$_POST['authors']." ".$_POST['abstract']." ".$_POST['addr']." ".$_POST['orgs']." ".$_POST['vznos']); mail("icqoqi@ifanbel.bas-net.by","Изменение рег. данных", "Изменение рег. данных (номер ".$_POST['num'].") ".$fname." ".$_POST['sname']." ".$_POST['name']." ".$_POST['email']." ".$_POST['org']." ".$_POST['dtype']." ".$_POST['title']." ".$_POST['authors']." ".$_POST['abstract']." ".$_POST['addr']." ".$_POST['orgs']." ".$_POST['vznos']); include("regresulten.php"); //exit; } break; //--------------------------------------------------------------------------------------------------------- case 1: //форма поиска echo ""; break; //--------------------------------------------------------------------------------------------------------- case 2: //поиск записи mysql_connect($d_host, $d_login, $d_password) or die("No connection to base data. Please email webmaster."); mysql_select_db($d_db) or die("There is no such table \"".$d_db."\" table in the database\n"); $result = @mysql_query("SET NAMES cp1251;"); // ищем в базе номер $num=floor($_POST['in_num']/10000); $idnum=$_POST['in_num']-10000*$num; $result=@mysql_query("SELECT * FROM conference WHERE ((id='$num') and (idnum='$idnum')) "); # debug code $rows=@mysql_num_rows($result); $cols=@mysql_num_fields($result); if ($rows==0) { $msg=" Report number was not found Back"; include("regresulten.php"); } else { $action_label="Change data"; $num=mysql_result($result,0,0); $email= mysql_result($result,0,5); $name= mysql_result($result,0,1); $sname= mysql_result($result,0,2); $org= mysql_result($result,0,3); $vznos=mysql_result($result,0,6); $abstract=mysql_result($result,0,12); $authors=mysql_result($result,0,10); $title=mysql_result($result,0,9); $fname=mysql_result($result,0,13); $addr=mysql_result($result,0,4); $dtype=mysql_result($result,0,8); $idnum=mysql_result($result,0,14); $banket=mysql_result($result,0,7); $orgs=mysql_result($result,0,11); include("formen.php"); } break; case 158: //регистрация if (!isset($action_label)) { $action_label="Register"; } if (!isset($num)) { $num="-1"; } include("formen.php"); break; //--------------------------------------------------------------------------------------------------------- default: //регистрация echo " If you have already registered you can if necessary change your registration information. "; echo "The registration is closed. "; if (!isset($action_label)) { $action_label="Register"; } if (!isset($num)) { // $num="-1"; } //include("formen.php"); } ?>
|
||
|