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
|
* @see Event
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class MollomPlugin extends Plugin
|
class MollomPlugin extends Plugin
|
||||||
{
|
{
|
||||||
public $public_key;
|
public $public_key;
|
||||||
@ -110,6 +107,7 @@ class MollomPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
return '127.0.0.1';
|
return '127.0.0.1';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Call a remote procedure at the Mollom server. This function will
|
* Call a remote procedure at the Mollom server. This function will
|
||||||
* automatically add the information required to authenticate against
|
* automatically add the information required to authenticate against
|
||||||
@ -227,7 +225,6 @@ class MollomPlugin extends Plugin
|
|||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function xmlrpc($url) {
|
function xmlrpc($url) {
|
||||||
//require_once './includes/xmlrpc.inc';
|
//require_once './includes/xmlrpc.inc';
|
||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
@ -691,6 +688,7 @@ function xmlrpc_value_get_xml($xmlrpc_value) {
|
|||||||
$xmlrpc_message->methodname = trim($xmlrpc_message->current_tag_contents);
|
$xmlrpc_message->methodname = trim($xmlrpc_message->current_tag_contents);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($value_flag) {
|
if ($value_flag) {
|
||||||
if (count($xmlrpc_message->array_structs ) > 0) {
|
if (count($xmlrpc_message->array_structs ) > 0) {
|
||||||
// Add value to struct or array
|
// Add value to struct or array
|
||||||
@ -735,6 +733,7 @@ function xmlrpc_value_get_xml($xmlrpc_value) {
|
|||||||
<params>
|
<params>
|
||||||
|
|
||||||
EOD;
|
EOD;
|
||||||
|
|
||||||
foreach ($xmlrpc_request->args as $arg) {
|
foreach ($xmlrpc_request->args as $arg) {
|
||||||
$xmlrpc_request->xml .= '<param><value>';
|
$xmlrpc_request->xml .= '<param><value>';
|
||||||
$v = $this->xmlrpc_value($arg);
|
$v = $this->xmlrpc_value($arg);
|
||||||
@ -889,5 +888,4 @@ EOD;
|
|||||||
function xmlrpc_clear_error() {
|
function xmlrpc_clear_error() {
|
||||||
$this->xmlrpc_error(NULL, NULL, TRUE);
|
$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…
x
Reference in New Issue
Block a user