diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-21 06:06:21 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-21 06:06:21 +0000 |
commit | 126ce626c0e0ef900a19c1643efe884f95938892 (patch) | |
tree | 85553bb7b0be2895c3f75072960814eb86a016ab /src/webserver/pages/sample.c | |
parent | 24056776a3d8dfad2e0494136b58f0bbd85f03b3 (diff) | |
download | hercules-126ce626c0e0ef900a19c1643efe884f95938892.tar.gz hercules-126ce626c0e0ef900a19c1643efe884f95938892.tar.bz2 hercules-126ce626c0e0ef900a19c1643efe884f95938892.tar.xz hercules-126ce626c0e0ef900a19c1643efe884f95938892.zip |
* Moved /tool and /webserver to under /src and added 'make tools' and 'make web-server'
* Removed ladmin compiling from 'make sql'
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1261 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/webserver/pages/sample.c')
-rw-r--r-- | src/webserver/pages/sample.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/webserver/pages/sample.c b/src/webserver/pages/sample.c new file mode 100644 index 000000000..7bec663f2 --- /dev/null +++ b/src/webserver/pages/sample.c @@ -0,0 +1,24 @@ +
+
+void generate_sample(int sock_in, char *query, char *ip)
+{
+
+ char *name = get_param(query, "name");
+
+ web_send(sock_in, "<title>SAMPLE</title>\n");
+
+
+ //If a name was not entered...
+ if ( name == '\0' )
+ {
+ web_send(sock_in, "<form action=\"/testing/\" method=\"GET\">\n");
+ web_send(sock_in, "<input type=\"text\" name=\"name\">\n");
+ web_send(sock_in, "<input type=\"submit\">\n");
+ }
+ else
+ {
+ web_send(sock_in, "Your name is: ");
+ web_send(sock_in, get_param(query, "name"));
+ }
+printf("OK!\n");
+}
|