Show sourcecode
The following files exists in this folder. Click to view.
add-article.php
aside.php
blokket-default.php
data/
initiate.php
remove-article.php
show-all-articles.php
show-article.php
update-article.php
show-all-articles.php
1 lines ASCII Unix (LF)
<?php $path = "incl/blokket/data"; ?>
<h1>Show all articles</h1>
<table>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
<?php
$filenames = readDirectory($path);
$contents = null;
foreach($filenames as $filename)
{
$contents .= "<tr>
<td>" . $filename . "</td>
<td>" . getFileContents("$path/$filename") . "</td>
</tr>";
}
echo $contents;
?>
</table>