This commit is contained in:
Naeltard 2015-06-26 14:38:32 +02:00
parent e7caa4eb06
commit 29b6653766
2 changed files with 14 additions and 1 deletions

13
api.php Normal file
View File

@ -0,0 +1,13 @@
<?php
require_once 'lib/autoload.inc'; //SYSTEM Classes
require_once 'teamspeak/autoload.inc'; //Project Classes
require_once '/home/web/web/config/get_config.php';
\SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__)));
\SYSTEM\system::include_ExceptionShortcut();
\SYSTEM\system::include_ResultShortcut();
\SYSTEM\system::register_errorhandler_dbwriter();
\SYSTEM\system::register_errorhandler_jsonoutput();
echo \SYSTEM\API\api::run('\SYSTEM\API\verify','api_teamspeak',array_merge($_POST,$_GET));
new \SYSTEM\LOG\COUNTER("API was called sucessfully.");

View File

@ -6,7 +6,7 @@ class default_page extends SYSTEM\PAGE\Page {
'<script src="'.\LIB\lib_bootstrap::js().'" type="text/javascript"></script>'.
'<script src="'.\LIB\lib_jqbootstrapvalidation::js().'" type="text/javascript"></script>'.
'<script type="text/javascript" src="'.\SYSTEM\WEBPATH(new PPAGE(),'default_page/js/default_page.js').'"></script>'.
'<script type="text/javascript" src="'.\SYSTEM\SERVERPATH(new PLIB(),'tsstatus/tsstatus.js').'"></script>';}
'<script type="text/javascript" src="'.\SYSTEM\WEBPATH(new PLIB(),'tsstatus/tsstatus.js').'"></script>';}
public static function css(){
return '<link rel="stylesheet" href="'.\LIB\lib_bootstrap::css().'" type="text/css" />'.
'<link rel="stylesheet" href="'.\LIB\lib_system::css().'" type="text/css" />'.