[1120] | 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" /> |
---|
[1123] | 16 | <link rel="stylesheet" type="text/css" href="doxygen.css" /> |
---|
[1120] | 17 | <link rel="stylesheet" type="text/css" href="/main.css" /> |
---|
| 18 | </head> |
---|
| 19 | |
---|
| 20 | <body> |
---|
| 21 | |
---|
[1121] | 22 | <?php include($_SERVER["DOCUMENT_ROOT"]."/header.inc"); ?> |
---|
[1120] | 23 | |
---|
| 24 | <?php |
---|
| 25 | $page = $_GET['page']; |
---|
| 26 | $page = eregi_replace("[^a-z0-9_]", "", $page); |
---|
| 27 | $file = $_SERVER["DOCUMENT_ROOT"]."/manual/".$page.".html"; |
---|
| 28 | |
---|
| 29 | if(file_exists($file)) |
---|
| 30 | { |
---|
| 31 | $f = fopen($file, 'r'); |
---|
| 32 | $data = fread($f, filesize($file)); |
---|
| 33 | fclose($f); |
---|
| 34 | |
---|
| 35 | $data = eregi_replace(".*<body>", "", $data); |
---|
| 36 | $data = eregi_replace("</body>.*", "", $data); |
---|
| 37 | |
---|
| 38 | echo $data; |
---|
| 39 | } |
---|
| 40 | else |
---|
| 41 | { |
---|
| 42 | ?><p>Documentation error.</p><? |
---|
| 43 | } |
---|
| 44 | ?> |
---|
| 45 | |
---|
[1129] | 46 | <?php $rev = '$Id: manual.html 1129 2006-09-28 22:17:46Z sam $'; |
---|
| 47 | include($_SERVER['DOCUMENT_ROOT'].'/footer.inc'); ?> |
---|
[1120] | 48 | |
---|
| 49 | </body> |
---|
| 50 | </html> |
---|