From af53ebaa7c8eee785bc85707164263a4d7bd0740 Mon Sep 17 00:00:00 2001 From: rylon Date: Fri, 24 Jan 2014 22:32:49 +0100 Subject: [PATCH 1/2] updated system reference, fixed uVote config --- config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.php b/config.php index 6fe3d88..8ee32a8 100644 --- a/config.php +++ b/config.php @@ -10,7 +10,7 @@ $uvote_config = array( array(SYSTEM\CONFIG\config_ids::SYS_CONFIG_ERRORREPORTIN array(SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_PASSWORD, 'dsjgfasudzfsvad'), array(SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_DBNAME, 'host_uVote'), array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_SYSTEMPATHREL, '../system/'), - array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_NAVIMG, '/web/system/sai/page/default_page/img/logo.png'),//not working, cuz paths are not set yet! \SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'page/default_page/img/logo.png')), + array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_NAVIMG, '/web/system/sai/page/img/logo.png'),//not working, cuz paths are not set yet! \SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'page/default_page/img/logo.png')), array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_BASEURL, 'http://mojotrollz.eu/web/uVote/sai.php?'), array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_TITLE, 'mojotrollz - Admin Area'), array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_COPYRIGHT, 'uVote, © WebCraft Media 2013'), From ae0177e3cfb066a99b2c9cf07cc32b6b8988b1b9 Mon Sep 17 00:00:00 2001 From: rylon Date: Fri, 24 Jan 2014 22:43:51 +0100 Subject: [PATCH 2/2] inserted counter for page/api call counting: uVote, pokerstats, danube:api --- api.php | 3 ++- index.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/api.php b/api.php index 1068d56..07053dd 100644 --- a/api.php +++ b/api.php @@ -9,4 +9,5 @@ SYSTEM\system::start($uvote_config); \SYSTEM\system::register_errorhandler_dbwriter(); \SYSTEM\system::register_errorhandler_jsonoutput(); -echo \SYSTEM\API\api::run('\SYSTEM\API\verify','api_uvote',array_merge($_POST,$_GET)); \ No newline at end of file +echo \SYSTEM\API\api::run('\SYSTEM\API\verify','api_uvote',array_merge($_POST,$_GET)); +new \SYSTEM\LOG\COUNTER("API was called sucessfully."); \ No newline at end of file diff --git a/index.php b/index.php index 5990967..e972e79 100644 --- a/index.php +++ b/index.php @@ -9,4 +9,5 @@ SYSTEM\system::start($uvote_config); \SYSTEM\system::register_errorhandler_dbwriter(); \SYSTEM\system::register_errorhandler_jsonoutput(); -echo \SYSTEM\API\api::run('\SYSTEM\API\verify','page_uvote',array_merge($_POST,$_GET),1,false,true)->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(); +new \SYSTEM\LOG\COUNTER("Page was called sucessfully."); \ No newline at end of file