';
$admin = loggedIn();
$log = 1;
if (isset($_GET['log']))
{
$log = $_GET['log'];
}
if (isset($_POST['log']))
{
$log = $_POST['log'];
}
if (filter_var($log, FILTER_VALIDATE_INT) === false)
{
$log = 1;
}
$ys = ys($log);
$posts = $ys->posts();
if (sizeof($posts) === 0)
$html .= '
' . "\n";
$ts = '';
switch($prefs['timestamp']) {
case 12:
$ts = date('h:i', $post['timestamp']);
break;
case 24:
$ts = date('H:i', $post['timestamp']);
break;
case 0:
$ts = '';
break;
}
$html .= '
' . $ts . ' ' . "\n";
$html .= '
' . $post['nickname'] . '' . $prefs['nicknameSeparator'] . ' ' . "\n";
$html .= '
' . $post['message'] . '' . "\n";
$html .= '
' . ($admin ? 'IP: ' . $post['adminInfo']['ip'] . ', ' : '') . 'Posted: ' . date('l M. j, Y \a\t ' . ($prefs['timestamp'] > 12 ? 'G:i' : 'g:i')) .'.' . "\n";
$html .= '
' . "\n";
$html .= ' Info' . ($admin ? ' | Delete | ' . ($banned ? 'Unban' : 'Ban') : '') . "\n";
$html .= ' ' . "\n";
if ($admin) {
$html .= '
';
$html .= ' ' . $post['adminInfo']['ip'] . '';
$html .= ' ' . $post['nickname'] . '';
$html .= ' ' . $post['uid'] . '';
$html .= '
';
}
$html .= '
' . "\n";
}
$html .= '' . "\n";
if (isset($_POST['p'])) {
echo $html;
exit;
}
?>