updated system reference, implemneted new api into anube and uvote
This commit is contained in:
parent
2a7683d509
commit
2459262f6a
3
api.php
3
api.php
@ -9,5 +9,4 @@ require_once '../system/log/register_result_shortcut.php';
|
||||
require_once 'config.php';
|
||||
SYSTEM\system::start($uvote_config);
|
||||
|
||||
$api = new \SYSTEM\API\Api (new SYSTEM\verifyclass(), new ApiClass());
|
||||
echo $api->CALL(array_merge($_POST,$_GET));
|
||||
echo \SYSTEM\API\api::run('\SYSTEM\API\verify','api_uvote',array_merge($_POST,$_GET));
|
||||
@ -9,5 +9,4 @@ require_once '../system/log/register_result_shortcut.php';
|
||||
require_once 'config.php';
|
||||
SYSTEM\system::start($uvote_config);
|
||||
|
||||
$page = new \SYSTEM\PAGE\PageApi(new SYSTEM\verifyclass(), new PageApi());
|
||||
echo $page->CALL(array_merge($_POST,$_GET))->html();
|
||||
echo \SYSTEM\API\api::run('\SYSTEM\API\verify','page_uvote',array_merge($_POST,$_GET),1,false,true)->html();
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
class ApiClass extends \SYSTEM\API\apiloginclass {
|
||||
class api_uvote extends \SYSTEM\API\api_login {
|
||||
public static function call_vote_action_vote($poll_ID, $vote) {
|
||||
return votes::write_vote($poll_ID, $vote);}
|
||||
public static function call_vote_action_barsperusers($poll_ID){
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
class PageApi extends \SYSTEM\PAGE\PageClass {
|
||||
class page_uvote extends \SYSTEM\API\api_default {
|
||||
|
||||
public static function default_page(){
|
||||
return new default_page();}
|
||||
Loading…
x
Reference in New Issue
Block a user