From 39778db1b51365b68b1267ac7808c72a689e7e76 Mon Sep 17 00:00:00 2001 From: zshall Date: Fri, 11 Feb 2011 19:02:44 -0500 Subject: [PATCH] Added admin setting ability back where it belongs in lite and danbooru themes. --- themes/danbooru/user.theme.php | 13 +++++++++++++ themes/lite/user.theme.php | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/themes/danbooru/user.theme.php b/themes/danbooru/user.theme.php index d3e658a4..3e179e09 100644 --- a/themes/danbooru/user.theme.php +++ b/themes/danbooru/user.theme.php @@ -124,6 +124,19 @@ class CustomUserPageTheme extends UserPageTheme {

"; + + 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; } } diff --git a/themes/lite/user.theme.php b/themes/lite/user.theme.php index 0f102c15..5c1b0be8 100644 --- a/themes/lite/user.theme.php +++ b/themes/lite/user.theme.php @@ -113,6 +113,19 @@ class CustomUserPageTheme extends UserPageTheme { "; + + 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; } }