summaryrefslogtreecommitdiff
path: root/src/Main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.cc')
-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) {