diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-16 22:33:24 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-16 22:33:24 +0000 |
commit | 670fe8496ebd0f39e18cfad540ee1ad15db1766f (patch) | |
tree | e89aeed41dadee41dc51b6fbcf2572d1f7596cd3 /usr/local/www/xmlrpc.php | |
parent | c09bb9c1169147c873d565cd4790f9a3adcc45c3 (diff) | |
download | pfsense-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-x | usr/local/www/xmlrpc.php | 15 |
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']; } /*****************************/ |