From 2459262f6a99f0cb9a1e5277ed8416509764e790 Mon Sep 17 00:00:00 2001 From: rylon Date: Sun, 4 Aug 2013 18:26:30 +0200 Subject: [PATCH] updated system reference, implemneted new api into anube and uvote --- api.php | 3 +-- index.php | 3 +-- uVote/api/{ApiClass.php => api_uvote.php} | 2 +- uVote/page/{PageApi.php => page_uvote.php} | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) rename uVote/api/{ApiClass.php => api_uvote.php} (82%) rename uVote/page/{PageApi.php => page_uvote.php} (96%) diff --git a/api.php b/api.php index 0495874..9208b95 100644 --- a/api.php +++ b/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)); \ No newline at end of file +echo \SYSTEM\API\api::run('\SYSTEM\API\verify','api_uvote',array_merge($_POST,$_GET)); \ No newline at end of file diff --git a/index.php b/index.php index 9fbaff6..ab0d047 100644 --- a/index.php +++ b/index.php @@ -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(); \ No newline at end of file +echo \SYSTEM\API\api::run('\SYSTEM\API\verify','page_uvote',array_merge($_POST,$_GET),1,false,true)->html(); \ No newline at end of file diff --git a/uVote/api/ApiClass.php b/uVote/api/api_uvote.php similarity index 82% rename from uVote/api/ApiClass.php rename to uVote/api/api_uvote.php index 5ba6588..40709df 100644 --- a/uVote/api/ApiClass.php +++ b/uVote/api/api_uvote.php @@ -1,6 +1,6 @@