Actionhandler geimplementeerd.

This commit is contained in:
2019-05-17 16:33:24 +02:00
parent 89dcca3021
commit 4a050eda84
12 changed files with 105 additions and 13 deletions

View File

@@ -0,0 +1,14 @@
<h1>TOPICS:</h1>
<?php
//Gedeeltelijk dummy code omdat de database nog niet zo ver is. Verder al wel functioneel. Gebrukersnamen worden ingeladen.
if(UserSession::isUserSignedIn()){
//$topics = Database::GetTopicList();
$topics = [ [0, "Hoeveel ICTers heb je nodig om een forum te bouwen?", 2],
[1, "LOREM IPSUM DOLOR", 3]];
for($i = 0; $i < sizeof($topics); $i++){
echo '<a href="?p=showthread&topic='.$i.'">'.$topics[$i][1].'</a> - Gestart door: '.Database::getUsername($topics[$i][2]);
echo '<br>';
}
}
?>