IV Congress of Belarusian Physicists 24–26 April 2013, Minsk, Belarus |
|||
             RU EN |
|
||
• Home • Programme • List of Participants • Organizers&Committees • Registration • Fees • Symposium •Belarusian-Swedish-Ukrainian Scientific Workshop |
$d_host="localhost"; $d_login="root"; $d_db="congress2013"; $d_password="miscellaneous"; //$dtype=1; $banket=0; $hotel=0; 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"],"./data/".$_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; if ($_POST['hotel']=='1') $hotel=1; else $hotel=0; if ($_POST['seminar']=='1') $seminar=1; else $seminar=0; $result = @mysql_query("INSERT INTO congress (email, name, sname, org, payment, abstract, title, authors, filename, oname, addr, dtype, idnum, banket, place, hotel, seminar) VALUES ('".$_POST['email']."', '".$_POST['name']."', '".$_POST['sname']."', '".$_POST['org']."', '".$_POST['vznos']."', '".$_POST['abstract']."', '".$_POST['title']."', '".$_POST['authors']."', '".$fname."', '".$_POST['oname']."', '".$_POST['addr']."', '".$_POST['dtype']."', '".$idnum."', '".$banket."', '".$_POST['orgs']."', '".$hotel."', '".$seminar."');") or die("Can not execute an append query."); //$result=@mysql_query("SELECT MAX(num) FROM congress WHERE 1"); $num=mysql_insert_id(); $letter=" ".$_POST['name']." ". $_POST['oname']." ".$_POST['sname']."! You have successfully registered report '".$_POST['title']."' to participate in the IV Congress of Physicists in Belarus will be held in Minsk, Belarus from 24th to 26th April 2013. Your registration number is ".$num.$idnum.". If necessary, you can change your registration data in the registration section on the website of the Congress. Best wishes, Organizing Committee IV Congress of Belarusian Physicists http://master.basnet.by/congress2013/"; mail($_POST['email'],"IV Congress of Physicists of Belarus",$letter); mail("l1m1t@mail.ru","Новая регистрация на сайте",$_POST['name']." ". $_POST['oname']." ".$_POST['sname']." зарегистрировал доклад '".$_POST['title']."' для участия в IV Конгрессе физиков Беларуси. Регистрационный номер ".$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 { if ($_FILES["filename"]["error"]==0) { if(copy($_FILES["filename"]["tmp_name"],"./data/".$_POST['sname']."_".$_FILES["filename"]["name"])) { $msg=$msg."File successfully loaded! "; $fname=$_POST['sname']."_".$_FILES["filename"]["name"]; } else { include("formen.php"); echo (""); exit; } } //echo $_POST['banket']; if ($_POST['banket']=='1') $banket=1; else $banket=0; if ($_POST['hotel']=='1') $hotel=1; else $hotel=0; if ($_POST['seminar']=='1') $seminar=1; else $seminar=0; $msg.=" "; $result = @mysql_query("UPDATE congress SET abstract='".$_POST['abstract']."',title='".$_POST['title']."', authors='".$_POST['authors']."', email='".$_POST['email']."', name='".$_POST['name']."', sname='".$_POST['sname']."', org='".$_POST['org']."', payment='".$_POST['vznos']."', oname='".$_POST['oname']."', addr='".$_POST['addr']."',dtype='".$_POST['dtype']."',filename='".$fname."', banket='".$banket."', place='".$_POST['orgs']."', hotel='".$hotel."', seminar='".$seminar."' WHERE (num='".$_POST['num']."');") or die("Can not change the record"); $msg=$msg."Changing of registration data is succesfull"; mail("l1m1t@mail.ru","Изменение рег. данных", "Изменение рег. данных (номер ".$_POST['num'].") ".$_POST['sname']." ".$_POST['name']." ".$_POST['oname']." ".$_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 congress WHERE ((num='$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 Назад"; include("regresulten.php"); } else { $action_label="Change data"; $num=mysql_result($result,0,0); $email= mysql_result($result,0,1); $name= mysql_result($result,0,2); $sname= mysql_result($result,0,3); $org= mysql_result($result,0,4); $vznos=mysql_result($result,0,5); $abstract=mysql_result($result,0,6); $authors=mysql_result($result,0,7); $title=mysql_result($result,0,8); $fname=mysql_result($result,0,9); $oname=mysql_result($result,0,10); $addr=mysql_result($result,0,11); $dtype=mysql_result($result,0,12); $idnum=mysql_result($result,0,13); $banket=mysql_result($result,0,14); $orgs=mysql_result($result,0,21); $hotel=mysql_result($result,0,34); $seminar=mysql_result($result,0,35); include("formen.php"); } break; case 158: //регистрация if (!isset($action_label)) { $action_label="Register"; } if (!isset($num)) { $num="-1"; } include("formen.php"); break; //--------------------------------------------------------------------------------------------------------- default: //регистрация echo " The registration on IV Congress of Belarusian Physicists is closed. "; //echo "But the registration deadline of Belarusian-Swedish-Ukrainian Scientific Workshop on Optics and Laser Physics is April 20. "; //echo "If you have already registered you can if necessary change your registration information. "; echo "Congress successfully held. "; //echo "Регистрация участников Конгресса начнется в понедельник 26 сентября 2013 г. в 9:00 в Президиуме НАН Беларуси. "; //echo "Регистрация докладов завершена. Конгресс успешно проведен. Если Вы принимали участие в Конгресе, то Вы можете прислать рукопись Вашей работы с помощью формы регистрационной заявки "; if (!isset($action_label)) { $action_label="Register"; } if (!isset($num)) { // $num="-1"; } //include("formen.php"); } ?>In case of technical problems with the site please contact webmaster via e-mail |
||
|