#826 - Method locstor.getVersion added to XMLRPC interface.
This commit is contained in:
parent
6588a0185c
commit
49ae0015da
3 changed files with 9 additions and 4 deletions
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: tomas $
|
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 $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/archiveServer/var/conf.php,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -33,6 +33,8 @@
|
||||||
* archiveServer configuration file
|
* archiveServer configuration file
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
define('LS_VERSION', '0.9');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* configuration structure:
|
* configuration structure:
|
||||||
*
|
*
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: tomas $
|
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 $
|
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(
|
$methods = array(
|
||||||
'test' => 'Tests toupper and checks sessid, params: '.
|
'test' => 'Tests toupper and checks sessid, params: '.
|
||||||
'teststring, sessid.',
|
'teststring, sessid.',
|
||||||
|
'getVersion' => 'Dummy function for connection testing.',
|
||||||
'authenticate' => 'Checks authentication.',
|
'authenticate' => 'Checks authentication.',
|
||||||
'login' => 'Login to storage.',
|
'login' => 'Login to storage.',
|
||||||
'logout' => 'Logout from storage.',
|
'logout' => 'Logout from storage.',
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: tomas $
|
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 $
|
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'){
|
if($pars[0] == '-s'){
|
||||||
array_shift($pars);
|
array_shift($pars);
|
||||||
$serverPath = 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";
|
#$serverPath = "http://localhost:80/livesupportArchiveServerCVS/xmlrpc/xrLocStor.php";
|
||||||
|
|
||||||
|
@ -59,6 +59,8 @@ $infos = array(
|
||||||
"methodSignature" => array('m'=>"system.methodSignature", 'p'=>0),
|
"methodSignature" => array('m'=>"system.methodSignature", 'p'=>0),
|
||||||
"test" =>
|
"test" =>
|
||||||
array('m'=>"archive.test", 'p'=>array('sessid', 'teststring')),
|
array('m'=>"archive.test", 'p'=>array('sessid', 'teststring')),
|
||||||
|
"getVersion" => array('m'=>"archive.getVersion",
|
||||||
|
'p'=>array(), 'r'=>'version'),
|
||||||
"authenticate" => array('m'=>"archive.authenticate",
|
"authenticate" => array('m'=>"archive.authenticate",
|
||||||
'p'=>array('login', 'pass'), 'r'=>'authenticate'),
|
'p'=>array('login', 'pass'), 'r'=>'authenticate'),
|
||||||
"login" => array('m'=>"archive.login",
|
"login" => array('m'=>"archive.login",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue