]>
Commit | Line | Data |
---|---|---|
31f96580 JR |
1 | <?php |
2 | define('WEBOS', TRUE); | |
3 | require_once('common.php'); | |
4 | ||
5 | if (empty($_GET['app'])) { | |
c9efe00e | 6 | make_error('No app specified to display.'); |
31f96580 JR |
7 | } |
8 | if ($_GET['app'] == 'core') { | |
c9efe00e JR |
9 | if (empty($_GET['part'])) |
10 | make_error('No part of core specified to display.'); | |
11 | ||
12 | if (strpos($_GET['part'], '/') !== FALSE) // there WAS a '/' in it | |
13 | make_error('No such part of core.'); | |
14 | ||
15 | $fn = 'pages/'.$_GET['part'].'.html'; | |
16 | if (!is_file($fn)) // file doesn't exist or is not 'regular file' | |
17 | make_error('No such part of core.'); | |
18 | ||
19 | $data = file_get_contents($fn); | |
20 | make_reply($data); | |
31f96580 | 21 | } else { // $_GET['app'] != 'core' |
c9efe00e | 22 | make_error('Not implemented.'); |
31f96580 | 23 | } |