From 4ba6f3e5ceed1bd7ff454fce96348e3b5c052b70 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 9 May 2016 16:08:31 -0400 Subject: Starting working on showing bugs --- ws2a/bugs.html | 2 +- ws2a/bugs/1 | 6 +++++ ws2a/bugview.html | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ ws2a/bugview.js | 11 +++++++++ ws2a/showbug.c | 13 +++++++++++ 5 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 ws2a/bugview.html create mode 100644 ws2a/bugview.js create mode 100644 ws2a/showbug.c diff --git a/ws2a/bugs.html b/ws2a/bugs.html index 67ec743..e833a25 100644 --- a/ws2a/bugs.html +++ b/ws2a/bugs.html @@ -46,8 +46,8 @@ Submitter Date Submitted - Status Description + Status diff --git a/ws2a/bugs/1 b/ws2a/bugs/1 index 81991a4..8c78654 100644 --- a/ws2a/bugs/1 +++ b/ws2a/bugs/1 @@ -3,3 +3,9 @@ Date_submitted Short Description Status Long description + +User person +Comment + +Another User +Their comment diff --git a/ws2a/bugview.html b/ws2a/bugview.html new file mode 100644 index 0000000..8e64517 --- /dev/null +++ b/ws2a/bugview.html @@ -0,0 +1,70 @@ + + + + + + + + + + + WS2A + + + + + + + + + + + + + + + +
+
+ +

Winter Survival 2 - Anarchy

+
+ +

Bug short description

+ + +
+
+
+
+ Submitter:Loading... +
+
+ Date submited:Loading...
+
Status:Loading...
+
+
+ +
Long description
+
+ +
+
+ + + +
+ + + diff --git a/ws2a/bugview.js b/ws2a/bugview.js new file mode 100644 index 0000000..4c8b007 --- /dev/null +++ b/ws2a/bugview.js @@ -0,0 +1,11 @@ +function loadLastBugs() { + var xhttp = new XMLHttpRequest(); + xhttp.onreadystatechange = function() { + if (xhttp.readyState == 4 && xhttp.status == 200) { + document.getElementById("bugstable").innerHTML = xhttp.responseText; + } + }; + xhttp.open("GET", "/cgi-bin/bugsdata.cgi", true); + xhttp.send(); +} +window.onload = loadLastBugs diff --git a/ws2a/showbug.c b/ws2a/showbug.c new file mode 100644 index 0000000..b8c46e2 --- /dev/null +++ b/ws2a/showbug.c @@ -0,0 +1,13 @@ +#include +#include +#include +#include + +int main(){ + char* data = getenv("QUERY_STRING"); + //char data[20] = "?id=1"; + char* hardip = getenv("REMOTE_ADDR"); + printf("%s%c%c\n", + "Content-Type:text/html;charset=iso-8859-1",13,10); + printf("Data:%s",data); +} -- cgit v1.2.3-70-g09d2