include "configuration.inc"; $title="PHP3 Bug Report Form"; include "header"; if($email) { mysql_pconnect($dbhost,$dbuser,$dbpwd); mysql_select_db($dbname); $query = mysql_query("SELECT os FROM users where email='$email'"); $operating_system = mysql_result($query,0,"os"); mysql_free_result($query); } #$destination = "ssb@guardian.no"; $destination = "php3@php.il.eu.org"; cfunction indent($string, $prefix) { $string = ereg_replace(13, "", $string); /* get rid of Ctrl-M */ return $prefix . ereg_replace("\n", "\n$prefix", $string) . "\n"; } if (isset($cmd) && $cmd == "Send bug report") { $report = ""; echo("
\n");
$bugdesc = stripslashes($bugdesc);
$report .= "From: $email\n\n";
$report .= "Operating system: $osver\n\n";
$report .= "PHP version: $phpver\n\n";
$report .= "Bug description:\n";
$report .= indent($bugdesc, " ");
echo $report;
echo("\n");
if (Mail($destination, "PHP3 bug-form report", $report, "From: $email")) {
echo("