'; $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 .= '
13:37 Yurivish: Hey, there aren\'t any posts in this log.
'; $id = 0; foreach($posts as $post) { $id++; $banned = $ys->banned($post['adminInfo']['ip']); $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 .= '
' . "\n"; } $html .= '' . "\n"; if (isset($_POST['p'])) { echo $html; exit; } ?> YShout: History

YShout.History

Clear this log, or Clear all logs.
Back to top