<?php header("Content-Type: text/html; charset=utf-8"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <meta name="GENERATOR" content="vim" />
   <meta name="Author" content="sam@zoy.org (Sam Hocevar)" />
   <meta name="Description" content="libcaca mailing-list" />
   <meta name="Keywords" content="libcaca, ASCII, ASCII ART, console, text mode, ncurses, slang, AAlib" />
   <title>libcaca mailing-list</title>
   <link rel="icon" type="image/x-icon" href="/favicon.ico" />
   <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
   <link rel="stylesheet" type="text/css" href="doxygen.css" />
   <link rel="stylesheet" type="text/css" href="/main.css" />
</head>

<body>

<?php include($_SERVER["DOCUMENT_ROOT"]."/header.inc"); ?>

<?php
    $page = $_GET['page'];
    $page = eregi_replace("[^a-z0-9_]", "", $page);
    $file = $_SERVER["DOCUMENT_ROOT"]."/list/".$page.".html";

    if(file_exists($file))
    {
        $f = fopen($file, 'r');
        $data = fread($f, filesize($file));
        fclose($f);

        $data = eregi_replace(".*<body>", "", $data);
        $data = eregi_replace("</body>.*", "", $data);

        echo $data;
    }
    else
    {
?>
    <p> There are three libcaca mailing-lists: </p>

    <ul>
      <li> libcaca (<a href="/list/">thread index</a>, <a href="/list/maillist.html">date index</a>) </li>
      <li> libcaca-svn (<a href="/list-svn/">thread index</a>, <a href="/list-svn/maillist.html">date index</a>) </li>
      <li> libcaca-trac (<a href="/list-trac/">thread index</a>, <a href="/list-trac/maillist.html">date index</a>) </li>
    </ul>
<?
    }
?>

<?php $rev = '$Id$';
      include($_SERVER['DOCUMENT_ROOT'].'/footer.inc'); ?>

</body>
</html>
