Document Document Webbserv1: Källkod
Webbserverprogrammering 1

Show sourcecode

The following files exists in this folder. Click to view.

Webbserverprogrammering/

comments.php
exercises/
img/
incl/
index-no-include.php
index.php
source.php
style/
viewsource.php

viewsource.php

23 lines UTF-8 Windows (CRLF)
<?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 include("incl/header.php"); ?>

<!-- Sidans/Dokumentets huvudsakliga innehåll -->
<div id="content">
<?php echo "$sourceBody"?>
<hr>
</div>

<?php include("incl/footer.php"); ?>