Location: PHPKode > scripts > phpRPC > phprpc/library/system/saveMethodFile.php
<?php
// Function system.saveMethodFile

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

$method  = $params[2];
$data    = $params[3];

$fp = fopen($this->library . str_replace(".", "/", $method) . ".php", "wb");
fwrite($fp, $data, strlen($data));
fclose($fp);

$rpc_encoder->add_value("boolean", 1);
$rpc_encoder->return_call();
?>
Return current item: phpRPC