include_once("vmdbinc/common.php"); session_start(); if(!isset($_SESSION['uid']) || !$_SESSION['uid']) { header("Location: " . $VMDB_ROOT_URL . "login.php"); } if(strrpos($_SESSION['type'], 'C') === false) { drawheader('Access Denied'); echo("
You are not allowed to access this page.
"); drawfooter($debug); exit(); } if(!isset($_POST['bugmsg'])) { drawheader('Report Bug'); echo(''); drawfooter($debug); exit(); } $to = 'vvdea@vmdb.org'; $subj = 'VVDEA bug report from ' . $_SESSION['uid']; # Only use first 2000 chars of the message, just in case $msg = substr($_POST['bugmsg'], 0, 2000); $headers = 'From: vvdea@vmdb.org'; $mailresult = mail($to, $subj, $msg, $headers); drawheader('Report Bug'); if($mailresult) { echo('This bug has been reported.
'); echo('Please use the Back button on your browser, or go to the '); echo('VVDEA Home Page
'); } else { echo('There was an error sending this report.
'); echo('Please use your usual email program to contact the VVDEA administrators.
'); echo('VVDEA Home Page'); } drawfooter($debug); exit(); ?>