|
|
@ -17,13 +17,15 @@
|
|
|
|
<body>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
// define form variables and set to empty values (or to the UA)
|
|
|
|
// Define form variables and set to empty values (or to the UA)
|
|
|
|
$subject = $detail = "";
|
|
|
|
$subject = $detail = "";
|
|
|
|
$ua_str = $_SERVER["HTTP_USER_AGENT"];
|
|
|
|
$ua_str = $_SERVER["HTTP_USER_AGENT"];
|
|
|
|
|
|
|
|
|
|
|
|
// Define response variable as blank before POSTing
|
|
|
|
// Define response variable & data variable as blank before POSTing
|
|
|
|
$giteaResponse = "";
|
|
|
|
$giteaResponse = "";
|
|
|
|
|
|
|
|
$issueData = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// If the page is loading after submission then run this:
|
|
|
|
if ($_SERVER["REQUEST_METHOD"] == "POST" ) {
|
|
|
|
if ($_SERVER["REQUEST_METHOD"] == "POST" ) {
|
|
|
|
$subject = validate($_POST["subject"]);
|
|
|
|
$subject = validate($_POST["subject"]);
|
|
|
|
$detail = validate($_POST["detail"]);
|
|
|
|
$detail = validate($_POST["detail"]);
|
|
|
|