'newpage');
$cont = addContinuationsEntry('editdoc', $cdata);
print "[ ";
print "New page ";
print "]
\n";
}
if(count($docs)) {
print "
Main Documentation
\n";
foreach($docs as $key => $val) {
print "";
print "$val
\n";
}
}
if(in_array($user['id'], $docreaders)) {
print "API Documentation
\n";
print "";
print "XML RPC API
\n";
print "";
print "XML RPC API Example Code
\n";
}
}
////////////////////////////////////////////////////////////////////////////////
///
/// \fn showXmlrpcapi()
///
/// \brief prints XML RPC API docs
///
////////////////////////////////////////////////////////////////////////////////
function showXmlrpcapi() {
$text = file_get_contents(".ht-inc/xmlrpcdocs/xmlrpcWrappers_8php.html");
$text = preg_replace('/xmlrpcWrappers_8php.html/', '', $text);
$replace = BASEURL . SCRIPT . "?mode=viewdocs&item=xmlrpcexample";
$text = preg_replace('/xmlrpc__example_8php-example.html/', $replace, $text);
$text = preg_replace('~^<\!DOCTYPE.*~s', '', $text);
$text = preg_replace('~/afs.*
~', '', $text);
$text = preg_replace('~\n