1<?php
2   require_once ('getErrors.php');
3   require_once ('getWikiData.php');
4   require_once ('getContinent.php');
5
6   // get country and page
7   $q=$_GET["q"];
8   $topic=$_GET["p"];
9
10   // get Continent
11   list ($continent, $country) = getContinent($q);
12   $html = '<h1> '.ucwords($topic).'</h1>';
13   $html .= '<h2>' . ucwords($continent) . "</h2>";
14   $namespace = $topic;
15   $path = $topic . ':earth:' . $continent;
16   $wikiData = pullInWikiData($path, $namespace, $topic);
17   if ($wikiData != '')
18       $html .= $wikiData;
19   else
20       $html .=  '<p>'. htmlentities($exploreErrors['editPg']['en'], ENT_NOQUOTES) . htmlentities($exploreErrors['ckBack']['en'], ENT_NOQUOTES) .'</p> ';
21   $html  .= '<br /><p><a href="doku.php?id='.$path.'"><input type="button" class="button" value="Go to Edit" title="Go To Edit" /></a></p>';
22   $html .= htmlentities($exploreErrors['update']['en'], ENT_NOQUOTES);
23   echo $html;
24
25?>