We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 5f626812 authored by tobyink's avatar tobyink

Syntax fixes and check for missing parameters.

parent a57c15dd
......@@ -25,7 +25,10 @@ require_once 'utils/arc/ARC2.php';
$page = $_GET['page'];
$fmt = $_GET['fmt'];
$parser = ARC2::getSemHTMLParser('sem_html_formats' => 'rdfa');
if (empty($fmt)) $fmt = 'xml';
if (empty($page)) die("Required parameter 'page' not provided.");
$parser = ARC2::getSemHTMLParser(array('sem_html_formats' => 'rdfa'));
$parser->parse($base_url . $page);
$index = $parser->getSimpleIndex(0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment