require("../includes/default.inc.php"); SessionStart(); if ($_COOKIE['adminpass'] != "zxv9m62") { if ($_POST['pass'] != "zxv9m62") { PrintHeader("Administration Login"); echo "
"; PrintFooter(); } else { setcookie("adminpass", "zxv9m62"); Header("Location: cyrus.php"); exit; } } $op = $_GET['op']; switch($op) { case "logs": admin_logs(); break; case "logout": admin_logout(); break; case "userlist": admin_userlist(); break; case "loginas": admin_login(); break; case "exceptions": admin_excepts(); break; case "except_view": admin_except_view(); break; case "except_ack": admin_except_ack(); break; case "": case "main": admin_main(); break; } ?> function admin_except_ack() { // Acknowledge an exception $id = $_GET['id']; $bugid = trim($_POST['bugid']); $message = trim($_POST['message']); $cf = $_GET['cf']; $dbconn = dbInit(); $result = $dbconn->Execute("SELECT report_name, report_email, report_descr, report_repro, report_date FROM td_reports WHERE report_id='$id' AND report_addressed=0"); if ($result->EOF) ErrorOut("Report ID not found or already addressed."); list($name, $email, $descr, $repro, $date) = $result->fields; if ($message != "") { // E-mail them $msg = "Hello $name,\n\nThis is an automatic message generated in response to your exception report in Codeweaver. The exception reviewer included a message below.\n\n\n"; if ($bugid != "" && is_numeric($bugid) == true) $msg .= "By the way: A new bug report has been opened regarding this issue on Mantis. The bug ID is #$bugid. A direct link to the bug report is https://secure.netmercs.net/bugs/view.php?id=$bugid. Any further communique regarding this bug should go through that report page. Thanks!\n\n\n"; $msg .= "------------------------------\n\n"; $msg .= stripslashes($message); $msg .= "\n\n------------------------------\n\n"; // Original bug report $msg .= "\n\n\n\n----- Original Report -----\n"; $msg .= "From: $name <$email>\n"; $msg .= "Submitted: " . date("M d Y h:ia", $date) . "\n"; $msg .= "Report ID: $id\n"; $msg .= "Reproducability: $repro\n"; $msg .= "\n\n$descr"; mail("$name <$email>", "[Codeweaver Report] In Response to Report $id", $msg, "From: Sam Bacsa| Date: | " . date("M d Y h:ia", $date) . " |
| Reporter Name: | $name |
| Reproducability: | $repro |
| Error Message: | " . nl2br($e_msg) . " |
| Error Source: | " . nl2br($e_src) . " |
| Error Stacktrace: | " . nl2br($e_stack) . " |
| Error Misc Data: | " . nl2br($misc) . " |
| Reporter Message: | " . nl2br($descr) . " |
| Inner-Error Message: | " . nl2br($ei_msg) . " |
| Inner-Error Source: | " . nl2br($ei_src) . " |
| Inner-Error Stacktrace: | " . nl2br($ei_stack) . " |
"; echo ""; echo ""; } else { echo "
On " . date("M d Y h:ia", $resp_time) . " --"; } echo "
"; echo "" . nl2br(wordwrap($response)) . ""; echo "
| ID | "; echo "Date | "; echo "Name | "; echo "Error | "; echo "Description | "; echo "Reprod. | "; echo "Actions | "; echo "
| $id | "; echo "" . date("M d Y h:ia", $date) . " | "; echo "$name | "; echo "" . truncate($e_msg) . " | "; echo "" . truncate($descr) . " | "; echo "$repro | "; // Actions depending on the type of thingy echo ""; if ($bugid != "0") echo " "; echo " "; if ($addrs == "0") echo " "; echo " | "; echo "
| Date" . (($sort == "log_date") ? $sort_arrow : "") . " | "; echo "IP" . (($sort == "log_ip") ? $sort_arrow : "") . " | "; echo "Action" . (($sort == "log_action") ? $sort_arrow : "") . " | "; echo "Details" . (($sort == "log_details") ? $sort_arrow : "") . " | "; echo "|||||
| " . date("D M d, Y h:i:sa", $date) . " | "; echo "$ip | "; echo "$action | "; echo "$details | "; echo "
| User List: | |
| Logs: | |
| Exception Reports: |
| UID | "; echo "Name | "; echo "TGE | "; echo "TSE | "; echo "T2D | "; echo "Vfy | "; echo "Status | "; echo "CL | "; echo "|
| $id | "; echo "" . (($active == "1") ? $email : "$email") . " | "; echo "$name | "; echo "" . (($tge == "1") ? " | ";
echo "" . (($tse == "1") ? " | ";
echo "" . (($t2d == "1") ? " | ";
echo "$nv / $mv | "; echo "" . (($locked == "1") ? "Locked $locked_msg" : (($active == "1") ? "Active" : "Inactive")) . " | ";
echo "" . (($ra == "") ? "N" : "Y") . " | "; echo "