we are more and more standalone !
[banana.git] / index.php
index 0864b0a..536ad30 100644 (file)
--- a/index.php
+++ b/index.php
@@ -8,9 +8,28 @@
 ********************************************************************************/
 
 require_once("include/banana.inc.php");
-require_once("include/header.inc.php");
+$res = Banana::run();
 
-echo $banana->action_listGroups();
-
-require_once("include/footer.inc.php");
 ?>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; 
+    charset=iso-8859-1">
+    <meta name="description" content="WebForum2/Banana">
+    <link href="css/style.css" type="text/css" rel="stylesheet" media="screen">
+    <link href="css/banana.css" type="text/css" rel="stylesheet" media="screen">
+    <title>
+      Banana, a NNTP<->Web Gateway 
+    </title>
+  </head>
+  <body>
+    <div class="bloc">
+<?php echo $res; ?>
+      <div class="foot">
+        <em>Banana</em>, a Web interface for a NNTP Server<br />
+        Developed under GPL License for <a href="http://www.polytechnique.org">Polytechnique.org</a>
+      </div>
+    </div>
+  </body>
+</html>