Some improvements, and fix spoolgen.php
[banana.git] / examples / index.php
1 <?php
2 /********************************************************************************
3 * index.php : main page (newsgroups list)
4 * -----------
5 *
6 * This file is part of the banana distribution
7 * Copyright: See COPYING files that comes with this distribution
8 ********************************************************************************/
9
10 require_once("banana/banana.inc.php");
11 $banana = new Banana();
12 $res = $banana->run();
13
14 if ($res != "") {
15 ?>
16 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
17 <html xmlns="http://www.w3.org/1999/xhtml">
18 <head>
19 <meta http-equiv="Content-Type" content="text/html;
20 charset=UTF-8">
21 <meta name="description" content="WebForum2/Banana">
22 <link href="css/style.css" type="text/css" rel="stylesheet" media="screen">
23 <link href="css/banana.css" type="text/css" rel="stylesheet" media="screen">
24 <title>
25 Banana, a NNTP<->Web Gateway
26 </title>
27 </head>
28 <body>
29 <div class="bloc">
30 <?php echo $res; ?>
31 <div class="foot">
32 <em>Banana</em>, a Web interface for a NNTP Server<br />
33 Developed under GPL License for <a href="http://www.polytechnique.org">Polytechnique.org</a>
34 Use <em>silk</em> icons from <a href="http://www.famfamfam.com/lab/icons/silk/">www.famfamfam.com</a>
35 </div>
36 </div>
37 </body>
38 </html>
39 <?php
40 }
41
42 // vim:set et sw=4 sts=4 ts=4
43 ?>