]> jfr.im git - z_archive/KronOS.git/blame - dime/core/display.php
Simple 'desktop', menu, etc.
[z_archive/KronOS.git] / dime / core / display.php
CommitLineData
31f96580
JR
1<?php
2define('WEBOS', TRUE);
3require_once('common.php');
4
5if (empty($_GET['app'])) {
c9efe00e 6 make_error('No app specified to display.');
31f96580
JR
7}
8if ($_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}