This file is indexed.

/usr/share/doc/php-horde-rpc/examples/xmlrpc.php is in php-horde-rpc 2.1.7-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
27
28
<?php
/**
 * @package Rpc
 */

die("Please configure the URL, username, and password, and then remove this line.\n");

// XML-RPC endpoint
$rpc_endpoint = 'http://example.com/horde/rpc.php';

// XML-RPC method to call
$rpc_method = 'calendar.listCalendars';

// XML-RPC options, usually username and password
$rpc_options = array(
    'request.username' => '',
    'request.password' => '',
);

$http_client = new Horde_Http_Client($rpc_options);
$result = Horde_Rpc::request(
    'xmlrpc',
    $GLOBALS['rpc_endpoint'],
    $GLOBALS['rpc_method'],
    $GLOBALS['http_client'],
    array());

var_dump($result);