1234567891011121314151617181920212223 |
- <?php
- global $_RAWDATA, $_DATA;
- if($_SERVER['REQUEST_METHOD']!='GET'){
- $_RAWDATA = file_get_contents( 'php://input','r');
- $_DATA = json_decode($_RAWDATA,true);
- }else{
- $_RAWDATA = '';
- $_DATA = array();
- }
- require_once('config.php');
- require_once('lib/bugs.class.php');
- require_once('lib/errorhandler.php');
- Bugs::connect(DB_HOST,DB_USER,DB_PASS,DB);
- foreach(glob("paths/*.path.php") as $filename){
- require_once($filename);
- }
- if(empty($_SERVER['REDIRECT_URL'])){
- $_SERVER['REDIRECT_URL'] = 'http://'.Bugs::setting('url.host').Bugs::setting('url.base');
- }
- Router::handle($_SERVER['REDIRECT_URL'],null,function($res,$url){
- trigger_error("Not implemented");
- });
- ?>
|