<?php
require_once ("includes/database.php");
require_once ("includes/project.php");
$id = (int) $_GET['view'];
$Project = new Project($id);
if (!
empty($_GET['file'])) { $Project->readFileContent($file);
} else {
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CodeBase - Project Browsing</title>
<base href="http://www.mattiasgeniar.be">
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/scripts.js"> </script>
<style type="text/css">
<!--
.style2 {color: #CC0000}
-->
</style>
</head>
<body class="oneColFixCtrHdr">
<div id="container">
<div id="header">
<h1><span class="style2">C</span>ode<span class="style2">B</span>ase - Project Browsing</h1>
<!--
end #header --></div> <div id="mainContent">
<h3><a href="/">home</a> - <a href="allprojects/">projects</a> - <a href="login/">login</a></h3>
<h3>Project: <?=$Project->getName(); ?></h3>
<p><b>Location: <?=$Project->makeNiceUrls($file); ?></b></p>
<p><b>File: </b><i><?=$file; ?></i></p>
<div id="sourceCodeExpand"> <img id="sourceExpand" src="images/arrow_down.gif" onclick="expand()" onmouseover="this.className='cursor'" width='9' height='9' alt="expand" /> uitklappen</div>
<div id="sourceCode">
<?php
echo $Project->
readFileContent($file);
?>
</div>
<!--
end #mainContent --></div><?php
require_once ("footer.php");
?>
<!--
end #container --></div><script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2065823-1";
urchinTracker();
</script>
</body>
</html>