From 6054bf359a3c294e15d00c31f6b3c3f2019117b0 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Wed, 30 May 2012 09:20:55 +0000 Subject: [PATCH] 2012-05-30 Sergio Martin * include/functions_api.php: Added to API a test function to test the API connection returning OK when success git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6364 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_api.php | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 94d2bcb56a..8fdf4f3671 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-05-30 Sergio Martin + + * include/functions_api.php: Added to API a test function + to test the API connection returning OK when success + 2012-05-30 Dario Rodriguez * include/functions_reporting.php: Fixed group view, diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index 2fa2d6b5bb..463e5c3a3a 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -178,6 +178,10 @@ function isInACL($ip) { return false; } +function get_test() { + echo "OK"; +} + //-------------------------DEFINED OPERATIONS FUNCTIONS----------------- function get_groups($thrash1, $thrash2, $other, $returnType, $user_in_db) { if ($other['type'] == 'string') {