2 require_once("xmlrpc.inc");
3 require_once("xmlrpcs.inc");
4 require_once("OpenemrBillingServer.class.php");
6 require_once(dirname(__FILE__
) . "/../../includes/config.php");
10 if ($_SERVER['PHP_AUTH_USER'] == $GLOBALS['oer_config']['freeb']['username'] && $_SERVER['PHP_AUTH_PW'] == $GLOBALS['oer_config']['freeb']['password']) {
17 $oerbill = new OpenemrBillingServer($GLOBALS['xmlrpcerruser']);
19 $s=new xmlrpc_server(false,false);
22 header('WWW-Authenticate: Basic realm="Unauthorized Access Prohibited"');
23 header("HTTP/1.0 401 Unauthorized");
24 return new xmlrpcresp(0, &$oerbill->xmlrpcerruser
, $GLOBALS['xmlrpcerruser']);
27 $s->registerMethods(&$oerbill);