diff --git a/issue.php b/issue.php index 9ce8c10..a71a5ac 100644 --- a/issue.php +++ b/issue.php @@ -22,7 +22,7 @@ $detail = cleanInput($_POST["detail"]); // Prepare $detail to POST - $body = "User Agent: " . $ua_str . "\n\n Server PHP Version: " . PHP_VERSION . "\n\n" . $detail; + $body = "Athena Version: " . $athenaVersion . "\n\n" . User Agent: " . $ua_str . "\n\n Server PHP Version: " . PHP_VERSION . "\n\n" . $detail; // Call POST function sendInput($title,$body); diff --git a/example.php b/php/LDB-Tests/example.php similarity index 100% rename from example.php rename to php/LDB-Tests/example.php diff --git a/test.php b/php/LDB-Tests/test.php similarity index 100% rename from test.php rename to php/LDB-Tests/test.php diff --git a/php/submitIssue-cli-test.php b/php/submitIssue-cli-test.php deleted file mode 100644 index 17d48b1..0000000 --- a/php/submitIssue-cli-test.php +++ /dev/null @@ -1,41 +0,0 @@ - $body, - 'title' => $subject - ); - - $issueData = json_encode($rawData); - - echo "Ready to send data:\n$issueData"; - - // Prepare CURL - $curlConnection = curl_init('https://git.fjla.uk/api/v1/repos/fred.boniface/athena.fb-infra.uk/issues'); - curl_setopt($curlConnection, CURLOPT_POSTFIELDS, $issueData); - curl_setopt($curlConnection, CURLOPT_RETURNTRANSFER, true); - curl_setopt($curlConnection, CURLOPT_HTTPHEADER, $httpHeaders); - - // Get response and exit CURL - $giteaResponse = curl_exec($curlConnection); - curl_close($curlConnection); - - echo "Response: " . $giteaResponse; -?>