1 rizwank 1.1 <?php
2 //get set
3 include('./config.php');
4
5 // get authorised
6 include('./validate.php');
7
8 // get connected
9 include('./database.php');
10
11 ?>
12 <?php
13
14 // send me a mail!
15
16 putenv ('TZ=Australia/Brisbane');
17 $timestamp = date("d F Y H:i");
18 $remoteip = getenv(REMOTE_ADDR);
19 $subject = "[MySQLinks Bug] " . $HTTP_POST_VARS['bug_subject'];
20 $to = "jade@wiccked.com";
21 $from = "From: " . $HTTP_POST_VARS['bug_email'] . "(" . $HTTP_POST_VARS['bug_name'] . ")\r\n";
22 rizwank 1.1 $ctype = "Content-Type: text/plain\r\n";
23 $uagent = "X-Mailer: MySQLinks Bug Reporting System";
24 $hdrs = $ctype . $uagent;
25 $message = "/--------- DESCRIPTION ---------/\n" . stripslashes($HTTP_POST_VARS['bug_desc']) . "\n\n/--------- CONFIGURATION ---------/\n" . $HTTP_POST_VARS['bug_config_path'] . "\n" . $HTTP_POST_VARS['bug_config_url'] . "\n" . $HTTP_POST_VARS['bug_config_defcat'] . "\n" . $HTTP_POST_VARS['bug_config_xml'] . "\n" . $HTTP_POST_VARS['bug_config_cols'] . "\n\n/--------- META ---------/\nTime: " . $timestamp . "\nIP: " . $remoteip . "\n\n";
26
27 mail($to, $subject, $message, $from, $hdrs);
28
29 $go = "Location: " . $mysqvars[url] . "/admin.php?msg=x";
30 header($go);
31
32
33 ?>
|