set_title("Login"); $page->set_heading("Login"); $page->add_block(new NavBlock()); $page->add_block(new Block("Login There", "There should be a login box to the left")); } public function display_user_list(Page $page, $users, User $user) { $page->set_title("User List"); $page->set_heading("User List"); $page->add_block(new NavBlock()); $html = "
Name |
".html_escape($duser->name)." | "; $html .= "
$tac
";} $reca = "Uploaded from: ";
$n = 0;
foreach($uploads as $ip => $count) {
$html .= " $ip ($count)"; if(++$n >= 20) { $html .= " ..."; break; } } $html .= " | Commented from:";
$n = 0;
foreach($comments as $ip => $count) {
$html .= " $ip ($count)"; if(++$n >= 20) { $html .= " ..."; break; } } $html .= " |
(Most recent at top) |