source: www/manual.html @ 2000

Last change on this file since 2000 was 2000, checked in by Sam Hocevar, 12 years ago
  • Have each manual page link to the home page.
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1<?php header("Content-Type: text/html; charset=utf-8"); ?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
3       "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
4
5<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
6
7<head>
8   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9   <meta name="GENERATOR" content="vim" />
10   <meta name="Author" content="sam@zoy.org (Sam Hocevar)" />
11   <meta name="Description" content="libcaca manual" />
12   <meta name="Keywords" content="libcaca, ASCII, ASCII ART, console, text mode, ncurses, slang, AAlib" />
13   <title>libcaca manual</title>
14   <link rel="icon" type="image/x-icon" href="/favicon.ico" />
15   <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
16   <link rel="stylesheet" type="text/css" href="doxygen.css" />
17   <link rel="stylesheet" type="text/css" href="/main.css" />
18</head>
19
20<body>
21
22<?php include($_SERVER["DOCUMENT_ROOT"]."/header.inc"); ?>
23
24<div style="text-align: center;">
25   <a href="/manual/">^^^ Index</a>
26</div>
27
28<?php
29    $page = $_GET['page'];
30    $page = eregi_replace("[^-a-z0-9_]", "", $page);
31    $file = $_SERVER["DOCUMENT_ROOT"]."/manual/".$page.".html";
32
33    if(file_exists($file))
34    {
35        $f = fopen($file, 'r');
36        $data = fread($f, filesize($file));
37        fclose($f);
38
39        $data = eregi_replace(".*<body>", "", $data);
40        $data = eregi_replace("</body>.*", "", $data);
41
42        echo $data;
43    }
44    else
45    {
46        ?><p>Documentation error.</p><?
47    }
48?>
49
50<?php $rev = '$Id: manual.html 2000 2007-11-17 02:12:50Z sam $';
51      include($_SERVER['DOCUMENT_ROOT'].'/footer.inc'); ?>
52
53</body>
54</html>
Note: See TracBrowser for help on using the repository browser.