Show sourcecode
The following files exists in this folder. Click to view.
databas/
dbtestforfattare.php
forms/
funktioner/
grunder/
incl/
include/
index.php
ovn_fn1.php
ovn_fn2.php
ovn_fn3.php
ovn_fn4.php
ovn_fn5.php
ovn_fn6.php
ovn_gr1.php
ovn_gr2.php
ovn_gr3.php
ovn_gr4.php
ovn_gr5.php
ovn_incl1.php
ovningar.css
resultatsidor/
index.php
53 lines UTF-8 Unix (LF)
<?php
error_reporting(-1); // Report all type of errors
ini_set('display_errors', 1); // Display all errors
ini_set('output_buffering', 0); // Do not buffer outputs, write directly
?>
<!DOCTYPE html>
<html lang="sv">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>hugo@webb:~/webbsrvprg/exercises</title>
<link rel="stylesheet" href="../css/style.css">
<link rel="stylesheet" href="../css/terminal.css">
<script src="../js/terminal.js"></script>
</head>
<body>
<a class="tillbaka" href="../index.php">[cd ..]</a>
<pre class="heading">
/$ /$ /$$
|_/|_/ |__/
/$$$$$$ /$$ /$$ /$$$$$$$ /$$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$
/$$__ $$| $$ /$$/| $$__ $$| $$| $$__ $$ /$$__ $$ |____ $$ /$$__ $$
| $$ \ $$ \ $$/$$/ | $$ \ $$| $$| $$ \ $$| $$ \ $$ /$$$$$$$| $$ \__/
| $$ | $$ \ $$$/ | $$ | $$| $$| $$ | $$| $$ | $$ /$$__ $$| $$
| $$$$$$/ \ $/ | $$ | $$| $$| $$ | $$| $$$$$$$| $$$$$$$| $$
\______/ \_/ |__/ |__/|__/|__/ |__/ \____ $$ \_______/|__/
/$$ \ $$
| $$$$$$/
\______/
</pre>
<main class="terminal">
<div class="titlebar">övningar — bash</div>
<?php
$kategorier = ["grunder", "funktioner", "include", "forms"];
foreach ($kategorier as $mapp) {
$filer = glob("$mapp/*.php");
natsort($filer); // ovn_gr10 hamnar efter ovn_gr9
?>
<p><span class="prompt">~/webbsrvprg/exercises $</span> ls -l <?= $mapp ?>/</p>
<ul class="listing">
<?php foreach ($filer as $fil) { ?>
<li><span class="perm">-rw-r--r--</span> <a href="<?= $fil ?>"><?= basename($fil) ?></a></li>
<?php } ?>
</ul>
<?php } ?>
<p><span class="prompt">~/webbsrvprg/exercises $</span> <span class="cursor">_</span></p>
</main>
</body>
</html>