updated system reference, implemneted new api into anube and uvote

This commit is contained in:
Ulf Gebhardt 2013-08-04 18:26:30 +02:00
parent 2a7683d509
commit 2459262f6a
4 changed files with 4 additions and 6 deletions

View File

@ -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));

View File

@ -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();

View File

@ -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){

View File

@ -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();}