Show sourcecode
The following files exists in this folder. Click to view.
.DS_Store
css/
exercises/
img/
incl/
index.php
source.php
styles/
viewsource.php
viewsource.php
34 lines UTF-8 Unix (LF)
<head>
<link rel="stylesheet" href="./styles/header.css">
<link rel="stylesheet" href="./styles/source.css">
<link rel="stylesheet" href="./styles/footer.css">
<link rel="stylesheet" href="./styles/stylesheet.css">
</head>
<?php
include("incl/config.php");
$title = "Webbserv1: Källkod";
$pageId = "viewsource";
// Include code from source.php to display sourcecode-viewer
$sourceBasedir=dirname(__FILE__);
$sourceNoEcho=true;
include("source.php");
$pageStyle=$sourceStyle;
?>
<?php
$ovningar = false;
include("./incl/header.php");
?>
<!-- Sidans/Dokumentets huvudsakliga innehåll -->
<div id="content">
<?php echo "$sourceBody"; ?>
<hr>
</div>
<?php include("incl/footer.php"); ?>