Location: PHPKode > scripts > phpRPC > phprpc/library/xoops/xmlQuery.php
<?php
// Function: xoops.xmlQuery

load_function("xoops.isAdmin");
$user = $params[0];
$pass = $params[1];
// login($user, $pass);

$sql  = $params[2];

if ( preg_match("/^SELECT/i", $sql) ) {
	global $dbs;
	$sql = preg_replace("/prefix\((.*)\)/i", "" . $dbs["prefix"] . "\\1", $sql);
	$rpc_encoder->xmlQuery($sql);
	} else {
	trigger_error("Only SELECT queries allowed!", E_USER_ERROR);
	}

$rpc_encoder->return_call();
?>
Return current item: phpRPC