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/report-issue/index.php

77 lines
2.1 KiB
PHP
Raw Normal View History

2022-09-16 20:31:29 +01:00
<!DOCTYPE html>
<html>
<head>
<title>Athena</title>
<meta charset="UTF-8"/>
<meta name="description" content="Athena - Quick links to live train departures for traincrew."/>
2022-09-16 21:26:17 +01:00
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2022-09-16 20:31:29 +01:00
<meta name="application-name" content="Athena">
<meta name="author" content="Frederick Boniface">
<link rel="stylesheet" type="text/css" href="/styles/style.css"/>
<link rel="icon" type="image/png" href="/assets/icons/favicon.ico"/>
</head>
<body>
2022-09-16 21:14:24 +01:00
<?php
// define form variables and set to empty values (or to the UA)
$subject = $detail = "";
$ua_str = $_SERVER["HTTP_USER_AGENT"];
if ($_SERVER["REQUEST_METHOD"] == "POST" ) {
$subject = validate($_POST["subject"]);
$detail = validate($_POST["detail"]);
2022-09-16 21:18:36 +01:00
// ENTER CODE TO SUBMIT TO GITEA & DISPLAY SUCCESS MSG HERE
2022-09-16 21:14:24 +01:00
}
function validate($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}
?>
2022-09-16 20:31:29 +01:00
<!-- 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>
2022-09-16 21:23:23 +01:00
<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method="post">
2022-09-16 20:36:34 +01:00
Subject:
<br>
2022-09-16 21:23:23 +01:00
<input type="text" name="subject" value="<?php echo $subject;?>">
2022-09-16 20:36:34 +01:00
<br>
2022-09-16 20:31:29 +01:00
<br>
Details:
<br>
2022-09-16 21:23:23 +01:00
<textarea name="detail" rows="5" cols="40"><?php echo $detail;?></textarea>
<br>
2022-09-16 20:44:28 +01:00
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>
2022-09-16 21:14:24 +01:00
<br>
Your user agent is:
<br>
<?php echo $ua_str; ?>
2022-09-16 21:04:34 +01:00
<br>
2022-09-16 21:18:36 +01:00
<br>
<input type="submit">
2022-09-16 20:31:29 +01:00
</form>
<!-- Footer -->
<footer>
<p>Created by Fred Boniface - v0.4.0-devel</p>
</footer>
</body>
</html>