Show sourcecode

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

webbutv3/

exercices/
exercises.php
header.php
incl/
index.php
ovningar/
project
projects.php
projekt/
reflections.php
source.php
stresstest.php
style.css
test
test.py
upgifter/
viewsource.php
word-app/

viewsource.php

28 lines UTF-8 Windows (CRLF)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

include("incl/config.php");

$title "Källkod - Alriks sida (wsprog 1)";
$pageId "viewsource";
// page specific $pageStyle is designed inside source.php

// Include code from source.php to display sourcecode-viewer
$sourceBasedir=dirname(__FILE__);
$sourceNoEcho=true;
include(
"source.php");
$pageStyle=$sourceStyle// $sourceStyle variable is declared and "filled" inside source.php
// -------------------------------------------------------------

include("incl/header.php");
?>


<!-- main content  -->
<main>
 <?php echo "$sourceBody"?>
</main>
<script type="text/javascript" src="js/viewsource.js"></script>

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