Webbserverprogrammering 1

Show sourcecode

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

Webbsrvprg/ramverk/

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

viewsource.php

26 lines UTF-8 Unix (LF)
 <?php 
include("incl/config.php");

$title = "Webbserv1: Källkod";
$pageId = "viewsource";

// Include code from source.php to display sourcecode-viewer
// Visa hela Webbsrvprg (ett steg upp) så att även exercises/ syns
$sourceBasedir=dirname(__DIR__);
$sourceSubDir="../";
$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"); ?>