set_title("Login"); $page->set_heading("Login"); $page->disable_left(); $html = "
"; if($config->get_bool("login_signup_enabled")) { $html .= "Create Account"; } $page->add_block(new Block("Login", $html, "main", 90)); } public function display_user_links($page, $user, $parts) { // no block in this theme } public function display_login_block(Page $page) { // no block in this theme } public function display_user_block($page, $user, $parts) { $h_name = html_escape($user->name); $html = ""; $blocked = array("Pools", "Pool Changes", "Alias Editor", "My Profile"); foreach($parts as $part) { if(in_array($part["name"], $blocked)) continue; $html .= "
  • {$part["name"]}"; } $page->add_block(new Block("User Links", $html, "user", 90)); } public function display_signup_page($page) { global $config; $tac = $config->get_string("login_tac", ""); $tfe = new TextFormattingEvent($tac); send_event($tfe); $tac = $tfe->formatted; $reca = "".captcha_get_html().""; if(empty($tac)) {$html = "";} else {$html = "

    $tac

    ";} $html .= "
    $reca;
    Name
    Password
    Repeat Password
    Email (Optional)
    "; $page->set_title("Create Account"); $page->set_heading("Create Account"); $page->disable_left(); $page->add_block(new Block("Signup", $html)); } public function display_ip_list($page, $uploads, $comments) { $html = ""; $html .= ""; $html .= "
    Uploaded from: "; foreach($uploads as $ip => $count) { $html .= "
    $ip ($count)"; } $html .= "
    Commented from:"; foreach($comments as $ip => $count) { $html .= "
    $ip ($count)"; } $html .= "
    (Most recent at top)
    "; $page->add_block(new Block("IPs", $html)); } public function display_user_page(User $duser, $stats) { global $page; $page->disable_left(); parent::display_user_page($duser, $stats); } protected function build_options($duser) { global $database; global $config; global $user; $html = ""; $html .= "
    Change Password
    Password
    Repeat Password

    Change Email
    Address

    "; if($user->is_admin()) { $i_user_id = int_escape($duser->id); $h_is_admin = $duser->is_admin() ? " checked" : ""; $html .= "

    ".make_form(make_link("user_admin/set_more"))." Admin: "; } return $html; } } ?>