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
";} $html .= " "; $page->set_title("Create Account"); $page->set_heading("Create Account"); $page->add_block(new NavBlock()); $page->add_block(new Block("Signup", $html)); } public function display_signups_disabled(Page $page) { $page->set_title("Signups Disabled"); $page->set_heading("Signups Disabled"); $page->add_block(new NavBlock()); $page->add_block(new Block("Signups Disabled", "The board admin has disabled the ability to create new accounts~")); } public function display_login_block(Page $page) { global $config; $html = " "; if($config->get_bool("login_signup_enabled")) { $html .= "Create Account"; } $page->add_block(new Block("Login", $html, "left", 90)); } public function display_ip_list(Page $page, $uploads, $comments) { $html = "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) |