blob: bf4b789c13bea82d17309cd086ee2f81b02f9426 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<%
/*
* Copyright (C) Rafal Szczesniak 2007
*/
/* Simple JSON-RPC access to the configuration parameters */
function _lp_get(params, error)
{
if (params.length < 1)
{
error.setError(jsonrpc.Constant.ServerError.ParameterMismatch,
"no parameter specified");
return error;
}
var lp = loadparm_init();
var name = params[0];
var value = lp.get(name);
return value;
}
jsonrpc.method.lp_get = _lp_get;
%>
|