-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdata.php
More file actions
28 lines (27 loc) · 1.01 KB
/
data.php
File metadata and controls
28 lines (27 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/******************************************************
* Protolus : Logic
******************************************************
* @created 09/09/09
* @author Abbey Hawk Sparrow
* @name root index
******************************************************
* This script provides an entry point for all URLS to
* map to a panel, redirection, or to location failure
* It also performs all needed App initialization
* todo: replace this header block with YAML
******************************************************/
ini_set('zlib.output_compression', 'On'); //setup compression for lighttpd
require('./Protolus/initialize.php');
if(Panel::isDefined($panel)){
echo PageRenderer::data($panel, $silo);
}else{
WebApplication::addHeader("HTTP/1.0 404 Not Found");
echo(json_encode(array(
'error'=>array(
'code'=>'-1',
'message'=>'No data for this panel.'
)
)));
}
?>