summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPixel <Pixel>2001-12-12 07:39:41 +0000
committerPixel <Pixel>2001-12-12 07:39:41 +0000
commitb9c5376bb1b0bf8e9bd0589e192220dfe0892bd5 (patch)
treebb799f34c2eff21b9577a72998fd3338d27fca0b /src
parentdfe6f0caffcf811e246c3950623c4a269901b384 (diff)
Still working on it...
Diffstat (limited to 'src')
-rw-r--r--src/Main.cc21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/Main.cc b/src/Main.cc
index 2bd0b0a..4663a02 100644
--- a/src/Main.cc
+++ b/src/Main.cc
@@ -1,5 +1,5 @@
#include <unistd.h>
-#include <list>
+#include <list.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "Handle.h"
@@ -17,6 +17,7 @@
#include "InPipe.h"
#include "Image.h"
#include "CopyJob.h"
+#include "IRC.h"
InPipe * in;
@@ -88,11 +89,20 @@ Action * java = new Message("Applet JAVA",
</center>
", "java");
-Action * Liste[] = {a1, a2, a3, a4, a5, ad, java};
-String Labels[] = {"Action 1", "Action 2", "Action 3", "Action 4", "Action 5", "Action dynamique", "Essai de java"};
+Action * up = new Message("Test d'upload",
+"
+<FORM ENCTYPE=\"multipart/form-data\" ACTION=\"/bin/start\" METHOD=POST>
+<INPUT TYPE=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"1000\">
+Send this file: <INPUT NAME=\"userfile\" TYPE=\"file\">
+<INPUT TYPE=\"submit\" VALUE=\"Send File\">
+</FORM>
+", "upload");
+
+Action * Liste[] = {a1, a2, a3, a4, a5, ad, java, up};
+String Labels[] = {"Action 1", "Action 2", "Action 3", "Action 4", "Action 5", "Action dynamique", "Essai de java", "Test d'upload"};
Action * buildmenu(void) {
- return new Menu("Menu Principal", "start", Labels, Liste, 7);
+ return new Menu("Menu Principal", "start", Labels, Liste, 8);
}
int main(int argc, char ** argv) {
@@ -128,6 +138,9 @@ int main(int argc, char ** argv) {
try {
HttpServ h(buildmenu(), port.to_int());
+ IRC i("botalacon");
+// i.Connect();
+// i.MainLoop();
TaskMan::MainLoop();
}
catch (GeneralException e) {