Update indentation, whitespace and line breaks.
This commit is contained in:
parent
3bcff2fa86
commit
a4c5a0a229
@ -64,9 +64,6 @@ define('MOLLOM_REDIRECT', 1200);
|
||||
*
|
||||
* @see Event
|
||||
*/
|
||||
|
||||
|
||||
|
||||
class MollomPlugin extends Plugin
|
||||
{
|
||||
public $public_key;
|
||||
@ -110,6 +107,7 @@ class MollomPlugin extends Plugin
|
||||
}
|
||||
return '127.0.0.1';
|
||||
}
|
||||
|
||||
/**
|
||||
* Call a remote procedure at the Mollom server. This function will
|
||||
* automatically add the information required to authenticate against
|
||||
@ -227,7 +225,6 @@ class MollomPlugin extends Plugin
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
function xmlrpc($url) {
|
||||
//require_once './includes/xmlrpc.inc';
|
||||
$args = func_get_args();
|
||||
@ -304,14 +301,14 @@ class MollomPlugin extends Plugin
|
||||
return 'string';
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Generate XML representing the given value.
|
||||
*
|
||||
* @param $xmlrpc_value
|
||||
* @return
|
||||
* XML representation of value.
|
||||
*/
|
||||
function xmlrpc_value_get_xml($xmlrpc_value) {
|
||||
function xmlrpc_value_get_xml($xmlrpc_value) {
|
||||
switch ($xmlrpc_value->type) {
|
||||
case 'boolean':
|
||||
return '<boolean>'. (($xmlrpc_value->data) ? '1' : '0') .'</boolean>';
|
||||
@ -352,7 +349,7 @@ function xmlrpc_value_get_xml($xmlrpc_value) {
|
||||
break;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform an HTTP request.
|
||||
@ -691,6 +688,7 @@ function xmlrpc_value_get_xml($xmlrpc_value) {
|
||||
$xmlrpc_message->methodname = trim($xmlrpc_message->current_tag_contents);
|
||||
break;
|
||||
}
|
||||
|
||||
if ($value_flag) {
|
||||
if (count($xmlrpc_message->array_structs ) > 0) {
|
||||
// Add value to struct or array
|
||||
@ -735,6 +733,7 @@ function xmlrpc_value_get_xml($xmlrpc_value) {
|
||||
<params>
|
||||
|
||||
EOD;
|
||||
|
||||
foreach ($xmlrpc_request->args as $arg) {
|
||||
$xmlrpc_request->xml .= '<param><value>';
|
||||
$v = $this->xmlrpc_value($arg);
|
||||
@ -889,5 +888,4 @@ EOD;
|
||||
function xmlrpc_clear_error() {
|
||||
$this->xmlrpc_error(NULL, NULL, TRUE);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -15,8 +15,9 @@ addPlugin('Mollom',
|
||||
)
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
replace '...' with your own public and private keys for your site, which you can get from mollom.com
|
||||
replace '...' with your own public and private keys for your site, which you can
|
||||
get from mollom.com.
|
||||
|
||||
If you're using this plugin, i'd love to know about it -- shiny@cpan.org or shiny on freenode.
|
||||
If you're using this plugin, i'd love to know about it -- shiny@cpan.org or
|
||||
shiny on freenode.
|
||||
|
Loading…
Reference in New Issue
Block a user