<?php
/**
 * index.php
 *
 * @author David de la Croes
 * @package default
 */
include "checkhack.inc.php";

session_start();
  if (!empty($id)) {
     if (!is_numeric($id)) {
         die("Invalid ID!");
     }
  }       
  if(isset($_SERVER['HTTP_REFERER'])) {
    $thisReferer=$_SERVER['HTTP_REFERER'];
    if (stripos($thisReferer, "SELECT") !== false) {
       die();
    }
  }     
include "ConnDB.php";
$conn = ConnectDB("BCCD");
if (!isset($_REQUEST['op'])) {
   $op="start";
} else {
   $op=$_REQUEST['op'];
}
/*    if (isset($_REQUEST['pg'])) {
       $op=$_REQUEST['pg'];
       if ($op=="camps") {
           $op="histories";
           if (isset($_REQUEST['sub_menu'])) {
              $Camp=$_REQUEST['sub_menu'];
           }
       }

    }
*/
$op=strtolower($op);
$SiteDir="/mss/bccd";
include "includes/bccd.functions.inc.php";
include "includes/heading.inc.php";
echo "<div align=\"center\">\n";
echo "<div class=\"center1\">";
// echo "* $op ###\n";
$thisf = "includes/$op.inc.php";
//echo $thisf;
include "includes/$op.inc.php";
?>

<br />
<table summary="footer" border=0 cellpadding=0 width=840>
	<tr><td width=100% valign=top align=left>
<hr width="840" /><font size=1>
Acknowledgments: The project was funded by the Wellcome Trust, which is not responsible for the contents of the database. The help of the following research assistants is gratefully acknowledged: Ryna Boshoff, Murray Gorman, Janie Grobler,  Marelize Grobler, Luke Humby, Clare O’Reilly Jacomina Roose, Elsa Strydom, Mary van Blerk. Thanks also go to Peter Dennis for the design of the original database and to Dr Iain Smith, co-grantholder.
		</font>
	</td></tr>
</table>
<?php 
$Today=date("Y-m-d");
?>
<!-- <img src="https://journals.uct.ac.za/piwik/index.php?module=API&amp;method=ImageGraph.get&amp;idSite=3&amp;apiModule=UserCountry&amp;apiAction=getCountry&amp;token_auth=e02ad0c938e75611dee09dee73b646ee&amp;period=day&amp;date=2018-01-01,<?php echo $Today; ?>" />  -->
</div>
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-45629660-1', 'uct.ac.za');
  ga('send', 'pageview');
</script>
</body>
</html>
