]> bicyclesonthemoon.info Git - ott/enhance/commitdiff
How about some CGI ?
authorb <b@0d794883-4e4e-4f65-aa7a-0e7f5947bab5>
Sun, 29 Dec 2013 22:22:02 +0000 (22:22 +0000)
committerb <b@0d794883-4e4e-4f65-aa7a-0e7f5947bab5>
Sun, 29 Dec 2013 22:22:02 +0000 (22:22 +0000)
git-svn-id: svn://botcastle1b/npb@16 0d794883-4e4e-4f65-aa7a-0e7f5947bab5

makefile
npb
npb.htm [new file with mode: 0644]
npbd [new file with mode: 0755]
npbd.cpp [new file with mode: 0644]

index 08ab0f3e0528c4e28d9f9cf19da684400531406c..255abbaafadf343f75ee3685bb10bfd55d7b7a2d 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,8 +1,12 @@
 CC=g++
 CF=-g -Wall
 LF=-lIL
+LF2=-lcgi
 
-all: npb
+all: npb npbd
 
 npb: npb.cpp makefile
        $(CC) $(CF) $(LF) -o npb npb.cpp
+
+npbd: npb npbd.cpp makefile
+       $(CC) $(CF) -o npbd npbd.cpp
diff --git a/npb b/npb
index ac27a5b06420aacb259cd826770baea84513825b..8b76126f9800ada2448d80b53c697e3fe3079a96 100755 (executable)
Binary files a/npb and b/npb differ
diff --git a/npb.htm b/npb.htm
new file mode 100644 (file)
index 0000000..38eab71
--- /dev/null
+++ b/npb.htm
@@ -0,0 +1,17 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
+<html lang="pl">
+       <head>
+               <title>It's NewpixbOTTification time!</title>
+                       <meta http-equiv="Content-type" content="text/html; charset=iso-8859-2">
+       </head>
+       <body>
+               <h1>It's NewpixbOTTification time!</h1>
+               <form method="get" action="/cgi/npb/npbd">
+                       NewpixbOTTify by URL (not ready!)<br>
+                       URL:
+                       <input type="text" name="inpix" value="http://">
+                       <input type="submit" value="NewpixbOTTify!">
+               </form>
+               Please don't hotlink the result. If you do, each time someone sees your link, my server will have to generate the image again!
+       </body>
+</html>
diff --git a/npbd b/npbd
new file mode 100755 (executable)
index 0000000..947d9d0
Binary files /dev/null and b/npbd differ
diff --git a/npbd.cpp b/npbd.cpp
new file mode 100644 (file)
index 0000000..920b154
--- /dev/null
+++ b/npbd.cpp
@@ -0,0 +1,6 @@
+#include <stdio.h>
+int main (int argc, char *argv[])
+{
+       printf("Content-type: text/html\n\n<html><head><title>It's NewpixbOTTification time!</title></head><body><h1>It's NewpixbOTTification time!</body></html>\n");
+       return 0;
+}
\ No newline at end of file