name); $lines = []; foreach ($parts as $part) { $lines[] = "{$part["name"]}"; } if (count($lines) < 6) { $html = implode("\n
", $lines); } else { $html = implode(" | \n", $lines); } $page->add_block(new Block("Logged in as $h_name", $html, "head", 90, "UserBlockhead")); $page->add_block(new Block("Logged in as $h_name", $html, "left", 15, "UserBlockleft")); } public function display_login_block(Page $page) { global $config; $html = "
Name
Password
"; if ($config->get_bool("login_signup_enabled")) { $html .= "Create Account"; } $page->add_block(new Block("Login", $html, "head", 90)); $page->add_block(new Block("Login", $html, "left", 15)); } }