'; echo 'post a message'; echo ' | my drafts'; echo ''; } echo ''; foreach ($posts as $post) { echo '
'; echo '
Written by ' . $post['owner']; if ($can_edit && $post['owner_id'] == $user['id']) echo ' | edit'; if ($can_delete && $post['owner_id'] == $user['id']) echo ' | delete'; echo ' | read & comment (' . $post['comments'] . ')'; echo '
'; echo '
published ' . $post['date'] . '
'; if ($post['tags'] != '') { echo '
tags: ' . $post['tags'] . '
'; } echo '

' . $post['title'] . '

'; echo '
' . $post['text_html'] . '
'; echo '
'; } echo '
'; foreach ($fa as $kname => $kdata) { echo '

Filter by ' . $kname . '

'; if (isset($fvalues[$kname])) { echo '

Filtering ' . $kname . ' : ' . $kdata[$fvalues[$kname]]['name'] . '.
'; $n = array(); foreach ($fvalues as $k => $v) { if ($k != $kname) $n[] = "$k-$v"; } echo 'remove filtering

'; } else { echo ''; } } echo "

...

"; $ze = array(); foreach ($fvalues as $k => $v) { $ze[] = "$k-$v"; } $ze[] = "feed-atom"; $zd = implode("-", $ze); echo ''; require("tpl/general/bottom.php");