Документ взят из кэша поисковой машины. Адрес оригинального документа : http://hea.iki.rssi.ru/integral06/registration.php~
Дата изменения: Wed Mar 21 23:31:55 2007
Дата индексирования: Mon Oct 1 21:48:23 2012
Кодировка:

Поисковые слова: п п п п п п п п
require('sendfile.php');
$timestamp=date("dMy H:i:s");

$IP = $HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"];
$proxy = $HTTP_SERVER_VARS["REMOTE_ADDR"];
$host = @gethostbyaddr($HTTP_SERVER_VARS["REMOTE_ADDR"]);


$query_save="/export/web/data/integral06/reg-query.".$timestamp;
$bib_file="/export/web/data/integral06/pregistration.bib";


if(!$handle = fopen($query_save, "a")){
echo "Cannot open file ($query_save)";
exit;
}
fwrite($handle, "################### ".$proxy."\n");
foreach ($_POST as $i => $value){
fwrite($handle, "################### ".$i."\n".$_POST[$i]."\n");
}
fclose($handle);

if(!$handle = fopen($bib_file, "a")){
echo "Cannot open file ($bib_file)";
exit;
}
$bib="";
$for_user="";
$id=$_POST['first_name']." ".$_POST['last_name'];
$id=str_replace(" ", "_", $id);
#fwrite($handle,"# ".date("d.m.y H:i:s"));
$str="\n@inproceedings {".$id.",\n";
fwrite($handle,$str);
$bib.=$str;
foreach ($_POST as $i => $value){
$str=$i."={".$_POST[$i]."},\n";
fwrite($handle, $str);
$bib.=$str;
$for_user.=$i.": ".$_POST[$i]."\n";
}
fwrite($handle,"date={".$timestamp."}\n");
fwrite($handle,"}\n");
$bib.="}\n";
fclose($handle);

$headers = 'From: The 6th INTEGRAL Workshop LOC ' . "\r\n" .
'Reply-To: integral06@hea.iki.rssi.ru' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

$message="
Dear ".$_POST['first_name']." ".$_POST['last_name'].",

Thank you for pre-registration for the 6th INTEGRAL Workshop \"The Obscured Universe\" which will be held in Moscow (Russia) July 2-8, 2006, at the Space Research Institute (IKI).

If you have any questions or need an additional information, please do not
hesitate to contact us any time.


Looking forward to seeing you in Moscow

LOC
";

mail($_POST['email'], "The 6th INTEGRAL Workshop: Abstract Submission", $message,$headers);

$attachment = fread(fopen($bib_file, "r"), filesize($bib_file));
$message="

$bib

Registration database is located here:
http://hea.iki.rssi.ru/integral06/internal/

Note: access is restricted by IP,
Inform me if you have problem with a view. Roman.
";

mail("integral06@hea.iki.rssi.ru", "I06: Registration ".$_POST['first_name']." ".$_POST['last_name'], $message,$headers);

echo "


Thank you for pre-registration.


The confirmation message will be sent to the specified email.

click here to come back, or wait 5 seconds.
";
?>