This repository has been archived on 2023-08-24. You can view files and clone it, but cannot push or open issues or pull requests.
athena.fb-infra.uk/issue.php

71 lines
1.9 KiB
PHP

<!DOCTYPE html>
<html>
<head>
<?php include './page-blocks/headers.php';?>
<title>Athena - Report Issue</title>
</head>
<body>
<?php
// Imports the functions needed to validate and submit data
require './php/submitIssue.php';
// Set initial values
$title = $detail = "";
$ua_str = $_SERVER["HTTP_USER_AGENT"];
// If the page has been POSTed to then run this:
if ($_SERVER["REQUEST_METHOD"] == "POST" ) {
$title = cleanInput($_POST["subject"]);
$detail = cleanInput($_POST["detail"]);
// Prepare $detail to POST
$body = "User Agent: " . $ua_str . "\n\n Server PHP Version: " . PHP_VERSION . "\n\n" . $detail;
// Call POST function
sendInput($title,$body);
}
?>
<!-- Popup Menu -->
<?php require "./page-blocks/nav-menu.php";?>
<!-- Main Content Begins -->
<img class="titleimg" src="/assets/title/title.webp"></img>
<h1>Please help us fix your issue</h1>
<p>Give as much detail as possible so we can try to fix the problem.</p>
<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method="post">
<span class="form-info">Subject:</span>
<br>
<input class="form-text-small" type="text" name="subject" value="<?php echo $title;?>">
<br>
<br>
<span class="form-info">Details:</span>
<br>
<textarea class="form-text-large" name="detail" rows="5" cols="40"><?php echo $detail;?></textarea>
<br>
On submission of this form, your browsers User Agent string will be
collected alongside the information you provide above and will be
posted to git.fjla.uk/fred.boniface/athena.fb-infra.uk/issues.
<br>
<br>
Your user agent is:
<br>
<?php echo $ua_str; ?>
<br>
<br>
<input class="actionbutton" type="submit">
</form>
<!-- Footer -->
<?php include "./page-blocks/footer.php" ?>
</body>
</html>