summaryrefslogtreecommitdiffstats
path: root/usr/local/www/xmlrpc.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-16 22:33:24 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-16 22:33:24 +0000
commit670fe8496ebd0f39e18cfad540ee1ad15db1766f (patch)
treee89aeed41dadee41dc51b6fbcf2572d1f7596cd3 /usr/local/www/xmlrpc.php
parentc09bb9c1169147c873d565cd4790f9a3adcc45c3 (diff)
downloadpfsense-670fe8496ebd0f39e18cfad540ee1ad15db1766f.zip
pfsense-670fe8496ebd0f39e18cfad540ee1ad15db1766f.tar.gz
Add ajaxStarted which will tell if Ajax has started.
Diffstat (limited to 'usr/local/www/xmlrpc.php')
-rwxr-xr-xusr/local/www/xmlrpc.php15
1 files changed, 5 insertions, 10 deletions
diff --git a/usr/local/www/xmlrpc.php b/usr/local/www/xmlrpc.php
index d63f7da..92d438a 100755
--- a/usr/local/www/xmlrpc.php
+++ b/usr/local/www/xmlrpc.php
@@ -165,20 +165,15 @@ function get_notices_xmlrpc($raw_params) {
/*****************************/
$carp_configure_doc = 'Basic XMLRPC wrapper for configuring CARP interfaces.';
-$carp_configure_sig = array(
- array(
- $XML_RPC_Boolean,
- $XML_RPC_String
- )
- );
-
+$carp_configure_sig = array(array($XML_RPC_Boolean, $XML_RPC_String));
+
function interfaces_carp_configure_xmlrpc($raw_params) {
- global $xmlrpc_g, $XML_RPC_Boolean, $XML_RPC_String;
+ global $xmlrpc_g;
$params = xmlrpc_params_to_php($raw_params);
- if(!xmlrpc_auth($params)) return new XML_RPC_Response(new XML_RPC_Value("auth_failure", $XML_RPC_String));
+ if(!xmlrpc_auth($params)) return $xmlrpc_g['return']['authfail'];
interfaces_carp_configure();
interfaces_carp_bring_up_final();
- return new XML_RPC_Response(new XML_RPC_Value(true, $XML_RPC_Boolean));
+ return $xmlrpc_g['return']['true'];
}
/*****************************/
OpenPOWER on IntegriCloud