summaryrefslogtreecommitdiff
path: root/ws2a
diff options
context:
space:
mode:
Diffstat (limited to 'ws2a')
-rw-r--r--ws2a/bugs.html58
-rw-r--r--ws2a/bugsdata.c13
-rw-r--r--ws2a/bugsload.js10
-rw-r--r--ws2a/index.html74
-rw-r--r--ws2a/jumbotron-narrow.css79
5 files changed, 234 insertions, 0 deletions
diff --git a/ws2a/bugs.html b/ws2a/bugs.html
new file mode 100644
index 0000000..fab0858
--- /dev/null
+++ b/ws2a/bugs.html
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
+ <meta name="description" content="">
+ <meta name="author" content="">
+
+ <title>WS2A</title>
+
+ <!-- Bootstrap core CSS -->
+ <link href="../css/bootstrap.min.css" rel="stylesheet">
+
+ <!-- Custom styles for this template -->
+ <link href="jumbotron-narrow.css" rel="stylesheet">
+
+ <script type="text/javascript" src="bugsload.js"></script>
+
+ <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
+ <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+ <![endif]-->
+ </head>
+
+ <body>
+
+ <div class="container">
+ <div class="header clearfix">
+ <nav>
+ <ul class="nav nav-pills pull-right">
+ <li role="presentation"><a href="">Home</a></li>
+ <li role="presentation" class="active"><a href="./bugs.html">Bugs</a></li>
+ <li role="presentation"><a href="./help.html">Help</a></li>
+ </ul>
+ </nav>
+ <h3 class="text-muted">Winter Survival 2 - Anarchy</h3>
+ </div>
+
+ <h2 class="sub-header">Section title</h2>
+ <div class="table-responsive">
+ <table class="table table-striped" id="bugstable">
+ <thead>
+
+ </tbody>
+ </table>
+ </div>
+
+ <footer class="footer">
+ <p>Contact the admin at <a href="mailto:apickx@cogarr.org">Apickx@cogarr.org</a></p>
+ </footer>
+
+ </div> <!-- /container -->
+
+ </body>
+</html>
diff --git a/ws2a/bugsdata.c b/ws2a/bugsdata.c
new file mode 100644
index 0000000..33a7b67
--- /dev/null
+++ b/ws2a/bugsdata.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include "common.c"
+
+int main(){
+ char* data = getenv("QUERY_STRING");
+ char* hardip = getenv("REMOTE_ADDR");
+ printf("%s%c%c\n",
+ "Content-Type:text/html;charset=iso-8859-1",13,10);
+ printf("Data:%s",data);
+}
diff --git a/ws2a/bugsload.js b/ws2a/bugsload.js
new file mode 100644
index 0000000..d1662a9
--- /dev/null
+++ b/ws2a/bugsload.js
@@ -0,0 +1,10 @@
+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();
+}
diff --git a/ws2a/index.html b/ws2a/index.html
new file mode 100644
index 0000000..adf04cc
--- /dev/null
+++ b/ws2a/index.html
@@ -0,0 +1,74 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
+ <meta name="description" content="">
+ <meta name="author" content="">
+
+ <title>WS2A</title>
+
+ <!-- Bootstrap core CSS -->
+ <link href="../css/bootstrap.min.css" rel="stylesheet">
+
+ <!-- Custom styles for this template -->
+ <link href="jumbotron-narrow.css" rel="stylesheet">
+
+ <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
+ <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+ <![endif]-->
+ </head>
+
+ <body>
+
+ <div class="container">
+ <div class="header clearfix">
+ <nav>
+ <ul class="nav nav-pills pull-right">
+ <li role="presentation" class="active"><a href="">Home</a></li>
+ <li role="presentation"><a href="./bugs.html">Bugs</a></li>
+ <li role="presentation"><a href="./help.html">Help</a></li>
+ </ul>
+ </nav>
+ <h3 class="text-muted">Winter Survival 2 - Anarchy</h3>
+ </div>
+
+ <div class="jumbotron">
+ <h1>WS2A</h1>
+ <p class="lead">The first gamemode in the extended Winter Survival series!</p>
+ <p><a class="btn btn-lg btn-info" href="steam://connect/73.79.25.203" role="button">Join server!</a></p>
+ </div>
+
+ <div class="row marketing">
+ <div class="col-lg-6">
+ <h4>What is it?</h4>
+ <p>Winter Survival 2 - Anarchy is the first installment of my extenstions to Winter Survival 2</p>
+
+ <h4>History</h4>
+ <p>Winter Survival 2 was originally created by The Maw, and a few other helpers. It has been dead for a little while, until some guy on the internet with fond memorires of playing it during his nights in highschool decided to revive it!</p>
+
+ <h4>It's so fucking broken!</h4>
+ <p>Consider fileing a bug in the bugs tab, then wait patiently until it gets fixed!</p>
+ </div>
+
+ <div class="col-lg-6">
+ <h4>I want to help!</h4>
+ <p>Feel free to get a copy of the source code and start hacking away <a href="/source/wintersurvival2">here</a></p>
+
+ <h4>Where's the liscense?</h4>
+ <p>Although I like useing and publishing under copyleft liscenses, other people involved in development didn't give me much to work with! I can't bind their code under a liscense of my choice, but my code is free to use under the BSD 2-clause, and assets under Creative Commons Attribution</p>
+ </div>
+ </div>
+
+ <footer class="footer">
+ <p>Contact the admin at <a href="mailto:apickx@cogarr.org">Apickx@cogarr.org</a></p>
+ </footer>
+
+ </div> <!-- /container -->
+
+ </body>
+</html>
diff --git a/ws2a/jumbotron-narrow.css b/ws2a/jumbotron-narrow.css
new file mode 100644
index 0000000..952adc5
--- /dev/null
+++ b/ws2a/jumbotron-narrow.css
@@ -0,0 +1,79 @@
+/* Space out content a bit */
+body {
+ padding-top: 20px;
+ padding-bottom: 20px;
+}
+
+/* Everything but the jumbotron gets side spacing for mobile first views */
+.header,
+.marketing,
+.footer {
+ padding-right: 15px;
+ padding-left: 15px;
+}
+
+/* Custom page header */
+.header {
+ padding-bottom: 20px;
+ border-bottom: 1px solid #e5e5e5;
+}
+/* Make the masthead heading the same height as the navigation */
+.header h3 {
+ margin-top: 0;
+ margin-bottom: 0;
+ line-height: 40px;
+}
+
+/* Custom page footer */
+.footer {
+ padding-top: 19px;
+ color: #777;
+ border-top: 1px solid #e5e5e5;
+}
+
+/* Customize container */
+@media (min-width: 768px) {
+ .container {
+ max-width: 730px;
+ }
+}
+.container-narrow > hr {
+ margin: 30px 0;
+}
+
+/* Main marketing message and sign up button */
+.jumbotron {
+ text-align: center;
+ border-bottom: 1px solid #e5e5e5;
+}
+.jumbotron .btn {
+ padding: 14px 24px;
+ font-size: 21px;
+}
+
+/* Supporting marketing content */
+.marketing {
+ margin: 40px 0;
+}
+.marketing p + h4 {
+ margin-top: 28px;
+}
+
+/* Responsive: Portrait tablets and up */
+@media screen and (min-width: 768px) {
+ /* Remove the padding we set earlier */
+ .header,
+ .marketing,
+ .footer {
+ padding-right: 0;
+ padding-left: 0;
+ }
+ /* Space out the masthead */
+ .header {
+ margin-bottom: 30px;
+ }
+ /* Remove the bottom border on the jumbotron for visual effect */
+ .jumbotron {
+ border-bottom: 0;
+ }
+}