Show sourcecode
The following files exists in this folder. Click to view.
3kolumn.php
img/
incl/
index.php
login.php
pella1.php
sida1.php
src/
style/
style.php
test.php
viewsource.php
test.php
97 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php
include("incl/config.php");
$pageId = "test";
$title="test";
// Check if the url contains a querystring with a page-part.
$p = null;
if(isset($_GET["p"]))
{
$p = $_GET["p"];
}
// Is the page known?
$path = "incl/test";
$file = null;
if($p == "kmom02-pagestyle")
{
$Title = "Tester kmom02: Visa olika styles med \$pageStyle";
$file = "kmom02_pagestyle.php";
}
else if ($p == "kmom03-get")
{
$pageTitle = "Tester kmom03: Visa \$_GET";
$file = "kmom03_get.php";
}
else if ($p == "kmom03-getform")
{
$pageTitle = "Tester kmom03: Form med get";
$file = "kmom03_getform.php";
}
else if ($p == "kmom03-postform")
{
$pageTitle = "Tester kmom03: Form med post";
$file = "kmom03_postform.php";
}
else if ($p == "kmom03-validate")
{
$pageTitle = "Tester kmom03: Validera inkommande";
$file = "kmom03_validate.php";
}
else if ($p == "kmom03-server")
{
$pageTitle = "Tester kmom03: Visa \$_SERVER";
$file = "kmom03_server.php";
}
else if ($p == "kmom03-sessiondestroy")
{
$pageTitle = "Tester kmom03: Förstör sessionen";
$file = "kmom03_sessiondestroy.php";
destroySession();
}
else if ($p == "kmom03-session")
{
$pageTitle = "Tester kmom03: Visa \$_SESSION";
$file = "kmom03_session.php";
}
else if ($p == "kmom03-sessionchange")
{
$pageTitle = "Tester kmom03: Ändra värden i sessionen";
$file = "kmom03_sessionchange.php";
}
else if ($p == "kmom03-sessioninfo")
{
$pageTitle = "Tester kmom03: Information om sessionen";
$file = "kmom03_sessioninfo.php";
}
else if ($p == "kmom03-create-password")
{
$pageTitle = "Tester kmom03: Kryptera lösenordet";
$file = "kmom03_create_password.php";
}
else
{
$pageTitle = "tester";
$file = "default.php";
}
?>
<?php include("incl/header.php"); ?>
<aside class="left" style="width:22%;">
<?php include("$path/aside.php"); ?>
</aside>
<article class="right border justify-para" style="width:72%;">
<p class="quiet small">Källkod till detta testfall, <code><?php echo "$path/$file"; ?></code>, <a href="viewsource.php?dir=<?php echo $path; ?>&file=<?php echo $file; ?>#file">hittar du här</a>.</p>
<?php include("$path/$file"); ?>
<?php include("incl/byline.php"); ?>
<hr>
</article>
<?php include("incl/footer.php"); ?>
</div>