// Session
$session = new Session($config);
if ($session->getTMP('allowNext') !== true) {
    header('Location: ' . Utility::buildFullLink($config, false, 'session'));
} else {
    // View
    $nav = new Nav($config);
    $nav->setActive('list');
    $view = new View($config);
    $view->tpl('list');
    $view->navArray($nav->navArray(true));
    // Parse
    $parse = new Parse();
    // List array
    $list = array();
    $total = 0;
    $flagged = 0;
    foreach ($session->get('posts') as $post) {
        $content = preg_replace('/(\\n)/', ' ', $post['content']);
        $parse->parse($content);
        $score = $parse->score();
        $tags = $parse->tags();
        if ($score >= 3) {
            $list[] = array('url' => $post['url'], 'score' => $score, 'tags' => $tags, 'content' => $content);
            $flagged++;
        }
        $total++;
    }
    $view->content(array('title' => 'Your Posts | Digital Footprint Profile', 'posts' => $list, 'total' => $total, 'flagged' => $flagged));
    echo $view->render();
}