You must specify a valid email address for yourself. Return to the form."; } else { // Check to see if valid file if ($file == "none") { // if no valid email address entered, display no file message echo "
You must specify a file to upload. Return to the form.
"; } else { //directory to upload to //copy($file, $uploaddir.$file_name);unlink($file); //system("cp -a /var/www/html/ss/public/$file_name /var/www/html/ss/public/$file_name.temp"); //system("chmod 777 /var/www/html/ss/public/$file_name.temp"); //system("pdftops /var/www/html/ss/public/$file_name.temp"); //system("chmod 777 /var/www/html/ss/public/$file_name.temp"); //system("mv /var/www/html/ss/public/$file_name.temp /var/www/html/ss/public/$file_name.ps"); //$thankspage="http://gw.na.infn.it/ss/thanks.php?file=$file_name.ps"; //return thank you page //Header("Location: $thankspage"); $handle = fopen("/var/www/html/ss/public/listautenti", 'a'); fwrite($handle, $realname); fclose($handle); } } if ($emailmessages == "1") { //mail you to let you know a new uploaded file mail("$youremail", "Uploaded file", "$ownermessage"); //mail user to thank them mail("$email", "Uploaded file", "$uptymessage"); exit; } ?>