Added admin setting ability back where it belongs in lite and danbooru themes.

This commit is contained in:
zshall 2011-02-11 19:02:44 -05:00 committed by Shish
parent 66e6cdd0a1
commit 57972632e4
2 changed files with 26 additions and 0 deletions

View file

@ -124,6 +124,19 @@ class CustomUserPageTheme extends UserPageTheme {
</table>
</form></p>
";
if($user->is_admin()) {
$i_user_id = int_escape($duser->id);
$h_is_admin = $duser->is_admin() ? " checked" : "";
$html .= "
<p>".make_form(make_link("user_admin/set_more"))."
<input type='hidden' name='id' value='$i_user_id'>
Admin: <input name='admin' type='checkbox'$h_is_admin>
<input type='submit' value='Set'>
</form>
";
}
return $html;
}
}

View file

@ -113,6 +113,19 @@ class CustomUserPageTheme extends UserPageTheme {
</table>
</form>
";
if($user->is_admin()) {
$i_user_id = int_escape($duser->id);
$h_is_admin = $duser->is_admin() ? " checked" : "";
$html .= "
<p>".make_form(make_link("user_admin/set_more"))."
<input type='hidden' name='id' value='$i_user_id'>
Admin: <input name='admin' type='checkbox'$h_is_admin>
<input type='submit' value='Set'>
</form>
";
}
return $html;
}
}