diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2012-12-12 22:40:37 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2012-12-12 22:43:10 -0800 |
commit | f9563edf69f083287630f4b17db70d97524196d6 (patch) | |
tree | 495a75932bf493c4a2afb94f924e3efde4ea70a8 /src/webserver/generate.cpp | |
parent | 608f959900968e83fd25231c72308fc608742dd5 (diff) | |
download | tmwa-f9563edf69f083287630f4b17db70d97524196d6.tar.gz tmwa-f9563edf69f083287630f4b17db70d97524196d6.tar.bz2 tmwa-f9563edf69f083287630f4b17db70d97524196d6.tar.xz tmwa-f9563edf69f083287630f4b17db70d97524196d6.zip |
Delete old tools
If there was anything you actually used, tell me.
Diffstat (limited to 'src/webserver/generate.cpp')
-rw-r--r-- | src/webserver/generate.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/webserver/generate.cpp b/src/webserver/generate.cpp deleted file mode 100644 index 1fed224..0000000 --- a/src/webserver/generate.cpp +++ /dev/null @@ -1,35 +0,0 @@ - -void generate_page (char password[25], int sock_in, char *query, char *ip) -{ - char *page = get_param (query, 0); - char *ppass = get_param (query, "password"); - - if ((ppass == 0) || (strcmp (password, ppass) != 0)) - { - web_send (sock_in, html_header ("Enter your password")); - web_send (sock_in, - "<H1>NOT LOGGED IN!</H1><form action=\"/\" method=\"GET\">\n"); - web_send (sock_in, - "Enter your password:<br>\n<input type=\"text\" name=\"password\">\n"); - web_send (sock_in, "<input type=\"submit\" value=\"Login\">\n"); - } - else - { - - //To make this simple, we will have a bunch of if statements - //that then shoot out data off into functions. - - //The 'index' - if (strcmp (page, "/") == 0) - generate_notdone (sock_in, query, ip); - - //About page: - if (strcmp (page, "/about.html") == 0) - generate_about (sock_in, query, ip); - - //Test page: - if (strcmp (page, "/testing/") == 0) - generate_sample (sock_in, query, ip); - - } -} |