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, $table, $paginator)
{
$page->set_title("User List");
$page->set_heading("User List");
$page->add_block(new NavBlock());
$page->add_block(new Block("Users", $table . $paginator));
}
public function display_user_links(Page $page, User $user, $parts)
{
# $page->add_block(new Block("User Links", join(", ", $parts), "main", 10));
}
public function display_user_block(Page $page, User $user, $parts)
{
$h_name = html_escape($user->name);
$html = 'Logged in as '.$h_name;
foreach ($parts as $part) {
$html .= '
'.$part["name"].'';
}
$page->add_block(new Block("User Links", $html, "left", 90));
}
public function display_signup_page(Page $page)
{
global $config;
$tac = $config->get_string("login_tac", "");
if ($config->get_bool("login_tac_bbcode")) {
$tfe = new TextFormattingEvent($tac);
send_event($tfe);
$tac = $tfe->formatted;
}
if (empty($tac)) {
$html = "";
} else {
$html = '
'.$tac.'
'; } $h_reca = "| Name | |
|---|---|
| Password | |
| Repeat Password | |
| Email (Optional) | |
| 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 .= " | Logged Events:";
$n = 0;
foreach ($events as $ip => $count) {
$html .= ' '.$ip.' ('.$count.')'; if (++$n >= 20) { $html .= " ..."; break; } } $html .= " |
| (Most recent at top) | ||
".make_form(make_link("user_admin/change_name"))."
| Change Name | |
|---|---|
| New name | |
".make_form(make_link("user_admin/change_pass"))."
| Change Password | |
|---|---|
| Password | |
| Repeat Password | |
".make_form(make_link("user_admin/change_email"))."
| Change Email | |
|---|---|
| Address | |
".make_form(make_link("user_admin/change_class"))."
| Change Class | |
|---|---|
".make_form(make_link("user_admin/delete_user"))."
| Delete User | |
|---|---|
| Delete images | |
| Delete comments | |
Search for images posted by particular individuals.
poster=username
Returns images posted by "username".
poster_id=123
Returns images posted by user 123.
poster_ip=127.0.0.1
Returns images posted from IP 127.0.0.1.