Added admin setting ability back where it belongs in lite and danbooru themes.
This commit is contained in:
		
							parent
							
								
									cc6b9753bb
								
							
						
					
					
						commit
						39778db1b5
					
				| @ -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; | ||||
| 	} | ||||
| } | ||||
|  | ||||
| @ -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; | ||||
| 	} | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user