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

Commit 2c0fe17f authored by tobyink's avatar tobyink

Syntax fixes and check for missing parameters.

parent e224831a
......@@ -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