From 49ae0015da1d7c6ad4bc68273150fb514217f357 Mon Sep 17 00:00:00 2001 From: tomas Date: Sun, 17 Apr 2005 19:10:40 +0000 Subject: [PATCH] #826 - Method locstor.getVersion added to XMLRPC interface. --- livesupport/modules/archiveServer/var/conf.php | 4 +++- livesupport/modules/archiveServer/var/xmlrpc/xrArchive.php | 3 ++- .../modules/archiveServer/var/xmlrpc/xr_cli_test.php | 6 ++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/livesupport/modules/archiveServer/var/conf.php b/livesupport/modules/archiveServer/var/conf.php index 1364eebee..ebeda7ffa 100644 --- a/livesupport/modules/archiveServer/var/conf.php +++ b/livesupport/modules/archiveServer/var/conf.php @@ -23,7 +23,7 @@ Author : $Author: tomas $ - Version : $Revision: 1.12 $ + Version : $Revision: 1.13 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/archiveServer/var/conf.php,v $ ------------------------------------------------------------------------------*/ @@ -33,6 +33,8 @@ * archiveServer configuration file */ +define('LS_VERSION', '0.9'); + /** * configuration structure: * diff --git a/livesupport/modules/archiveServer/var/xmlrpc/xrArchive.php b/livesupport/modules/archiveServer/var/xmlrpc/xrArchive.php index 86bf0302b..3c8f85408 100644 --- a/livesupport/modules/archiveServer/var/xmlrpc/xrArchive.php +++ b/livesupport/modules/archiveServer/var/xmlrpc/xrArchive.php @@ -23,7 +23,7 @@ Author : $Author: tomas $ - Version : $Revision: 1.4 $ + Version : $Revision: 1.5 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/archiveServer/var/xmlrpc/xrArchive.php,v $ ------------------------------------------------------------------------------*/ @@ -77,6 +77,7 @@ $archive = &new XR_Archive($dbc, $config); $methods = array( 'test' => 'Tests toupper and checks sessid, params: '. 'teststring, sessid.', + 'getVersion' => 'Dummy function for connection testing.', 'authenticate' => 'Checks authentication.', 'login' => 'Login to storage.', 'logout' => 'Logout from storage.', diff --git a/livesupport/modules/archiveServer/var/xmlrpc/xr_cli_test.php b/livesupport/modules/archiveServer/var/xmlrpc/xr_cli_test.php index 6457ee43c..2f27fa05d 100644 --- a/livesupport/modules/archiveServer/var/xmlrpc/xr_cli_test.php +++ b/livesupport/modules/archiveServer/var/xmlrpc/xr_cli_test.php @@ -23,7 +23,7 @@ Author : $Author: tomas $ - Version : $Revision: 1.3 $ + Version : $Revision: 1.4 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/archiveServer/var/xmlrpc/xr_cli_test.php,v $ ------------------------------------------------------------------------------*/ @@ -37,7 +37,7 @@ if($pars[0] == '-v'){ $verbose = TRUE; array_shift($pars); } if($pars[0] == '-s'){ array_shift($pars); $serverPath = array_shift($pars); -}else $serverPath = 'http://localhost:80/livesupportArchiveServer/xmlrpc/xrLocStor.php'; +}else $serverPath = 'http://localhost:80/livesupportArchiveServer/xmlrpc/xrArchive.php'; #$serverPath = "http://localhost:80/livesupportArchiveServerCVS/xmlrpc/xrLocStor.php"; @@ -59,6 +59,8 @@ $infos = array( "methodSignature" => array('m'=>"system.methodSignature", 'p'=>0), "test" => array('m'=>"archive.test", 'p'=>array('sessid', 'teststring')), + "getVersion" => array('m'=>"archive.getVersion", + 'p'=>array(), 'r'=>'version'), "authenticate" => array('m'=>"archive.authenticate", 'p'=>array('login', 'pass'), 'r'=>'authenticate'), "login" => array('m'=>"archive.login",