updated system reference, implemneted new api into anube and uvote
This commit is contained in:
parent
5706cbcf4d
commit
1817c924f4
5
api.php
5
api.php
@ -10,7 +10,4 @@ SYSTEM\system::include_ResultShortcut();
|
||||
SYSTEM\system::register_errorhandler_dbwriter(); //write errors to database (must be first errorhandler to register)
|
||||
SYSTEM\system::register_errorhandler_jsonoutput(); //print errors as json to caller
|
||||
|
||||
$api = new \SYSTEM\API\Api (new SYSTEM\verifyclass(), new ApiClass());
|
||||
echo $api->CALL(array_merge($_POST,$_GET));
|
||||
|
||||
//echo \SYSTEM\API\Api::run('\SYSTEM\verify', 'api_danube',array_merge($_POST,$_GET),group,strict=false);
|
||||
echo \SYSTEM\API\Api::run('\SYSTEM\API\verify', 'api_danube',array_merge($_POST,$_GET));
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
class ApiClass extends \SYSTEM\API\apiloginclass {
|
||||
class api_danube extends \SYSTEM\API\api_login {
|
||||
|
||||
public static function call_img($id){
|
||||
return picfolder::get(\SYSTEM\SERVERPATH(new PPAGE,'pics'),$id);
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
class PageApi extends \SYSTEM\PAGE\PageClass {
|
||||
class page_danube extends \SYSTEM\API\api_default {
|
||||
|
||||
public static function default_page(){
|
||||
return new default_page();}
|
||||
@ -10,7 +10,8 @@ SYSTEM\system::include_ResultShortcut();
|
||||
SYSTEM\system::register_errorhandler_dbwriter(); //write errors to database (must be first errorhandler to register)
|
||||
SYSTEM\system::register_errorhandler_jsonoutput(); //print errors as json to caller
|
||||
|
||||
$page = new \SYSTEM\PAGE\PageApi(new SYSTEM\verifyclass(), new PageApi());
|
||||
echo $page->CALL(array_merge($_POST,$_GET))->html();
|
||||
//$page = new \SYSTEM\PAGE\PageApi(new SYSTEM\API\verify(), new PageApi());
|
||||
//echo $page->CALL(array_merge($_POST,$_GET))->html();
|
||||
echo \SYSTEM\API\api::run('\SYSTEM\API\verify', 'page_danube', array_merge($_POST,$_GET),1,false,true)->html();
|
||||
|
||||
new INFO('Page was called sucessfully.');
|
||||
Reference in New Issue
Block a user