$title = $_POST["title"]; $Fname = $_POST["Fname"]; $Lname = $_POST["Lname"]; $passwd = $_POST["passwd"]; $Instit = $_POST["Instit"]; $email = $_POST["email"]; $tel = $_POST["tel"]; $notes = $_POST["notes"]; if (!isset($_POST['submit'])) { ?> Reprints request formPlease send the reprint request simply by email (A. Di Cicco).Compiling the form below is not anymore necessary. Request for downloading XAS group reprints in PDF format. All the form fields are mandatory. } else { if ($inputcode == $_SESSION['code']) { $users_ip = $_SERVER["REMOTE_ADDR"]; $users_host = gethostbyaddr($_SERVER["REMOTE_ADDR"]); //$to = "andrea.dicicco@unicam.it" . ', '; //$to .= "emiliano.principi@unicam.it"; $to = "emiliano.principi@elettra.trieste.it"; $subject = "Reprints request by ".$title." ".$Fname." ".$Lname; $datereq = date("j F Y - G:i"); $message = "\nThis is an automatic message generated by Apache on gnxas.unicam.it\n\n \n".$title." ".$Fname." ".$Lname." has requested the access to the XAS group reprints on ".$datereq.".\n --------------------------- \n user name: ".$Lname."\n password: ".$passwd."\n --------------------------- \n\n Institution: ".$Instit."\n e-mail: ".$email."\n tel.: ".$tel."\n IP number: ".$users_ip." (".$users_host.")\n notes: ".$notes."\n\n\n"; if(mail($to, $subject, $message)) { echo " Request of reprints successfully sent (".$datereq.")!! " ; echo " Author: ".$title." ".$Fname." ".$Lname." Your request will be handled as soon as possible. "; $filelog = "/var/www/jail/siti/labxas/gnxas/XASLABpapers/.htreprintsusers"; $logfile = fopen ($filelog , "a"); $wr = fwrite ( $logfile , "$datereq <> $title $Fname $Lname <> user name: $Lname, passwd: $passwd <> $email <> $Instit <> tel.: $tel <> IP $users_ip \n" ); } else { echo "Message delivery failed... Please try again or contact emiliano.principi@unicam.it\n\n" ; } } else { $_SESSION['string']='The security code is wrong...'; echo " $_SESSION[string] (come back)"; $_SESSION['string'] = ''; } } ?> |
COPYRIGHT 1996-today XAS group University of Camerino - Responsible: A. Di Cicco
URL: http://gnxas.unicam.it