|
- <?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 manual" />
- <meta name="Keywords" content="libcaca, ASCII, ASCII ART, console, text mode, ncurses, slang, AAlib" />
- <title>libcaca manual</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"); ?>
-
- <div style="text-align: center;">
- <a href="/manual/">^^^ Index</a>
- </div>
-
- <?php
- $page = $_GET['page'];
- $page = eregi_replace("[^-a-z0-9_]", "", $page);
- $file = $_SERVER["DOCUMENT_ROOT"]."/manual/".$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>Documentation error.</p><?
- }
- ?>
-
- <?php $rev = '$Id$';
- include($_SERVER['DOCUMENT_ROOT'].'/footer.inc'); ?>
-
- </body>
- </html>
|