2022-09-16 20:31:29 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2022-09-20 21:42:30 +01:00
|
|
|
<?php
|
|
|
|
include './page-blocks/headers.php';
|
|
|
|
include_once './php/version.php';
|
|
|
|
?>
|
2022-09-20 19:28:22 +01:00
|
|
|
<title>Athena - Report Issue</title>
|
2022-09-16 20:31:29 +01:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
2022-09-16 21:14:24 +01:00
|
|
|
<?php
|
2022-09-20 20:36:00 +01:00
|
|
|
|
|
|
|
// Imports the functions needed to validate and submit data
|
|
|
|
require './php/submitIssue.php';
|
|
|
|
|
|
|
|
// Set initial values
|
2022-09-20 20:40:29 +01:00
|
|
|
$title = $detail = "";
|
2022-09-16 21:14:24 +01:00
|
|
|
$ua_str = $_SERVER["HTTP_USER_AGENT"];
|
|
|
|
|
2022-09-20 20:36:00 +01:00
|
|
|
// If the page has been POSTed to then run this:
|
2022-09-16 21:14:24 +01:00
|
|
|
if ($_SERVER["REQUEST_METHOD"] == "POST" ) {
|
2022-09-20 20:36:00 +01:00
|
|
|
$title = cleanInput($_POST["subject"]);
|
|
|
|
$detail = cleanInput($_POST["detail"]);
|
2022-09-17 20:57:03 +01:00
|
|
|
|
2022-09-18 20:29:48 +01:00
|
|
|
// Prepare $detail to POST
|
2022-09-20 21:43:45 +01:00
|
|
|
$body = "Athena Version: " . $athenaVersion . "\n\n" . "User Agent: " . $ua_str . "\n\n Server PHP Version: " . PHP_VERSION . "\n\nUser Comments:\n" . $detail;
|
2022-09-16 21:14:24 +01:00
|
|
|
|
2022-09-20 20:36:00 +01:00
|
|
|
// Call POST function
|
|
|
|
sendInput($title,$body);
|
2022-09-21 10:16:12 +01:00
|
|
|
|
|
|
|
// Redirect to submit-done.php
|
2022-10-05 20:40:08 +01:00
|
|
|
echo "<script>setTimeout(function(){window.location.href = '/submit-done.php';}, 10);</script>";
|
2022-09-21 10:18:57 +01:00
|
|
|
};
|
2022-09-16 21:14:24 +01:00
|
|
|
?>
|
|
|
|
|
2022-09-20 19:42:51 +01:00
|
|
|
<!-- Popup Menu -->
|
|
|
|
<?php require "./page-blocks/nav-menu.php";?>
|
|
|
|
|
2022-09-16 20:31:29 +01:00
|
|
|
<!-- Main Content Begins -->
|
2022-09-20 21:34:15 +01:00
|
|
|
<?php require "./page-blocks/title-image.php";?>
|
2022-09-16 20:31:29 +01:00
|
|
|
|
|
|
|
<h1>Please help us fix your issue</h1>
|
|
|
|
|
|
|
|
<p>Give as much detail as possible so we can try to fix the problem.</p>
|
|
|
|
|
2022-09-16 21:23:23 +01:00
|
|
|
<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method="post">
|
2022-09-20 21:15:32 +01:00
|
|
|
<span class="form-info">Subject:</span>
|
2022-09-16 20:36:34 +01:00
|
|
|
<br>
|
2022-09-21 10:37:36 +01:00
|
|
|
<input class="form-text-small" type="text" name="subject" placeholder="Subject" value="<?php echo $title;?>">
|
2022-09-16 20:36:34 +01:00
|
|
|
<br>
|
2022-09-16 20:31:29 +01:00
|
|
|
<br>
|
2022-09-20 21:15:32 +01:00
|
|
|
<span class="form-info">Details:</span>
|
2022-09-16 20:31:29 +01:00
|
|
|
<br>
|
2022-09-21 10:37:36 +01:00
|
|
|
<textarea class="form-text-large" placeholder="Please give as much detail here as possible" name="detail"><?php echo $detail;?></textarea>
|
2022-09-20 21:23:51 +01:00
|
|
|
<br>
|
2022-09-20 21:24:40 +01:00
|
|
|
<br>
|
2022-09-24 20:41:35 +01:00
|
|
|
<input class="actionbutton" type="submit">
|
2022-09-20 21:24:40 +01:00
|
|
|
<br>
|
2022-09-21 10:04:41 +01:00
|
|
|
<div class="text-description">
|
|
|
|
<p>
|
|
|
|
On submission of this form, your browsers User Agent string will be
|
|
|
|
collected alongside the information you provide above and will be
|
2022-09-21 10:09:42 +01:00
|
|
|
posted to the <a class="inlinelink" href="https://git.fjla.uk/fred.boniface/athena.fb-infra.uk/issues?q=&state=open">
|
2022-09-21 10:04:41 +01:00
|
|
|
issue tracker</a>.
|
|
|
|
</p>
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<span class="form-info">
|
|
|
|
Your user agent is:
|
|
|
|
</span>
|
|
|
|
<br>
|
2022-09-20 21:20:13 +01:00
|
|
|
<?php echo $ua_str; ?>
|
2022-09-21 10:04:41 +01:00
|
|
|
</div>
|
2022-09-16 20:31:29 +01:00
|
|
|
</form>
|
|
|
|
|
2022-09-17 20:57:03 +01:00
|
|
|
|
2022-09-16 20:31:29 +01:00
|
|
|
<!-- Footer -->
|
2022-09-19 20:28:38 +01:00
|
|
|
<?php include "./page-blocks/footer.php" ?>
|
2022-09-16 20:31:29 +01:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|